查询问题反馈,允许通过申请人,申请时间(时间段, 默认最近7天),流程状态(默认全部)进行筛选
1个文件已修改
15 ■■■■ 已修改文件
src/main/resources/mapper/BOMFeedbakMapper.xml 15 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/mapper/BOMFeedbakMapper.xml
@@ -67,9 +67,18 @@
        <if test="senderId !=-1">
            and sender_id = #{senderId}
        </if>
        <if test="confirmStatus !=-1">
            and confirm_status = #{confirmStatus}
        </if>
        <choose>
            <when  test="confirmStatus == 0">
                and confirm_status = 0
            </when>
            <when test="confirmStatus == 3">
                and confirm_status = 3
            </when>
            <when test="confirmStatus == 124">
                and confirm_status in (1,2,4)
            </when>
            <otherwise />
        </choose>
    </select>
</mapper>