|
@@ -93,8 +93,22 @@ public class MDO0064Service extends MDO0064BaseModel implements ExecProcessFlow
|
|
|
for (String inP : inPs) {
|
|
|
String[] ps = inP.split(",");
|
|
|
String paraId = ps[0];
|
|
|
- MdoProInoutPara p = xpDao.selectByPrimaryKey(paraId);
|
|
|
- if(p!=null){
|
|
|
+ if(!StringUtil.isEmpty(paraId.trim())){
|
|
|
+ MdoProInoutPara p = xpDao.selectByPrimaryKey(paraId);
|
|
|
+ if(p!=null){
|
|
|
+ p.setCode(ps[1]);
|
|
|
+ p.setName(ps[2]);
|
|
|
+ p.setValue(ps[3]);
|
|
|
+ p.setFlag(Integer.valueOf(ps[4]));
|
|
|
+ p.setComtype(Integer.valueOf(ComType.MathFunc.getIndex()));
|
|
|
+ p.setType(type);
|
|
|
+ p.setFatherid(adid);
|
|
|
+ p.setPid(pid);
|
|
|
+ xpDao.updateByPrimaryKey(p);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ MdoProInoutPara p = new MdoProInoutPara();
|
|
|
+ p.setId(UtilTools.getUUid());
|
|
|
p.setCode(ps[1]);
|
|
|
p.setName(ps[2]);
|
|
|
p.setValue(ps[3]);
|
|
@@ -103,9 +117,10 @@ public class MDO0064Service extends MDO0064BaseModel implements ExecProcessFlow
|
|
|
p.setType(type);
|
|
|
p.setFatherid(adid);
|
|
|
p.setPid(pid);
|
|
|
- xpDao.updateByPrimaryKey(p);
|
|
|
+ xpDao.insert(p);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
|