修改接口平台进单项目名称和分单
This commit is contained in:
parent
439da89fb2
commit
0f048aecb2
@ -3,6 +3,7 @@ package com.tenwa.flow.action.comm;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Set;
|
||||
|
||||
import apx.com.amarsoft.als.base.flow.FlowTask;
|
||||
|
||||
@ -23,7 +24,10 @@ import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.flow.service.FlowUserManageServie;
|
||||
import com.tenwa.flow.service.FlowUserManageServieImp;
|
||||
|
||||
public class BaseFlowStartAction extends FlowBussionAction {
|
||||
private String error_message = "failed@发起流程出错";
|
||||
@ -204,7 +208,23 @@ public class BaseFlowStartAction extends FlowBussionAction {
|
||||
throw new Exception( "未找到流程信息" );
|
||||
JSONArray ja = JSONArray.parseArray(actionScript);
|
||||
JSONObject obj = ja.getJSONObject(0);
|
||||
flowAction.setPhaseAction(obj.getString("userinfo").replaceAll(","," "));
|
||||
if(obj.getString("usertype").indexOf("ÈÎÎñ³Ø")>0){
|
||||
flowAction.setPhaseAction(obj.getString("userinfo").replaceAll(","," "));
|
||||
}else{
|
||||
FlowUserManageServie fUserManager = new FlowUserManageServieImp(tx, new ASUser(submitUserId));
|
||||
Map<String, String> model = new HashMap<String, String>();
|
||||
model.put("flowunid", this.submitFlowunid);
|
||||
model.put("objectno", submitFlowunid);
|
||||
model.put("taskno", taskNo);
|
||||
Map<String, String> mapPassReader = fUserManager.getFlowOperatorUser(model, actionScript);
|
||||
Set<String> keySet = mapPassReader.keySet();
|
||||
if(!keySet.isEmpty()){
|
||||
flowAction.setPhaseAction(keySet.iterator().next()+" "+mapPassReader.get(keySet.iterator().next()));
|
||||
}else{
|
||||
throw new Exception( "Ìá½»Á÷³Ìʧ°Ü" );
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
flowAction.submit( tx );
|
||||
tx.commit();
|
||||
|
||||
@ -217,6 +217,7 @@ public class PlatformDataToTemp extends BaseBussiness {
|
||||
lpitBo.setAttributeValue("IS_NETCAR",ppiBo.getAttribute("IS_NETCAR"));
|
||||
lpitBo.setAttributeValue("source_type",ppiBo.getAttribute("source_type"));
|
||||
lpitBo.setAttributeValue("APPLICATION_NO",ppiBo.getAttribute("APPLICATION_NO"));
|
||||
lpitBo.setAttributeValue("PROJECT_NAME",lpitBo.getAttribute("project_no")+"-"+this.getAttribute("custname").toString());
|
||||
if(!"0".equals(ppiBo.getAttribute("IS_NETCAR").toString())){
|
||||
lpitBo.setAttributeValue("IS_OPERATION",ppiBo.getAttribute("IS_OPERATION"));
|
||||
lpitBo.setAttributeValue("IS_AFFILIATED",ppiBo.getAttribute("IS_AFFILIATED"));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user