映射表bug排查
This commit is contained in:
parent
7ef5d8011b
commit
0d4074388b
@ -363,15 +363,17 @@ public class SysNodeServiceImpl implements SysNodeService {
|
||||
List<SysTabMappingVo> discrete = impList.stream().filter(item -> collect.get(item.getId()) == 140).collect(Collectors.toList());
|
||||
List<SysTabMappingVo> setPoint = impList.stream().filter(item -> collect.get(item.getId()) == 146).collect(Collectors.toList());
|
||||
List<SysTabMappingVo> control = impList.stream().filter(item -> collect.get(item.getId()) == 147).collect(Collectors.toList());
|
||||
//校验param里面order不重复
|
||||
if (checkOrderRepeated(analogList) || checkOrderRepeated(accumulator) || checkOrderRepeated(discrete) || checkOrderRepeated(setPoint) || checkOrderRepeated(control)){
|
||||
throw new ServiceException("检查顺序,排序不能重复");
|
||||
}
|
||||
}
|
||||
SysUserVo sysUserVo = (SysUserVo) StpUtil.getTokenSession().get(SessionUtil.SESSION_USER_KEY);
|
||||
for (SysTabMappingVo imp : impList) {
|
||||
//校验param里面order不重复
|
||||
|
||||
SysTabMapping rec = sysImptabmappingMapper.selectById(imp.getId());
|
||||
if (rec == null){
|
||||
log.info("测点Id:{}",imp.getId());
|
||||
}
|
||||
rec.setUpdatedTime(new Date());
|
||||
rec.setUpdatedBy(sysUserVo.getAccount());
|
||||
rec.setParams(imp.getParams());
|
||||
|
Loading…
Reference in New Issue
Block a user