This commit is contained in:
mashuai 2025-07-16 18:33:53 +08:00
parent c7a465cd46
commit f34e8613f5
2 changed files with 5 additions and 2 deletions

View File

@ -361,7 +361,9 @@ public class BackReceiveServiceImpl implements BackReceiveService {
int postStoreNum = backReceiveMapper.getmaChineByCt(record);
record.setPostStoreNum(postStoreNum);
}
List<BackApplyInfo> endList = receiveView2(record);
BackApplyInfo backApplyInfo = new BackApplyInfo();
backApplyInfo.setId(record.getParentId());
List<BackApplyInfo> endList = receiveView2(backApplyInfo);
// 如果endList中所有数据的backStatus都为1则修改任务状态为完成
boolean allFinished = endList.stream().allMatch(n -> "1".equals(n.getBackStatus()));
if (allFinished) {

View File

@ -585,7 +585,8 @@
<update id="updateTaskStatus">
update tm_task
set task_status=#{status}
set task_status=#{status},
update_time = now()
where task_id = #{taskId}
</update>
<update id="updateMaStatus">