|
@@ -21,6 +21,7 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import java.util.ArrayList;
|
|
|
+import java.util.Date;
|
|
|
import java.util.List;
|
|
|
import java.util.Objects;
|
|
|
import java.util.stream.Collectors;
|
|
@@ -111,7 +112,8 @@ public class ZhcxPmqManagementDistributionServiceImpl extends ServiceImpl<ZhcxPm
|
|
|
// 可能会涉及到改派 TODO 未写完
|
|
|
// dispatchTochange(pid,detailIds);
|
|
|
// 更新第二层的派单状态
|
|
|
- baseMapper.updateDispatchStatus(pid);
|
|
|
+ String nowDate = DateUtil.formatDateTime(new Date());
|
|
|
+ baseMapper.updateDispatchStatus(pid,nowDate);
|
|
|
return R.ok("派单成功");
|
|
|
}
|
|
|
|
|
@@ -182,4 +184,16 @@ public class ZhcxPmqManagementDistributionServiceImpl extends ServiceImpl<ZhcxPm
|
|
|
// 返回结果集
|
|
|
return R.ok(resultList);
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public R selectManifestList2(String projectId, String id) {
|
|
|
+ // 构建第二层数据
|
|
|
+ List<ZhcxPmqManageChildVo> childList = baseMapper.getAllDeptByPid(id);
|
|
|
+ for (ZhcxPmqManageChildVo zhcxPmqManageChildVo : childList) {
|
|
|
+ // 构造第三层数据
|
|
|
+ List<MachineState> machines = baseMapper.getMachinesStatus(projectId,zhcxPmqManageChildVo.getId());
|
|
|
+ zhcxPmqManageChildVo.setMachines(machines);
|
|
|
+ }
|
|
|
+ return R.ok(childList);
|
|
|
+ }
|
|
|
}
|