|
@@ -595,6 +595,7 @@ public class ZhcxPmqManagementRecoredServiceImpl extends ServiceImpl<ZhcxPmqMana
|
|
|
return R.ok("批量派单成功");
|
|
|
}
|
|
|
|
|
|
+ // 三单派单_部分批量派单
|
|
|
@Override
|
|
|
public R updateBatchList2(DistributionDTO dto) {
|
|
|
String pids = dto.getList().get(0).getPid();
|
|
@@ -673,6 +674,7 @@ public class ZhcxPmqManagementRecoredServiceImpl extends ServiceImpl<ZhcxPmqMana
|
|
|
}
|
|
|
|
|
|
private void updateRecoredStatus(List<ZhcxPmqManagementRecoredDo> recoredList, List<String> managementIds) {
|
|
|
+ // TODO 太慢了
|
|
|
for (ZhcxPmqManagementRecoredDo recoredDo : recoredList) {
|
|
|
// 派单状态
|
|
|
String dispatchStatus = (distributionDao.selectListByPid(recoredDo.getId()).isEmpty())? "1" : "2";
|
|
@@ -681,8 +683,8 @@ public class ZhcxPmqManagementRecoredServiceImpl extends ServiceImpl<ZhcxPmqMana
|
|
|
if(Objects.nonNull(managementDo.getProjectid())) {
|
|
|
String closeStatus = detailDao.getNotClosedStateInThirdFloorByPid(recoredDo.getId(), managementDo.getProjectid());
|
|
|
// 更新第二层表数据
|
|
|
- recoredDo.setDispatchstatus(dispatchStatus);
|
|
|
- recoredDo.setClosestatus(closeStatus);
|
|
|
+ recoredDo.setDispatchstatus(dispatchStatus); //派单状态
|
|
|
+ recoredDo.setClosestatus(closeStatus); // 关闭状态
|
|
|
this.updateById(recoredDo);
|
|
|
}
|
|
|
}
|