|
|
@ -519,6 +519,7 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit |
|
|
|
|
|
|
|
|
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public List<EmInfoContentVO> getEmInfoContent(String emCode, ContentDTO dto) { |
|
|
|
public List<EmInfoContentVO> getEmInfoContent(String emCode, ContentDTO dto) { |
|
|
|
|
|
|
|
EmInfoEntity emInfo = getEmInfoByEmCode(emCode); |
|
|
|
List<EmInfoContentVO> emInfoContentList = new ArrayList<>(); |
|
|
|
List<EmInfoContentVO> emInfoContentList = new ArrayList<>(); |
|
|
|
ProjectContentRequest request = new ProjectContentRequest(); |
|
|
|
ProjectContentRequest request = new ProjectContentRequest(); |
|
|
|
request.setCurrent(1); |
|
|
|
request.setCurrent(1); |
|
|
@ -555,7 +556,7 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit |
|
|
|
for (ContentVO content : contentVOList) { |
|
|
|
for (ContentVO content : contentVOList) { |
|
|
|
EmInfoContentVO vo = new EmInfoContentVO(); |
|
|
|
EmInfoContentVO vo = new EmInfoContentVO(); |
|
|
|
BeanUtils.copyProperties(content, vo); |
|
|
|
BeanUtils.copyProperties(content, vo); |
|
|
|
|
|
|
|
vo.setEmName(emInfo.getName()); |
|
|
|
if (Func.isNotEmpty(childrenMap)) { |
|
|
|
if (Func.isNotEmpty(childrenMap)) { |
|
|
|
DeviceChildrenVO deviceChildrenVO = childrenMap.get(vo.getAttrSignage()); |
|
|
|
DeviceChildrenVO deviceChildrenVO = childrenMap.get(vo.getAttrSignage()); |
|
|
|
vo.setInstanceFacDeviceId(Optional.ofNullable(deviceChildrenVO).map(DeviceChildrenVO::getRealId).orElse(null));//deviceChildrenVO.getRealId()
|
|
|
|
vo.setInstanceFacDeviceId(Optional.ofNullable(deviceChildrenVO).map(DeviceChildrenVO::getRealId).orElse(null));//deviceChildrenVO.getRealId()
|
|
|
@ -776,18 +777,19 @@ public class EmInfoServiceImpl extends BaseServiceImpl<EmInfoMapper, EmInfoEntit |
|
|
|
emInfo.setInstallTime(new Date()); |
|
|
|
emInfo.setInstallTime(new Date()); |
|
|
|
emInfo.setRunStatus("1"); |
|
|
|
emInfo.setRunStatus("1"); |
|
|
|
emInfo.setStatus(1); |
|
|
|
emInfo.setStatus(1); |
|
|
|
|
|
|
|
emInfo.setHomePageDisplay("1"); |
|
|
|
emInfo.setRunDate(new Date()); |
|
|
|
emInfo.setRunDate(new Date()); |
|
|
|
emInfo.setCreateDept(station.getRefDept()); |
|
|
|
emInfo.setCreateDept(station.getRefDept()); |
|
|
|
emInfo.setCreateTime(new Date()); |
|
|
|
emInfo.setCreateTime(new Date()); |
|
|
|
emInfo.setCreateUser(AuthUtil.getUserId()); |
|
|
|
emInfo.setCreateUser(AuthUtil.getUserId()); |
|
|
|
if (SET_TYPE.equals(emInfo.getEmType())) { |
|
|
|
if (SET_TYPE.equals(emInfo.getEmType())) { |
|
|
|
Integer maxIndex = baseMapper.getMaxEmIndexByPid(pid); |
|
|
|
Integer maxIndex = baseMapper.getMaxEmIndexByPid(emInfo.getDepartment(), emInfo.getEmGrade()); |
|
|
|
if (Func.isNotEmpty(maxIndex)) { |
|
|
|
if (Func.isNotEmpty(maxIndex)) { |
|
|
|
emInfo.setEmIndex(maxIndex + 1); |
|
|
|
emInfo.setEmIndex(maxIndex + 1); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
emInfo.setEmIndex(1); |
|
|
|
emInfo.setEmIndex(1); |
|
|
|
} |
|
|
|
} |
|
|
|
emInfo.setName(emInfo.getEmIndex() + "号机组"); |
|
|
|
emInfo.setName(emTree.getName() + emInfo.getEmIndex() + "号机组"); |
|
|
|
} |
|
|
|
} |
|
|
|
this.save(emInfo); |
|
|
|
this.save(emInfo); |
|
|
|
LambdaQueryWrapper<EmTreeParamEntity> treeParamWrapper = new LambdaQueryWrapper(); |
|
|
|
LambdaQueryWrapper<EmTreeParamEntity> treeParamWrapper = new LambdaQueryWrapper(); |
|
|
|