Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx

This commit is contained in:
BianLzhaoMin 2024-08-09 10:16:02 +08:00
commit 55fe9d8e30
3 changed files with 3 additions and 6 deletions

View File

@ -96,7 +96,7 @@ public interface RepairMapper {
* @param userid
* @return
*/
int updateTaskStatus(@Param("taskList")List<RepairTask> taskList,@Param("userId") Long userid);
int updateTaskStatus(@Param("repairTask") RepairTask repairTask,@Param("userId") Long userid);
/**
* 新增任务

View File

@ -222,7 +222,7 @@ public class RepairServiceImpl implements RepairService {
boolean b = repairMaTypeId.stream().allMatch(t -> "1".equals(t.getStatus()));
if (b) {
// 修改状态为 维修完成
mapper.updateTaskStatus(taskList, loginUser.getUserid());
mapper.updateTaskStatus(task, loginUser.getUserid());
}
for (RepairTaskDetails repairTaskDetails : repairMaTypeId) {
task.setTypeId(repairTaskDetails.getTypeId());

View File

@ -56,10 +56,7 @@
update_by = #{userId},
is_commit = 1,
update_time = now()
where task_id in
<foreach item="task" collection="taskList" open="(" separator="," close=")">
#{task.taskId}
</foreach>
where task_id = #{repairTask.taskId}
</update>
<update id="updateRepairedNumTwo">
update repair_apply_details