Explorar el Código

Merge branch 'develop' of gitadmin/tuoheng_freeway into release

pull/380/head
suqin hace 10 meses
padre
commit
7f523fbbb3
Se han modificado 3 ficheros con 4 adiciones y 4 borrados
  1. +1
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/entity/query/InspectionQuery.java
  2. +2
    -2
      tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionServiceImpl.java
  3. +1
    -1
      tuoheng-service/tuoheng-miniprogram/src/main/resources/mapper/InspectionMapper.xml

+ 1
- 1
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/entity/query/InspectionQuery.java Ver fichero

private String inspectionLineName; private String inspectionLineName;


/** /**
* 巡检任务类型 1 临时巡检
* 巡检任务类型 0周期任务 1 单次任务|周期子任务 2 应急任务
*/ */
private Integer type; private Integer type;



+ 2
- 2
tuoheng-service/tuoheng-miniprogram/src/main/java/com/tuoheng/miniprogram/service/impl/InspectionServiceImpl.java Ver fichero

String tenantId = user.getTenantId(); String tenantId = user.getTenantId();


query.setTenantId(tenantId); query.setTenantId(tenantId);
query.setType(1);
// query.setType(1);


//初始部门id //初始部门id
String deptIdInt = query.getDeptId(); String deptIdInt = query.getDeptId();


private Map<Integer, AirportLineVo> getAirportLineMap(List<InspectionInfoVo> inspectionInfoVoList) { private Map<Integer, AirportLineVo> getAirportLineMap(List<InspectionInfoVo> inspectionInfoVoList) {
List<Integer> airportLineIdList = inspectionInfoVoList.stream().map(o -> o.getInspectionLine()).collect(Collectors.toList()); List<Integer> airportLineIdList = inspectionInfoVoList.stream().map(o -> o.getInspectionLine()).collect(Collectors.toList());
airportLineIdList = airportLineIdList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(x->x))), ArrayList::new));
// airportLineIdList = airportLineIdList.stream().collect(Collectors.collectingAndThen(Collectors.toCollection(() -> new TreeSet<>(Comparator.comparing(x->x))), ArrayList::new));
List<AirportLineVo> airportLineVoList = getAirLineListService.getList(null, airportLineIdList); List<AirportLineVo> airportLineVoList = getAirLineListService.getList(null, airportLineIdList);
if (CollectionUtil.isEmpty(airportLineVoList)) { if (CollectionUtil.isEmpty(airportLineVoList)) {
return null; return null;

+ 1
- 1
tuoheng-service/tuoheng-miniprogram/src/main/resources/mapper/InspectionMapper.xml Ver fichero

<if test="request.inspectionType !=null"> <if test="request.inspectionType !=null">
and ti.inspection_type = #{request.inspectionType} and ti.inspection_type = #{request.inspectionType}
</if> </if>
<if test="request.type !=null">
<if test="request.type !=null and (request.type == 0 or request.type == 1)">
and ti.type = #{request.type} and ti.type = #{request.type}
</if> </if>
<if test="request.startTimeDate !=null and request.endTimeDate !=null"> <if test="request.startTimeDate !=null and request.endTimeDate !=null">

Cargando…
Cancelar
Guardar