管道基础大数据平台系统开发-【后端】-Server
12
13693261870
2022-12-25 ec0f8177d3caae0cdfc8ee8a9ff6a00e4af48b75
12
已修改2个文件
28 ■■■■ 文件已修改
src/main/java/com/lf/server/controller/show/ApplyController.java 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/show/ApplyMapper.xml 26 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/java/com/lf/server/controller/show/ApplyController.java
@@ -86,7 +86,7 @@
            @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")
    })
src/main/resources/mapper/show/ApplyMapper.xml
@@ -8,14 +8,14 @@
            <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 &gt;= #{start}
            </if>
@@ -33,14 +33,14 @@
            <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 &gt;= #{start}
            </if>
@@ -67,7 +67,7 @@
        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>