|
@@ -6,6 +6,7 @@ import com.miniframe.core.ext.UtilTools;
|
|
|
import com.miniframe.generate.appcode.ComType;
|
|
|
import com.miniframe.generate.business.mdo.model.MDO0074BaseModel;
|
|
|
import com.miniframe.model.mdo.MdoProInoutPara;
|
|
|
+import com.miniframe.model.mdo.MdoProInoutParaSQLBuilder;
|
|
|
import com.miniframe.model.mdo.dao.MdoProInoutParaMapper;
|
|
|
|
|
|
/**
|
|
@@ -24,29 +25,36 @@ public class MDO0074Service extends MDO0074BaseModel implements ExecProcessFlow
|
|
|
String paramstr =this.getA_mdo0074().getParamstr();
|
|
|
String tcomid = this.getA_mdo0074().getTcomid();
|
|
|
String tcomtype =this.getA_mdo0074().getTcomtype();
|
|
|
+ MdoProInoutParaMapper pdao = UtilTools.getBean(MdoProInoutParaMapper.class);
|
|
|
+ MdoProInoutParaSQLBuilder psb =new MdoProInoutParaSQLBuilder();
|
|
|
+ MdoProInoutParaSQLBuilder.Criteria psc = psb.createCriteria();
|
|
|
+ psc.andFatheridEqualTo(tcomid);
|
|
|
+ psc.andComtypeEqualTo(Integer.valueOf(tcomtype));
|
|
|
+ pdao.deleteByExample(psb);
|
|
|
+
|
|
|
String[] params = paramstr.split(";");
|
|
|
for (String p:params) {
|
|
|
String[] pt = p.split(",");
|
|
|
String paramid = pt[0];
|
|
|
String streamflag = pt[1];
|
|
|
- MdoProInoutParaMapper pdao = UtilTools.getBean(MdoProInoutParaMapper.class);
|
|
|
MdoProInoutPara para = pdao.selectByPrimaryKey(paramid);
|
|
|
- if(para!=null&&streamflag.equals("1")){//只修改选中的
|
|
|
+ if(para!=null){//只修改选中的
|
|
|
para.setSteamflag(Integer.valueOf(streamflag));
|
|
|
para.setSteamtype(3);
|
|
|
pdao.updateByPrimaryKey(para);
|
|
|
-
|
|
|
- //选中的添加到 目标组件来源数据中
|
|
|
- MdoProInoutPara tPara = new MdoProInoutPara();
|
|
|
- tPara.setId(UtilTools.getUUid());
|
|
|
- tPara.setFatherid(tcomid);
|
|
|
- tPara.setPid(para.getPid());
|
|
|
- tPara.setCode(para.getCode());
|
|
|
- tPara.setFlag(1);
|
|
|
- tPara.setValue("0");
|
|
|
- tPara.setType(1);
|
|
|
- tPara.setComtype(Integer.valueOf(tcomtype));
|
|
|
- pdao.insert(tPara);
|
|
|
+ if(streamflag.equals("1")){
|
|
|
+ //选中的添加到 目标组件来源数据中
|
|
|
+ MdoProInoutPara tPara = new MdoProInoutPara();
|
|
|
+ tPara.setId(UtilTools.getUUid());
|
|
|
+ tPara.setFatherid(tcomid);
|
|
|
+ tPara.setPid(para.getPid());
|
|
|
+ tPara.setCode(para.getCode());
|
|
|
+ tPara.setFlag(1);
|
|
|
+ tPara.setValue("0");
|
|
|
+ tPara.setType(1);
|
|
|
+ tPara.setComtype(Integer.valueOf(tcomtype));
|
|
|
+ pdao.insert(tPara);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|