Browse Source

修改查询任务问题分页列表中问题状态条件

tags/v1.0.0^2
wanjing 1 year ago
parent
commit
da1b4a1fdf
2 changed files with 11 additions and 2 deletions
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionFileController.java
  2. +10
    -1
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionFileMapper.xml

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/controller/InspectionFileController.java View File

@@ -47,7 +47,7 @@ public class InspectionFileController {
* @return
*/
@GetMapping("/page/list")
public JsonResult getPageList(@RequestBody QueryInspectionFilePageListRequest request){
public JsonResult getPageList(QueryInspectionFilePageListRequest request){
return iInspectionFileService.getPageList(request);
}


+ 10
- 1
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionFileMapper.xml View File

@@ -133,7 +133,16 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<if test="1 == 1"> and tif.mark = 1 </if>
<if test="request.key != null and request.key != 0"> and (ti.code like concat('%', #{request.key}, '%') or ti.name like concat('%', #{request.key}, '%')) </if>
<if test="request.questionId != null and request.questionId != ''"> and tif.question_id = #{request.questionId} </if>
<if test="request.status != null and request.status != 0"> and tif.status = #{request.status} </if>
<if test="request.status != null">
<choose>
<when test="request.status != 0">
and tif.status = #{request.status}
</when>
<otherwise>
and tif.status in (15, 20, 25)
</otherwise>
</choose>
</if>
<if test="request.deptIdList != null and request.deptIdList.size() > 0">
and ti.dept_id in
<foreach item="deptId" collection="request.deptIdList" open="(" separator="," close=")">

Loading…
Cancel
Save