|
@@ -29,7 +29,8 @@ public class D10008Service extends D10008BaseModel implements ExecProcessFlow {
|
|
|
// String nname =this.getA_d10008().getNname();
|
|
|
DNodeMapper nodeMapper = UtilTools.getBean(DNodeMapper.class);
|
|
|
DNode node =nodeMapper.selectByPrimaryKey(nid);
|
|
|
- String nname=node.getCode();
|
|
|
+ String nname=node.getName();
|
|
|
+ String ncode=node.getCode();
|
|
|
String type =this.getA_d10008().getType();
|
|
|
String flow=this.getA_d10008().getFlow();
|
|
|
String pressure=this.getA_d10008().getPressure();
|
|
@@ -39,22 +40,25 @@ public class D10008Service extends D10008BaseModel implements ExecProcessFlow {
|
|
|
DBoundaryMapper bDao = UtilTools.getBean(DBoundaryMapper.class);
|
|
|
if(bid==null||bid<=0){//添加
|
|
|
pdAidNidType(nid, aid, type, bDao);
|
|
|
- saveDBoundary(nid, aid, nname, type, flow, pressure, temperature, polcon1, polcon2, bDao);
|
|
|
+ saveDBoundary(nid, aid, nname,ncode, type, flow, pressure, temperature, polcon1, polcon2, bDao);
|
|
|
}else{//修改
|
|
|
DBoundary b =bDao.selectByPrimaryKey(bid);
|
|
|
if(b==null){
|
|
|
throw new BusinessException("EB3100006");
|
|
|
}
|
|
|
pdAidNidTypeByBid(nid, aid, type, bDao,bid);
|
|
|
- updateDBoundary(nid, aid, nname, type, flow, pressure, temperature, polcon1, polcon2, bDao, b);
|
|
|
+ updateDBoundary(nid, aid, nname,ncode,type, flow, pressure, temperature, polcon1, polcon2, bDao, b);
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
- private void updateDBoundary(Integer nid, Integer aid, String nname, String type, String flow, String pressure, String temperature, String polcon1, String polcon2, DBoundaryMapper bDao, DBoundary b) {
|
|
|
+ private void updateDBoundary(Integer nid, Integer aid, String nname,String ncode,
|
|
|
+ String type, String flow, String pressure, String temperature, String polcon1, String polcon2,
|
|
|
+ DBoundaryMapper bDao, DBoundary b) {
|
|
|
b.setAid(aid);
|
|
|
b.setNid(nid);
|
|
|
b.setNname(nname);
|
|
|
+ b.setNcode(ncode);
|
|
|
b.setType(type);
|
|
|
b.setFlow(backNumString(flow));
|
|
|
b.setPressure(backNumString(pressure));
|
|
@@ -64,11 +68,13 @@ public class D10008Service extends D10008BaseModel implements ExecProcessFlow {
|
|
|
bDao.updateByPrimaryKey(b);
|
|
|
}
|
|
|
|
|
|
- private void saveDBoundary(Integer nid, Integer aid, String nname, String type, String flow, String pressure, String temperature, String polcon1, String polcon2, DBoundaryMapper bDao) {
|
|
|
+ private void saveDBoundary(Integer nid, Integer aid, String nname,String ncode,
|
|
|
+ String type, String flow, String pressure, String temperature, String polcon1, String polcon2, DBoundaryMapper bDao) {
|
|
|
DBoundary b =new DBoundary();
|
|
|
b.setAid(aid);
|
|
|
b.setNid(nid);
|
|
|
b.setNname(nname);
|
|
|
+ b.setNcode(ncode);
|
|
|
b.setType(type);
|
|
|
b.setFlow(backNumString(flow));
|
|
|
b.setPressure(backNumString(pressure));
|