提交 65147bf2 authored 作者: 邓砥奕's avatar 邓砥奕

更新

上级 65f3b861
...@@ -102,6 +102,9 @@ public class AllotBillController { ...@@ -102,6 +102,9 @@ public class AllotBillController {
@Autowired @Autowired
private AreaService areaService; private AreaService areaService;
@Autowired
private UserPublicService userService;
@ApiOperation(value = "导入二维码获取配发装备", notes = "可以通过这个接口导入二维码获取配发装备") @ApiOperation(value = "导入二维码获取配发装备", notes = "可以通过这个接口导入二维码获取配发装备")
@PostMapping(value = "/load") @PostMapping(value = "/load")
public ResponseEntity loadDevice(@RequestBody RfidVo rfidVo) { public ResponseEntity loadDevice(@RequestBody RfidVo rfidVo) {
...@@ -219,6 +222,16 @@ public class AllotBillController { ...@@ -219,6 +222,16 @@ public class AllotBillController {
messageService.add(messageBto); messageService.add(messageBto);
log.info("[配发模块]:" + allotBillEntity.getSendUnit() + "对" + allotBillEntity.getReceiveUnit() + "发起配发"); log.info("[配发模块]:" + allotBillEntity.getSendUnit() + "对" + allotBillEntity.getReceiveUnit() + "发起配发");
myWebSocket.sendMessage1(); myWebSocket.sendMessage1();
allotBill.setSenderUserA(userService.getOne(allotBill.getSendUseraId()).getName());
allotBill.setSenderUserB(allotBill.getAgent());
if (allotBill.getReceiveUseraId() != null) {
allotBill.setReceiveUserA(userService.getOne(allotBill.getReceiveUseraId()).getName());
}
if (allotBill.getReceiveUserbId() != null) {
allotBill.setReceiveUserB(userService.getOne(allotBill.getReceiveUserbId()).getName());
}
allotBill.setSendFileList(FilesUtil.stringFileToList(allotBill.getSendFiles()));
allotBill.setReplyFileList(FilesUtil.stringFileToList(allotBill.getReplyFiles()));
return ResponseEntity.ok(new ResultObj(allotBill, "发起成功")); return ResponseEntity.ok(new ResultObj(allotBill, "发起成功"));
} }
......
...@@ -63,7 +63,7 @@ public class AllotBillSelectController { ...@@ -63,7 +63,7 @@ public class AllotBillSelectController {
//set账单用户名称并添加 //set账单用户名称并添加
AllotBill allotBillEntity = allotBillService.getOne(id); AllotBill allotBillEntity = allotBillService.getOne(id);
allotBillEntity.setSenderUserA(userService.getOne(allotBillEntity.getSendUseraId()).getName()); allotBillEntity.setSenderUserA(userService.getOne(allotBillEntity.getSendUseraId()).getName());
allotBillEntity.setSenderUserB(userService.getOne(allotBillEntity.getSendUserbId()).getName()); allotBillEntity.setSenderUserB(allotBillEntity.getAgent());
if (allotBillEntity.getReceiveUseraId() != null) { if (allotBillEntity.getReceiveUseraId() != null) {
allotBillEntity.setReceiveUserA(userService.getOne(allotBillEntity.getReceiveUseraId()).getName()); allotBillEntity.setReceiveUserA(userService.getOne(allotBillEntity.getReceiveUseraId()).getName());
} }
......
...@@ -32,9 +32,17 @@ public class DeviceRetiredResultVo { ...@@ -32,9 +32,17 @@ public class DeviceRetiredResultVo {
@ApiModelProperty(value = "类型", example = "1") @ApiModelProperty(value = "类型", example = "1")
private Integer type; private Integer type;
@ApiModelProperty(value = "经办人/主管领导", example = "密级")
private String secretLevelName;
@ApiModelProperty(value = "类型", example = "1")
private String typeName;
@ApiModelProperty(value = "数量", example = "1") @ApiModelProperty(value = "数量", example = "1")
private Long count; private Long count;
private Integer isPart;
@ApiModelProperty(value = "数量", example = "1") @ApiModelProperty(value = "数量", example = "1")
private List<DeviceRetiredResultVo> childNodes = new ArrayList<>(); private List<DeviceRetiredResultVo> childNodes = new ArrayList<>();
} }
...@@ -45,6 +45,8 @@ public class DevRepelVo { ...@@ -45,6 +45,8 @@ public class DevRepelVo {
*/ */
private Integer type; private Integer type;
private String typeName;
/** /**
* 清退时间 * 清退时间
*/ */
......
...@@ -33,4 +33,6 @@ public class ModelNameGroup { ...@@ -33,4 +33,6 @@ public class ModelNameGroup {
* 装备id集合 * 装备id集合
*/ */
private List<Integer> ids; private List<Integer> ids;
private String typeName;
} }
...@@ -103,10 +103,10 @@ public class RepelQueryServiceImpl implements RepelQueryService { ...@@ -103,10 +103,10 @@ public class RepelQueryServiceImpl implements RepelQueryService {
deviceLibraries.forEach( deviceLibraries.forEach(
deviceLibrary -> { deviceLibrary -> {
List<Integer> ids=new ArrayList<>(); List<Integer> ids=new ArrayList<>();
String key=deviceLibrary.getModel()+deviceLibrary.getName(); String key=deviceLibrary.getModel()+deviceLibrary.getType();
if (!modelNameGroupMap.containsKey(key)){ if (!modelNameGroupMap.containsKey(key)){
ids.add(deviceLibrary.getId()); ids.add(deviceLibrary.getId());
modelNameGroupMap.put(key,new ModelNameGroup(deviceLibrary.getModel(),deviceLibrary.getType(),ids)); modelNameGroupMap.put(key,new ModelNameGroup(deviceLibrary.getModel(),deviceLibrary.getType(),ids,deviceLibrary.setConfigName().getTypeName()));
}else { }else {
ModelNameGroup modelNameGroup=modelNameGroupMap.get(key); ModelNameGroup modelNameGroup=modelNameGroupMap.get(key);
ids=modelNameGroupMap.get(key).getIds(); ids=modelNameGroupMap.get(key).getIds();
...@@ -222,7 +222,7 @@ public class RepelQueryServiceImpl implements RepelQueryService { ...@@ -222,7 +222,7 @@ public class RepelQueryServiceImpl implements RepelQueryService {
} }
private DevRepelVo devRepelVo(DeviceLibrary deviceLibrary){ private DevRepelVo devRepelVo(DeviceLibrary deviceLibrary){
return new DevRepelVo(deviceLibrary.getId(),deviceLibrary.getName(),deviceLibrary.getModel(),deviceLibrary.getSeqNumber(),deviceLibrary.getType(),deviceLibrary.getUpdateTime()); return new DevRepelVo(deviceLibrary.getId(),deviceLibrary.getName(),deviceLibrary.getModel(),deviceLibrary.getSeqNumber(),deviceLibrary.getType(),deviceLibrary.setConfigName().getTypeName(),deviceLibrary.getUpdateTime());
} }
private List<DeviceLibrary> findInvoleDevice(String involeDevice){ private List<DeviceLibrary> findInvoleDevice(String involeDevice){
......
...@@ -196,9 +196,11 @@ public class StatisticalController { ...@@ -196,9 +196,11 @@ public class StatisticalController {
// deviceStatistics.setName(strings[1]); // deviceStatistics.setName(strings[1]);
if ("null".equals(strings[1])){ if ("null".equals(strings[1])){
deviceStatistics.setType(null); deviceStatistics.setType(null);
deviceStatistics.setTypeName("-");
} }
else { else {
deviceStatistics.setType(Integer.valueOf(strings[1])); deviceStatistics.setType(Integer.valueOf(strings[1]));
deviceStatistics.setTypeName(map.get(s).get(0).setConfigName().getTypeName());
} }
deviceStatistics.setNum(map.get(s).size()); deviceStatistics.setNum(map.get(s).size());
deviceStatistics.setDeviceIds(map.get(s).stream().map(DeviceLibrary::getId).collect(Collectors.toList())); deviceStatistics.setDeviceIds(map.get(s).stream().map(DeviceLibrary::getId).collect(Collectors.toList()));
......
...@@ -27,4 +27,7 @@ public class DeviceStatistics { ...@@ -27,4 +27,7 @@ public class DeviceStatistics {
@ApiModelProperty(value = "装备Id列表") @ApiModelProperty(value = "装备Id列表")
private List<Integer> deviceIds; private List<Integer> deviceIds;
@ApiModelProperty(value = "装备类型", example = "100")
private String typeName;
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论