|
@@ -730,6 +730,12 @@ public class TRmCalpointValueServiceImpl extends BaseServiceImpl<TRmCalpointValu
|
|
|
}
|
|
|
t.setUpman(updateUser);
|
|
|
t.setUptime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
|
|
+ //八万煤气柜柜容重写
|
|
|
+ if(t.getItemid().equalsIgnoreCase("DL421P00770002")&&t.getTimegranid().equalsIgnoreCase("DAY")){
|
|
|
+ t.setMintvalue(BigDecimal.ZERO);
|
|
|
+ t.setActualvalue(qmb);
|
|
|
+ t.setApportvalue(qmb);
|
|
|
+ }
|
|
|
tRmCalpointValueMapper.updateByPrimaryKeySelective(t);
|
|
|
} else {
|
|
|
// 数据不存在,新增
|
|
@@ -751,6 +757,12 @@ public class TRmCalpointValueServiceImpl extends BaseServiceImpl<TRmCalpointValu
|
|
|
t.setItemname(itemname);
|
|
|
t.setCrman(updateUser);
|
|
|
t.setRecTime(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date()));
|
|
|
+ //八万煤气柜柜容重写
|
|
|
+ if(t.getItemid().equalsIgnoreCase("DL421P00770002")&&t.getTimegranid().equalsIgnoreCase("DAY")){
|
|
|
+ t.setMintvalue(BigDecimal.ZERO);
|
|
|
+ t.setActualvalue(qmb);
|
|
|
+ t.setApportvalue(qmb);
|
|
|
+ }
|
|
|
tRmCalpointValueMapper.insertSelective(t);
|
|
|
}
|
|
|
// 超标异常记录,当前只记录日数据,且最大最小值不都为0的计量点
|