|
@@ -33,18 +33,20 @@ public class MDO0053Service extends MDO0053BaseModel implements ExecProcessFlow
|
|
|
String streamtype =pt[2];
|
|
|
MdoProInoutParaMapper pdao = UtilTools.getBean(MdoProInoutParaMapper.class);
|
|
|
MdoProInoutPara para = pdao.selectByPrimaryKey(paramid);
|
|
|
- if(para!=null&&streamflag.equals("1")){//只修改选中的
|
|
|
- comid = para.getFatherid();
|
|
|
- comtype =para.getComtype();
|
|
|
- para.setSteamflag(Integer.valueOf(streamflag));
|
|
|
- para.setSteamtype(Integer.valueOf(streamtype));
|
|
|
- pdao.updateByPrimaryKey(para);
|
|
|
- }else{
|
|
|
- comid = para.getFatherid();
|
|
|
- comtype =para.getComtype();
|
|
|
- para.setSteamflag(Integer.valueOf(streamflag));
|
|
|
- para.setSteamtype(null);
|
|
|
- pdao.updateByPrimaryKey(para);
|
|
|
+ if(para!=null) {
|
|
|
+ if (streamflag.equals("1")) {//只修改选中的
|
|
|
+ comid = para.getFatherid();
|
|
|
+ comtype = para.getComtype();
|
|
|
+ para.setSteamflag(Integer.valueOf(streamflag));
|
|
|
+ para.setSteamtype(Integer.valueOf(streamtype));
|
|
|
+ pdao.updateByPrimaryKey(para);
|
|
|
+ } else {//未选中 还原
|
|
|
+ comid = para.getFatherid();
|
|
|
+ comtype = para.getComtype();
|
|
|
+ para.setSteamflag(Integer.valueOf(streamflag));
|
|
|
+ para.setSteamtype(null);
|
|
|
+ pdao.updateByPrimaryKey(para);
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
deleComAndFum(comid);
|