Просмотр исходного кода

查询任务分页列表过滤应急任务

tags/v1.2.0^2
wanjing 1 год назад
Родитель
Сommit
e382bda991
3 измененных файлов: 5 добавлений и 1 удалений
  1. +1
    -1
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/inspection/QueryInspectionPageListRequest.java
  2. +3
    -0
      tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionPageListService.java
  3. +1
    -0
      tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml

+ 1
- 1
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/request/inspection/QueryInspectionPageListRequest.java Просмотреть файл

@@ -36,7 +36,7 @@ public class QueryInspectionPageListRequest extends BaseQuery {
private Integer inspectionLine;

/**
* 巡检任务类型: 1 临时巡检(目前只有该一种类型)
* 巡检任务类型: 1 临时巡检 2 应急任务
*/
private Integer type;


+ 3
- 0
tuoheng-service/tuoheng-admin/src/main/java/com/tuoheng/admin/service/inspection/query/QueryInspectionPageListService.java Просмотреть файл

@@ -104,6 +104,9 @@ public class QueryInspectionPageListService {
String tenantId = CurrentUserUtil.getTenantId();
request.setTenantId(tenantId);

// 不查应急任务
request.setType(1);

JsonResult result = this.check(tenantId, request);
if (0 != result.getCode()) {
log.info("进入查询巡检任务分页列表业务:校验失败:{}", result.getMsg());

+ 1
- 0
tuoheng-service/tuoheng-admin/src/main/resources/mapper/InspectionMapper.xml Просмотреть файл

@@ -95,6 +95,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectInspectionVo"/>
<where>
<if test="1 == 1"> and mark = 1 </if>
<if test="request.type != null and request.type != 0"> and type = #{request.type} </if>
<if test="request.code != null and request.code != ''"> and code like concat('%', #{request.code}, '%') </if>
<if test="request.tenantId != null and request.tenantId != ''"> and tenant_id = #{request.tenantId} </if>
<if test="request.airportId != null and request.airportId != 0"> and airport_id = #{request.airportId} </if>

Загрузка…
Отмена
Сохранить