diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/bo/BusinessBO.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/bo/BusinessBO.java index 871f6fdd1..994a3f924 100644 --- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/bo/BusinessBO.java +++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/bo/BusinessBO.java @@ -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 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> 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; } diff --git a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/service/impl/BusinessApplyStartServiceImpl.java b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/service/impl/BusinessApplyStartServiceImpl.java index 7e28c6553..04171cee2 100644 --- a/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/service/impl/BusinessApplyStartServiceImpl.java +++ b/src_app_fresh/apx/com/amarsoft/als/apzl/apply/business/start/service/impl/BusinessApplyStartServiceImpl.java @@ -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 boy = new HashMap(); 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 approvalNodeList = FlowManageUtil.getApprovalNode(fieldMap, tx); if(approvalNodeList != null && "Y".equals(approvalNodeList.get("static"))){ diff --git a/src_app_fresh/apx/com/amarsoft/als/business/action/scenario/AutoRiskScanService.java b/src_app_fresh/apx/com/amarsoft/als/business/action/scenario/AutoRiskScanService.java index e13b53c96..ebff1b3f8 100644 --- a/src_app_fresh/apx/com/amarsoft/als/business/action/scenario/AutoRiskScanService.java +++ b/src_app_fresh/apx/com/amarsoft/als/business/action/scenario/AutoRiskScanService.java @@ -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")) {