提交 6bea44a3 authored 作者: zhoushaopan's avatar zhoushaopan

[装备管理模块]修改方法,将get变成post

上级 fa6f7c93
......@@ -159,7 +159,7 @@ public class BackController {
saveEntity = taskService.moveToSpecial(taskBto1,StatusEnum.ALLOT_BACKING,0);
}
//生成发件方上传退回单的子任务
TaskBto taskBto2 = new TaskBto(StatusEnum.WAIT_UPLOAD_BACK_FILE_2.id, allotBillSaveVo.getSendUnit().substring(0,3)+"]型号"+StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList()))+"的装备共有"+allotBillSaveVo.getAllotCount()+"件至"+allotBillSaveVo.getReceiveUnit(), saveEntity.getId(), saveEntity.getNodeIdDetail() + saveEntity.getId() + ".", saveEntity.getBillId(), 22, userPublicService.findUnitIdByName(allotBackBill1.getSendUnit()), 0, null, Collections.singletonList(0));
TaskBto taskBto2 = new TaskBto(StatusEnum.WAIT_UPLOAD_BACK_FILE_2.id, "["+allotBillSaveVo.getSendUnit().substring(0,3)+"]型号"+StringSplitUtil.stringListToString(allotBillSaveVo.getScriptSaveVos().stream().map(ScriptSaveVo::getModel).distinct().collect(Collectors.toList()))+"的装备共有"+allotBillSaveVo.getAllotCount()+"件至"+allotBillSaveVo.getReceiveUnit(), saveEntity.getId(), saveEntity.getNodeIdDetail() + saveEntity.getId() + ".", saveEntity.getBillId(), 22, userPublicService.findUnitIdByName(allotBackBill1.getSendUnit()), 0, null, Collections.singletonList(0));
taskService.start(taskBto2);
List<FileVo> fileVoList = new ArrayList<>();
//存装备日志
......
......@@ -169,9 +169,9 @@ public class DeviceLibraryController {
}
@ApiOperation(value = "查询某单位检查装备列表", notes = "可以通过这个接口查询装备列表")
@GetMapping("/selectCheckDeviceListByUnit/{unitName}")
public ResponseEntity selectCheckDeviceListByUnit(@PathVariable("unitName") String unitName) {
String unit = unitName;
@PostMapping("/selectCheckDeviceListByUnit")
public ResponseEntity selectCheckDeviceListByUnit(@RequestBody UnitNameVo unitName) {
String unit = unitName.getUnitName();
PredicateBuilder<DeviceLibrary> predicateBuilder = Specifications.and();
log.info("[装备模块] 单位名称:{}",unit);
predicateBuilder.eq("ownUnit", unit);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论