提交 448d0db7 authored 作者: zhoushaopan's avatar zhoushaopan

feat(配发模块,任务模块): 增加配发下一步

增加配发下一步
上级 af4cb99a
...@@ -214,7 +214,6 @@ public class AllotBillController { ...@@ -214,7 +214,6 @@ public class AllotBillController {
if (allotBillSaveVo.getAllotType() == 1) { if (allotBillSaveVo.getAllotType() == 1) {
//直接发起 //直接发起
if (allotBillSaveVo.getTaskId() == null) { if (allotBillSaveVo.getTaskId() == null) {
// TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, allotBillSaveVo.getSendUnit() + "配发型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件至" + allotBillSaveVo.getReceiveUnit(), null, ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()), 1, null, userIds);
// TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, "["+allotBillSaveVo.getReceiveUnit().substring(0,3)+"]型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件" , null, ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()), 1, null, userIds); // TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, "["+allotBillSaveVo.getReceiveUnit().substring(0,3)+"]型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件" , null, ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()), 1, null, userIds);
// TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, "["+DeviceModelSort.unitNameToDisName(allotBillSaveVo.getReceiveUnit())+"]型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件" , null, // TaskBto taskBto = new TaskBto(StatusEnum.ALLOTING.id, "["+DeviceModelSort.unitNameToDisName(allotBillSaveVo.getReceiveUnit())+"]型号" + StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList())) + "的装备共" + allotBillSaveVo.getAllotCount() + "件" , null,
// ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()), // ".", billId, 3, userPublicService.findUnitIdByName(allotBillSaveVo.getReceiveUnit()),
...@@ -387,6 +386,7 @@ public class AllotBillController { ...@@ -387,6 +386,7 @@ public class AllotBillController {
allotBill.setReplyFileList(FilesUtil.stringFileToList(allotBill.getReplyFiles())); allotBill.setReplyFileList(FilesUtil.stringFileToList(allotBill.getReplyFiles()));
// //
allotBill.setTaskId(saveEntity.getId()); allotBill.setTaskId(saveEntity.getId());
allotBill.setSendTaskId(taskService.findByParentId(saveEntity.getId()).getId());
//输出配发单给前端 //输出配发单给前端
return ResponseEntity.ok(new ResultObj(allotBill, "发起成功")); return ResponseEntity.ok(new ResultObj(allotBill, "发起成功"));
} }
......
...@@ -312,8 +312,13 @@ public class AllotBill { ...@@ -312,8 +312,13 @@ public class AllotBill {
@Transient @Transient
private List<FileRet> receiveFileList = new ArrayList<>(); private List<FileRet> receiveFileList = new ArrayList<>();
@ApiModelProperty(value = "任务id") @ApiModelProperty(value = "收件方任务id")
@Transient @Transient
private Integer taskId; private Integer taskId;
@ApiModelProperty(value = "发件方任务id")
@Transient
private Integer sendTaskId;
} }
...@@ -271,4 +271,9 @@ public interface TaskService { ...@@ -271,4 +271,9 @@ public interface TaskService {
* @param taskId 任务id * @param taskId 任务id
*/ */
void deleteById(Integer taskId); void deleteById(Integer taskId);
/**
* 根据父id查询任务
*/
Task findByParentId(Integer parentTaskId);
} }
...@@ -1236,6 +1236,11 @@ public class TaskServiceImpl implements TaskService { ...@@ -1236,6 +1236,11 @@ public class TaskServiceImpl implements TaskService {
taskDao.deleteById(taskId); taskDao.deleteById(taskId);
} }
@Override
public Task findByParentId(Integer parentTaskId) {
return taskDao.findByParentTaskId(parentTaskId);
}
@Override @Override
public void moveAllSonNodeToEnd(Integer taaskId) { public void moveAllSonNodeToEnd(Integer taaskId) {
List<Task> tasks = taskDao.findAllByParentTaskId(taaskId); List<Task> tasks = taskDao.findAllByParentTaskId(taaskId);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论