Merge branch 'dev-nx' of http://192.168.0.56:3000/bonus/devicesmgt into dev-nx
This commit is contained in:
commit
55fe9d8e30
|
|
@ -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);
|
||||
|
||||
/**
|
||||
* 新增任务
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue