APP申请提交和web申请提交流程节点问题修改

This commit is contained in:
zhangjun 2020-08-26 11:22:43 +08:00
parent 7ac5fcce87
commit 2f5458e007
3 changed files with 41 additions and 1 deletions

View File

@ -66,7 +66,8 @@ public class BusinessBO implements Serializable {
private String serialNo;
private String objectNo;
private String projectId;
private String newtype;
private String msg;
private Map<String, String> params;
@ -181,6 +182,8 @@ public class BusinessBO implements Serializable {
this.nativeplace = fieldMap.get("NATIVEADDRESS".toLowerCase()) == null ? "": fieldMap.get("NATIVEADDRESS".toLowerCase()).toString(); // 户籍地址
this.isnetcar = fieldMap.get("isnetcar".toLowerCase()) == null ? "": fieldMap.get("isnetcar".toLowerCase()).toString(); // 是否是网约车
this.mobile = fieldMap.get("mobile".toLowerCase()) == null ? "": fieldMap.get("mobile".toLowerCase()).toString(); // 手机号
this.newtype = fieldMap.get("newtype".toLowerCase()) == null ? "": fieldMap.get("newtype".toLowerCase()).toString(); // ÉêÇëÀàÐÍ
//更具产品id获取对应的主体信息
List<Map<String, String>> sujectIdList = DataOperatorUtil.getDataBySql("SELECT manysubject FROM PRD_SPECIFIC_LIBRARY WHERE productid='"+this.productId+"'");
if(sujectIdList.size()>0){
@ -259,6 +262,11 @@ public class BusinessBO implements Serializable {
map.put("nativeplace", nativeplace);
map.put("isnetcar", isnetcar);
map.put("mobile", mobile);
if("YES".equals(newtype)){
map.put("newtype", "ysp");
}else{
map.put("newtype", "");
}
JSONObject jsonObject = JSONObject.fromObject(map);
this.fixedFlowParam = jsonObject.toString();
@ -598,6 +606,14 @@ public class BusinessBO implements Serializable {
this.mobile = mobile;
}
public String getNewtype() {
return newtype;
}
public void setNewtype(String newtype) {
this.newtype = newtype;
}
public void sethaveCommission(String haveCommission) {
haveCommission = haveCommission;
}

View File

@ -9,6 +9,7 @@ import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
import apx.com.amarsoft.als.apzl.apply.business.doc.upload.service.impl.BusinessDocUploadServiceImpl;
import apx.com.amarsoft.als.apzl.apply.business.start.bo.BusinessBO;
import apx.com.amarsoft.als.apzl.apply.business.start.bo.ChangeBusinessBO;
@ -148,6 +149,17 @@ public class BusinessApplyStartServiceImpl implements BusinessApplyStartService
Map<String, Object> boy = new HashMap<String, Object>();
boy.put("isApprovalNode", "N");
if(flag) {
//Èç¹ûÊÇweb·¢ÆðappÌá½»
String applyType = fieldMap.get("applyType")==null?"":fieldMap.get("applyType").toString();
String flowunid = fieldMap.get("flowunid")==null?"":fieldMap.get("flowunid").toString();
if("BusinessApplyApply".equals(applyType) || "BusinessChangeApply".equals(applyType)){
BizObjectManager lpitM = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME,tx);
BizObject lpit = lpitM.createQuery(" flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(true);
if(lpit!=null){
lpit.setAttributeValue("source_type","app");
lpitM.saveObject(lpit);
}
}
//»ñÈ¡Ìá½»·Ö·Êý¾Ý
Map<String, Object> approvalNodeList = FlowManageUtil.getApprovalNode(fieldMap, tx);
if(approvalNodeList != null && "Y".equals(approvalNodeList.get("static"))){

View File

@ -9,10 +9,13 @@ import javax.servlet.http.HttpServletRequest;
import apx.com.amarsoft.als.apzl.apply.contract.make.util.ContractMakeControllerUtil;
import apx.com.amarsoft.als.base.flow.FlowTask;
import apx.com.amarsoft.als.business.action.service.DoSubmitService;
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
import com.amarsoft.app.flow.FlowAction;
import com.amarsoft.app.lc.workflow.action.GetFlowAction;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.are.jbo.JBOTransaction;
import com.amarsoft.are.lang.StringX;
import com.amarsoft.awe.util.Transaction;
@ -146,6 +149,15 @@ public class AutoRiskScanService {
body.put("autoDetail", scenarioUtil.getList());
}
if (autoResult) {
//Èç¹ûÊÇweb·¢ÆðappÌá½»
if("BusinessChangeFlow".equals(flowNo)){
BizObjectManager lpitM = JBOFactory.getBizObjectManager(LB_PROJECT_INFO_TEMP.CLASS_NAME,tx);
BizObject lpit = lpitM.createQuery(" flowunid=:flowunid").setParameter("flowunid", objectNo).getSingleResult(true);
if(lpit!=null){
lpit.setAttributeValue("source_type","app");
lpitM.saveObject(lpit);
}
}
// 此任务为退回的任务将按照要求在退回后重新提交给退回人!是否继续
body.put("assignedTaskNo", assignedTaskNo);
if (flowState.equals("MEETING")) {