提交 306311ac authored 作者: 邓砥奕's avatar 邓砥奕

更新

上级 63fc4382
...@@ -178,7 +178,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService { ...@@ -178,7 +178,7 @@ public class DeviceLibraryServiceImpl implements DeviceLibraryService {
deviceLibraries.forEach(DeviceLibrary::setConfigName); deviceLibraries.forEach(DeviceLibrary::setConfigName);
return deviceLibraries; return deviceLibraries;
} else { } else {
throw new ApiException(ResultUtil.failed("区域等级只能为1,2,3")); throw new ApiException(ResultUtil.failed("区域等级只能为1,2,3,4"));
} }
} }
} }
......
...@@ -257,6 +257,62 @@ public class StorageBillController { ...@@ -257,6 +257,62 @@ public class StorageBillController {
} }
map.put(s2.getPackingId(), packingLibraries); map.put(s2.getPackingId(), packingLibraries);
} }
// if (s2.getList() != null && s2.getList().size() != 0) {
// for (int k = 0; k < s2.getList().size(); k++) {
// StorageBillDetailVo s3 = s.getList().get(k);
// if (k >= sons.size()) {
// sons.add(DeviceSeqUtil.createDeviceSeqs(s3.getSeqInterval(), s3.getStorageCount()));
// sons2.add(DeviceSeqUtil.createDeviceSeqs(s3.getProdInterval(), s3.getStorageCount()));
// }
// packingLibraryEntity = packingLibraryService.getOne(s3.getPackingId());
// List<String> strings4 = sons.get(k);
// List<String> strings5 = sons2.get(k);
// if (s3.getStorageCount() >= count) {
// packingLibraryEntity.setCorresponding(count);
// if (!strings4.isEmpty()) {
// if (deviceLibraryDao.getAllBySeqNumber(strings4.get(0)).size() > 0) {
// throw new ApiException("序列号" + strings4.get(0) + "已存在");
// }
// if (seqs.contains(strings4.get(0))){
// throw new ApiException("序列号" + strings4.get(0) + "不能重复");
// }
// packingLibraryEntity.setSeq(strings4.get(0));
// strings4.remove(0);
// }
// if (!strings5.isEmpty()) {
// packingLibraryEntity.setProdNumber(strings5.get(0));
// strings5.remove(0);
// }
// seqs.add(packingLibraryEntity.getSeq());
// libraryEntities.add(packingLibraryEntity);
// }
// if (s3.getStorageCount() - strings4.size() == deviceNum) {
// List<PackingLibrary> packingLibraries = new ArrayList<>();
// for (int i = 0; i < s3.getStorageCount() - deviceNum; i++) {
// packingLibraryEntity = packingLibraryService.getOne(s3.getPackingId());
// packingLibraryEntity.setCorresponding(0);
// if (!strings4.isEmpty()) {
// if (deviceLibraryDao.getAllBySeqNumber(strings4.get(0)).size() > 0) {
// throw new ApiException("序列号" + strings4.get(0) + "已存在");
// }
// if (seqs.contains(strings4.get(0))){
// throw new ApiException("序列号" + strings4.get(0) + "不能重复");
// }
// packingLibraryEntity.setSeq(strings4.get(0));
// strings4.remove(0);
// }
// if (!strings5.isEmpty()) {
// packingLibraryEntity.setProdNumber(strings5.get(0));
// strings5.remove(0);
// }
// seqs.add(packingLibraryEntity.getSeq());
// packingLibraries.add(packingLibraryEntity);
// }
// map.put(s3.getPackingId(), packingLibraries);
// }
// }
//
// }
} }
} }
......
...@@ -135,6 +135,7 @@ public class TaskBto { ...@@ -135,6 +135,7 @@ public class TaskBto {
//set vo字段 //set vo字段
if (userPublicService != null && this.createUserId != null) { if (userPublicService != null && this.createUserId != null) {
taskUserVo.setStartUnit(userPublicService.findUnitsNameByUserId(this.createUserId)); taskUserVo.setStartUnit(userPublicService.findUnitsNameByUserId(this.createUserId));
taskUserVo.setCreateUser(userPublicService.getOne(this.createUserId).getName());
} }
// log.info("----{}",this.billStatus); // log.info("----{}",this.billStatus);
taskUserVo.setStatus(GlobalMap.getStatusEnumMap().get(this.billStatus).name); taskUserVo.setStatus(GlobalMap.getStatusEnumMap().get(this.billStatus).name);
......
...@@ -99,4 +99,7 @@ public class TaskUserVo { ...@@ -99,4 +99,7 @@ public class TaskUserVo {
@ApiModelProperty(value = "备注") @ApiModelProperty(value = "备注")
private String remark; private String remark;
@ApiModelProperty(value = "创建用户")
private String createUser;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论