ly 11 сар өмнө
parent
commit
b490b237ae

+ 1 - 1
src/main/java/cn/ezhizao/project/business/order/mapper/BizArchiveInputMapper.java

@@ -35,5 +35,5 @@ public interface BizArchiveInputMapper extends BaseMapper<BizArchiveInput>
 
     List<BizArchiveInput> getListByInput(InputVo bizArchiveInput);
 
-    int deleteByDate(@Param("workOrderId")Long workOrderId, @Param("endDate")Date endDate, @Param("taskTypeId")Long taskTypeId);
+    int deleteByDate(@Param("workOrderId")Long workOrderId, @Param("endDate")Date endDate, @Param("taskTypeId")Long taskTypeId,@Param("updaterId")Long updaterId);
 }

+ 1 - 1
src/main/java/cn/ezhizao/project/business/order/service/impl/BizArchiveInputServiceImpl.java

@@ -611,7 +611,7 @@ public class BizArchiveInputServiceImpl extends ServiceImpl<BizArchiveInputMappe
                             l.setEndMonth(endDate);
                             l.setIsContinue(0);
                             // 当前这个工单所对应的委托根据endDate去查询,查询条件是大于endDate的,更新字段deleted为1
-                            bizArchiveInputMapper.deleteByDate(l.getId(),endDate,l.getTaskTypeId());
+                            bizArchiveInputMapper.deleteByDate(l.getId(),endDate,l.getTaskTypeId(),SecurityUtils.getUserId());
                             // 旧任务明细 停止
                             details.stream().filter(v -> v.getWorkOrderId().equals(l.getId())).forEach(v -> v.setIsStop(1));
                         }

+ 1 - 1
src/main/resources/mybatis/business/BizArchiveInputMapper.xml

@@ -197,7 +197,7 @@
         </foreach>
     </update>
     <update id="deleteByDate">
-        update biz_entrust entrust set entrust.deleted = 1
+        update biz_entrust entrust set entrust.deleted = 1,update_time = now(),updater_id = #{updaterId}
         where work_order_id = #{workOrderId}
         and task_type_id = #{taskTypeId}
         <![CDATA[and current_month > #{endDate} ]]>