Browse Source

#检修流程

zhongwei
yang_shj 1 year ago
parent
commit
fa28c26580
  1. 32
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/mapper/OperAccessTaskMapper.xml
  2. 1
      hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java

32
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/mapper/OperAccessTaskMapper.xml

@ -48,48 +48,46 @@
</select>
<select id="pageCondition" resultType="com.hnac.hzims.operational.access.vo.OperAccessTaskVO">
SELECT
t1.*, t3.`NAME` as planName
FROM
hzims_oper_access_task t1 LEFT JOIN hzims_oper_access_content t2 ON t1.ID = t2.ID
AND t2.IS_DELETED = 0 LEFT JOIN hzims_oper_access_plan t3 ON t2.PLAN_ID = t3.ID
AND t3.IS_DELETED = 0
SELECT t.*,p.name as planName
FROM hzims_oper_access_task t
left join hzims_oper_access_plan p
on t.plan_id = p.id
WHERE
t1.IS_DELETED =0
<if test="req.id != null">
and t1.id = #{req.id}
and t.id = #{req.id}
</if>
<if test="req.code != null and req.code != ''">
AND t1.`CODE` LIKE CONCAT('%',#{req.code},'%')
AND t.`CODE` LIKE CONCAT('%',#{req.code},'%')
</if>
<if test="req.handler != null">
AND t1.`HANDLER`=#{req.handler}
AND t.`HANDLER`=#{req.handler}
</if>
<if test="req.status != null">
AND t1.`STATUS`=#{req.status}
AND t.`STATUS`=#{req.status}
</if>
<if test="req.planId != null">
AND t3.ID =#{req.planId}
AND p.ID =#{req.planId}
</if>
<if test="req.name != null and req.name != ''">
AND t1.`NAME` LIKE CONCAT('%',#{req.name},'%')
AND t.`NAME` LIKE CONCAT('%',#{req.name},'%')
</if>
<if test="req.excludeNullTicket != null and req.excludeNullTicket == 1">
and t1.`TICKET_ID` is null
and t.`TICKET_ID` is null
</if>
<if test="req.startTime != null and req.startTime != ''">
and t1.`PLAN_START_TIME` &gt; #{req.startTime}
and t.`PLAN_START_TIME` &gt; #{req.startTime}
</if>
<if test="req.endTime != null and req.startTime != '' ">
and t1.`PLAN_START_TIME` &lt; #{req.endTime}
and t.`PLAN_START_TIME` &lt; #{req.endTime}
</if>
<if test="req.deptIds != null">
and t1.create_dept in
and t.create_dept in
<foreach collection="req.deptIds" item="item" index="index" open="(" close=")" separator=",">
#{item}
</foreach>
</if>
ORDER BY t1.ID DESC
ORDER BY t.ID DESC
</select>
<select id="selectByEmCode" resultType="com.hnac.hzims.operational.access.entity.OperAccessTaskEntity" parameterType="list">

1
hzims-service/operational/src/main/java/com/hnac/hzims/operational/access/service/impl/AccessPlanV4ServiceImpl.java

@ -112,6 +112,7 @@ public class AccessPlanV4ServiceImpl implements AccessPlanV4Service{
eq(OperAccessMaterialEntity::getPlanId, entity.getId());
eq(OperAccessMaterialEntity::getIsDeleted, 0L);
}});
log.error("save_access_material : {}",materials);
if(CollectionUtil.isNotEmpty(materials)){
materialService.deleteLogic(materials.stream().map(OperAccessMaterialEntity::getId).collect(Collectors.toList()));
}

Loading…
Cancel
Save