| | |
| | | @ApiImplicitParam(name = "uname", value = "用户名", dataType = "String", paramType = "query", example = "员"), |
| | | @ApiImplicitParam(name = "status", value = "状态", dataType = "Integer", paramType = "query", example = "0"), |
| | | @ApiImplicitParam(name = "start", value = "开始时间", dataType = "Timestamp", paramType = "query", example = "2022-12-09 09:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-25 17:00:00"), |
| | | @ApiImplicitParam(name = "end", value = "结束时间", dataType = "Timestamp", paramType = "query", example = "2022-12-31 23:00:00"), |
| | | @ApiImplicitParam(name = "pageSize", value = "每页条数", dataType = "Integer", paramType = "query", example = "10"), |
| | | @ApiImplicitParam(name = "pageIndex", value = "分页数(从1开始)", dataType = "Integer", paramType = "query", example = "1") |
| | | }) |
| | |
| | | <if test="uname != null"> |
| | | and b.uname like #{uname} |
| | | </if> |
| | | <choose> |
| | | <when test="status == 0"> |
| | | <if test="status != null"> |
| | | <if test="status == 0"> |
| | | and a.status between 0 and 9 |
| | | </when> |
| | | <otherwise> |
| | | </if> |
| | | <if test="status != 0"> |
| | | and a.status = #{status} |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </if> |
| | | <if test="start != null"> |
| | | and a.create_time >= #{start} |
| | | </if> |
| | |
| | | <if test="uname != null"> |
| | | and b.uname like #{uname} |
| | | </if> |
| | | <choose> |
| | | <when test="status == 0"> |
| | | <if test="status != null"> |
| | | <if test="status == 0"> |
| | | and a.status between 0 and 9 |
| | | </when> |
| | | <otherwise> |
| | | </if> |
| | | <if test="status != 0"> |
| | | and a.status = #{status} |
| | | </otherwise> |
| | | </choose> |
| | | </if> |
| | | </if> |
| | | <if test="start != null"> |
| | | and a.create_time >= #{start} |
| | | </if> |
| | |
| | | order by c.id limit 1 |
| | | </select> |
| | | |
| | | <select id="selectSubmits"> |
| | | <select id="selectSubmits" resultType="java.lang.Integer"> |
| | | select count(*) from lf.sys_apply a inner join lf.sys_flow b on a.id = b.applyid |
| | | where a.status between 0 and 9 and b.status = 0 and b.userid = #{userid} |
| | | </select> |