diff --git a/WebContent/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageList.jsp b/WebContent/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageList.jsp index 6874c6092..42045a2f0 100644 --- a/WebContent/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageList.jsp +++ b/WebContent/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageList.jsp @@ -1,48 +1,56 @@ -<%@ page contentType="text/html; charset=GBK"%> -<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% - /* - Author: undefined 2016-06-07 - Content: - History Log: - */ - ASObjectModel doTemp = new ASObjectModel("BTBussinessMessageList"); - ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); - dwTemp.Style="1"; //--设置为Grid风格-- - dwTemp.ReadOnly = "1"; //只读模式 - dwTemp.setPageSize(20); - dwTemp.genHTMLObjectWindow(CurUser.getUserID()); - - //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 - String sButtons[][] = { - {"true","","Button","消息详情","消息详情","viewAndEdit()","","","","btn_icon_detail",""}, - {"true","","Button","已处理","已处理","hasProcess()","","","","btn_icon_detail",""}, - {"true","","Button","已知","已知","hasKnow()","","","","btn_icon_detail",""} - }; -%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> -<%@include file="/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageFunciton.jspf"%> - +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_list.jspf"%><% + /* + Author: undefined 2016-06-07 + Content: + History Log: + */ + ASObjectModel doTemp = new ASObjectModel("BTBussinessMessageList"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "1"; //只读模式 + dwTemp.setPageSize(20); + dwTemp.genHTMLObjectWindow(CurUser.getUserID()); + + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] = { + {"true","","Button","消息详情","消息详情","viewAndEdit()","","","","btn_icon_detail",""}, + //{"true","","Button","已处理","已处理","hasProcess()","","","","btn_icon_detail",""}, + {"true","","Button","已知","已知","hasKnow()","","","","btn_icon_detail",""} + }; +%><%@include file="/Frame/resources/include/ui/include_list.jspf"%> +<%@include file="/Tenwa/Core/BussinessMessage/MessageInfo/BaseMessageFunciton.jspf"%> + <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp new file mode 100644 index 000000000..1ca2ef0fe --- /dev/null +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/AccountChangeFlowDebitCardInfo.jsp @@ -0,0 +1,139 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@page import="jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%> +<% + /* + Author: undefined 2017-07-10 + Content: 示例详情页面 + History Log: + */ + String projectId = CurPage.getParameter("ProjectId"); + String RightType=CurPage.getParameter("RightType"); + String ishistory=CurPage.getParameter("IsHistory"); + String ApplyType=CurPage.getParameter("ApplyType"); + String CustomerType=CurPage.getParameter("CustomerType"); + String customerId = CurPage.getParameter("customerId"); + String FlowUnid=CurPage.getParameter("FlowUnid"); + String contractId = CurPage.getParameter("ContractId"); + + String sTempletNo = "DebitCardInfoMcontract";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + doTemp.setHtmlEvent("acc_number", "onchange", "getNameOfBank"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + + if((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true"))){ + dwTemp.ReadOnly = "-2";//只读模式 + RightType="ReadOnly"; + isShowButton=false; + }else{ + isShowButton=true; + } + dwTemp.genHTMLObjectWindow(projectId); + + String sButtons[][] = { + {"true","","Button","保存","保存所有修改","save()","","","",""} + } ; + + sButtonPosition = "north"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/Change.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/Change.jsp index eba65b9e9..d94d19d37 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/Change.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/Change.jsp @@ -1,15 +1,15 @@ -<%@ page contentType="text/html; charset=GBK"%> -<%@ include file="/IncludeBegin.jsp"%><% - /* - Author: undefined 2018-07-30 - Content: - History Log: - */ -%><%@include file="/Resources/CodeParts/Frame02.jsp"%> - +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/IncludeBegin.jsp"%><% + /* + Author: undefined 2018-07-30 + Content: + History Log: + */ +%><%@include file="/Resources/CodeParts/Frame02.jsp"%> + <%@ include file="/IncludeEnd.jsp"%> \ No newline at end of file diff --git a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfoForm.jsp b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfoForm.jsp index acec21215..df3f3b938 100644 --- a/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfoForm.jsp +++ b/WebContent/Tenwa/Lease/Flow/Comm/LBDebitCard/DebitCardInfoForm.jsp @@ -1,38 +1,38 @@ -<%@ page contentType="text/html; charset=GBK"%> -<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% - /* - Author: undefined 2018-07-30 - Content: 示例详情页面 - History Log: - */ - String ishistory = CurPage.getParameter("IsHistory"); - String ContractId = CurPage.getParameter("ContractId"); - String sPrevUrl = CurPage.getParameter("PrevUrl"); - String flowName = CurPage.getParameter("FlowName"); - String flowUnid = CurPage.getParameter("FlowUnid"); - if(sPrevUrl == null) sPrevUrl = ""; - - String sTempletNo = "DebitCardInfoForm";//--模板号-- - if("扣款信息变更审核".equals(flowName)&& null!=ishistory&&ishistory.equals("true")){ - sTempletNo = "DebitCardInfoFormHis"; - ContractId = flowUnid; - } - ASObjectModel doTemp = new ASObjectModel(sTempletNo); -// doTemp.setColTips("", "测试"); - ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); - dwTemp.Style = "2";//freeform - dwTemp.ReadOnly = "-2";//只读模式 - dwTemp.genHTMLObjectWindow(ContractId); - - String sButtons[][] = { -// {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, - {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""} - }; - sButtonPosition = "south"; -%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> - +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2018-07-30 + Content: 示例详情页面 + History Log: + */ + String ishistory = CurPage.getParameter("IsHistory"); + String ContractId = CurPage.getParameter("ContractId"); + String sPrevUrl = CurPage.getParameter("PrevUrl"); + String flowName = CurPage.getParameter("FlowName"); + String flowUnid = CurPage.getParameter("FlowUnid"); + if(sPrevUrl == null) sPrevUrl = ""; + + String sTempletNo = "DebitCardInfoForm";//--模板号-- + if("扣款信息变更审核".equals(flowName)){ + sTempletNo = "DebitCardInfoFormHis"; + ContractId = flowUnid; + } + ASObjectModel doTemp = new ASObjectModel(sTempletNo); +// doTemp.setColTips("", "测试"); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.genHTMLObjectWindow(ContractId); + + String sButtons[][] = { +// {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, + {String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""} + }; + sButtonPosition = "south"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + <%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/wechat/WechatAdvanceSettleInfo.jsp b/WebContent/Tenwa/wechat/WechatAdvanceSettleInfo.jsp new file mode 100644 index 000000000..112a0f272 --- /dev/null +++ b/WebContent/Tenwa/wechat/WechatAdvanceSettleInfo.jsp @@ -0,0 +1,84 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2019-11-04 + Content: 示例详情页面 + History Log: + */ + String sTempletNo = "WechatAdvanceSettle";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + //dwTemp.ReadOnly = "-2";//只读模式 + dwTemp.genHTMLObjectWindow(CurPage.getParameter("AdvanceSettleId")); + + String sButtons[][] = { + {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, + {"true","","Button","通过","通过","saveRecord()","","","","btn_icon_submit"}, + {"true","All","Button","否决","否决","returnList()","","","","btn_icon_close"}, + + }; + sButtonPosition = "north"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/wechat/WechatBankNumberDocList.jsp b/WebContent/Tenwa/wechat/WechatBankNumberDocList.jsp new file mode 100644 index 000000000..9c0f259e7 --- /dev/null +++ b/WebContent/Tenwa/wechat/WechatBankNumberDocList.jsp @@ -0,0 +1,168 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_simplelist.jspf"%> +<%@ page import="com.tenwa.doc.action.DocListInitAction" %> +<%@ page import="com.amarsoft.app.lc.workflow.action.GetFlowAction" %> +<% + /* + 带出业务申请时附件的专用页面 + Author: undefined 2016-09-01 + Content: + History Log: + */ + + String bankInfoId = CurPage.getParameter("bankinfoid"); + String RightType =""; + String sObjectType = ""; + String username = ""; + String sTempletNo="WechatBankNumberDocList"; + if(sTempletNo==null){ + sTempletNo="FlowPayDocList"; + } + + String compClientID = request.getParameter("bankInfoId"); + + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + //doTemp.appendJboWhere(" and rela.proj_id='"+ProjectId+"' and rela.objecttype='BusinessApplyFlow'"); + + doTemp.setLockCount(2); + + ASObjectWindow dwTemp = new ASObjectWindow(CurPage,doTemp,request); + dwTemp.Style="1"; //--设置为Grid风格-- + dwTemp.ReadOnly = "0"; + dwTemp.setPageSize(50); + dwTemp.genHTMLObjectWindow(bankInfoId); + //0、是否展示 1、 权限控制 2、 展示类型 3、按钮显示名称 4、按钮解释文字 5、按钮触发事件代码 6、 7、 8、 9、图标,CSS层叠样式 10、风格 + String sButtons[][] =null; + + sButtons=new String[][]{ + {"false","","Button","保存","保存所有修改","saveRecord()","","","",""}, + }; + +%> + +<%@include file="/Frame/resources/include/ui/include_list.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/wechat/WechatBanknumberChangeInfo.jsp b/WebContent/Tenwa/wechat/WechatBanknumberChangeInfo.jsp new file mode 100644 index 000000000..592f29502 --- /dev/null +++ b/WebContent/Tenwa/wechat/WechatBanknumberChangeInfo.jsp @@ -0,0 +1,53 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2019-11-02 + Content: 示例详情页面 + History Log: + */ + String bankInfoId = CurPage.getParameter("bankinfoid"); + String compClientID = request.getParameter("CompClientID"); + String sTempletNo = "WechatBanknumberChange";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + dwTemp.genHTMLObjectWindow(bankInfoId); + System.out.println(sWebRootPath); + dwTemp.replaceColumn("docFile", "", CurPage.getObjectWindowOutput()); + + String sButtons[][] = { + {"true","All","Button","保存","保存所有修改","as_save(0)","","","",""}, + {"true","All","Button","否决","否决","returnList()","","","","btn_icon_close"}, + }; + sButtonPosition = "north"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/Tenwa/wechat/WechatBasicChange.jsp b/WebContent/Tenwa/wechat/WechatBasicChange.jsp new file mode 100644 index 000000000..68755b49f --- /dev/null +++ b/WebContent/Tenwa/wechat/WechatBasicChange.jsp @@ -0,0 +1,72 @@ +<%@ page contentType="text/html; charset=GBK"%> +<%@ include file="/Frame/resources/include/include_begin_info.jspf"%><% + /* + Author: undefined 2019-11-01 + Content: 示例详情页面 + History Log: + */ + String sPrevUrl = CurPage.getParameter("PrevUrl"); + if(sPrevUrl == null) sPrevUrl = ""; + + String sTempletNo = "WechatBasicChange";//--模板号-- + ASObjectModel doTemp = new ASObjectModel(sTempletNo); + ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request); + dwTemp.Style = "2";//freeform + dwTemp.genHTMLObjectWindow(CurPage.getParameter("changeId")); + + String sButtons[][] = { + {"true","","Button","保存","审批意见","saveRecord('save')","","","","btn_icon_save"}, + {"true","","Button","通过","通过","saveRecord('via')","","","","btn_icon_submit"}, + {"true","","Button","否决","否决","saveRecord('refuse')","","","","btn_icon_close"} + }; + sButtonPosition = "north"; +%><%@ include file="/Frame/resources/include/ui/include_info.jspf"%> + +<%@ include file="/Frame/resources/include/include_end.jspf"%> \ No newline at end of file diff --git a/WebContent/WEB-INF/etc/jbo/jbo_app.xml b/WebContent/WEB-INF/etc/jbo/jbo_app.xml index 2f1d5a6b5..2f2e6e6ed 100644 --- a/WebContent/WEB-INF/etc/jbo/jbo_app.xml +++ b/WebContent/WEB-INF/etc/jbo/jbo_app.xml @@ -4804,6 +4804,108 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/calc/com/tenwa/flow/ChangeWechatSubmitFlow.java b/calc/com/tenwa/flow/ChangeWechatSubmitFlow.java new file mode 100644 index 000000000..c6f42abbd --- /dev/null +++ b/calc/com/tenwa/flow/ChangeWechatSubmitFlow.java @@ -0,0 +1,46 @@ +package com.tenwa.flow; + +import jbo.app.WECHAT_ADVANCE_SETTLE; +import jbo.app.WECHAT_BANKNUMBER_CHANGE; +import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO; + +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; + +/* + * 修改微信公众号提交修改信息状态 + */ +public class ChangeWechatSubmitFlow extends BaseBussiness{ + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("ObjectNo").toString(); + String flowName = this.getAttribute("FlowName").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + BizObjectManager lciMange = JBOFactory.getBizObjectManager(LB_CONTRACT_INFO.CLASS_NAME,Sqlca); + BizObject lci = lciMange.createQuery("id=:id").setParameter("id", ContractId).getSingleResult(false); + String contractNo = lci.getAttribute("contract_no").toString(); + if("扣款信息变更审核".equals(flowName)){ + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME,Sqlca); + BizObject wbc = wbcMange.createQuery("contract_no=:contractNo and STATUS='处理中' " ).setParameter("contractNo", contractNo).getSingleResult(true); + if(wbc != null){ + wbc.setAttributeValue("flowUnid", flowunid); + wbc.setAttributeValue("flowStatus", "已提交"); + wbcMange.saveObject(wbc); + } + }else if ("提前结清".equals(flowName)){ + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME,Sqlca); + BizObject wbc = wasMange.createQuery("contract_no=:contractNo and (STATUS='处理中' or STATUS='已受理' ) " ).setParameter("contractNo", contractNo).getSingleResult(true); + if(wbc != null){ + wbc.setAttributeValue("flowUnid", flowunid); + wbc.setAttributeValue("flowStatus", "已提交"); + wasMange.saveObject(wbc); + } + } + return "true"; + } +} diff --git a/calc/com/tenwa/flow/ChangeWechatSubmitStatus.java b/calc/com/tenwa/flow/ChangeWechatSubmitStatus.java new file mode 100644 index 000000000..9a9e50bc8 --- /dev/null +++ b/calc/com/tenwa/flow/ChangeWechatSubmitStatus.java @@ -0,0 +1,85 @@ +package com.tenwa.flow; + +import java.text.SimpleDateFormat; +import java.util.Date; + +import jbo.app.WECHAT_ADVANCE_SETTLE; +import jbo.app.WECHAT_BANKNUMBER_CHANGE; +import jbo.com.tenwa.entity.comm.message.BT_BUSSINESS_MESSAGE; +import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO; +import jbo.sys.FLOW_OPINION; +import jbo.sys.FLOW_TASK; + +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.flow.baseBussion.BaseBussiness; + +/* + * 修改微信公众号提交修改信息状态 + */ +public class ChangeWechatSubmitStatus extends BaseBussiness{ + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("ObjectNo").toString(); + String flowName = this.getAttribute("FlowName").toString(); + BizObjectManager ftManage = JBOFactory.getBizObjectManager(FLOW_TASK.CLASS_NAME,Sqlca); + BizObjectManager foManager = JBOFactory.getBizObjectManager(FLOW_OPINION.CLASS_NAME,Sqlca); + BizObjectManager bumManager = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME,Sqlca); + + Date date1 = new Date() ; //获取系统时间 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式 + String date = sdf.format(date1); //将系统时间转换成上方指定类型 + if("扣款信息变更审核".equals(flowName)){ + BizObject ft = ftManage.createQuery(" objectno=:flowunid and phaseno='0010' ").setParameter("flowunid", flowunid).getSingleResult(false); + BizObject fo = foManager.createQuery(" SerialNo=:SerialNo ").setParameter("SerialNo", ft == null ? "" : ft.getAttribute("SerialNo").toString()).getSingleResult(false); + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME,Sqlca); + BizObject wbc = wbcMange.createQuery("flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); + if(wbc != null){ + wbc.setAttributeValue("STATUS", "通过"); + wbc.setAttributeValue("flowStatus", "通过"); + wbc.setAttributeValue("UPDATETIME", date); + + wbc.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion")); + wbcMange.saveObject(wbc); + BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true); + if(bum != null ){ + bum.setAttributeValue("message_status", "has_process"); + bum.setAttributeValue("is_read", "has_read"); + bum.setAttributeValue("finish_time", date); + bum.setAttributeValue("read_time", date); + bumManager.saveObject(bum); + + } + + } + }else if ("提前结清".equals(flowName)){ + BizObject ft = ftManage.createQuery(" objectno=:flowunid and phaseno='0030' ").setParameter("flowunid", flowunid).getSingleResult(false); + BizObject fo = foManager.createQuery(" SerialNo=:SerialNo ").setParameter("SerialNo", ft == null ? "" : ft.getAttribute("SerialNo").toString()).getSingleResult(false); + + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME,Sqlca); + BizObject was = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); + if(was != null){ + was.setAttributeValue("STATUS", "通过"); + was.setAttributeValue("flowStatus", "通过"); + was.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion")); + was.setAttributeValue("UPDATETIME", date); + + wasMange.saveObject(was); + BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true); + if(bum != null ){ + bum.setAttributeValue("message_status", "has_process"); + bum.setAttributeValue("is_read", "has_read"); + bum.setAttributeValue("finish_time", date); + bum.setAttributeValue("read_time", date); + bumManager.saveObject(bum); + + } + } + } + return "true"; + } +} diff --git a/calc/com/tenwa/flow/ChangeWechatSubmitStatusVeto.java b/calc/com/tenwa/flow/ChangeWechatSubmitStatusVeto.java new file mode 100644 index 000000000..9a64dfa9c --- /dev/null +++ b/calc/com/tenwa/flow/ChangeWechatSubmitStatusVeto.java @@ -0,0 +1,96 @@ +package com.tenwa.flow; + +import java.text.SimpleDateFormat; +import java.util.Date; +import java.util.HashMap; +import java.util.Map; + +import jbo.app.WECHAT_ADVANCE_SETTLE; +import jbo.app.WECHAT_BANKNUMBER_CHANGE; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS; +import jbo.com.tenwa.entity.comm.message.BT_BUSSINESS_MESSAGE; +import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO; +import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE; +import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP; +import jbo.sys.FLOW_OPINION; +import jbo.sys.FLOW_TASK; + +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; + +/* + * 修改微信公众号提交修改信息状态 + */ +public class ChangeWechatSubmitStatusVeto extends BaseBussiness{ + + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("ObjectNo").toString(); + String flowName = this.getAttribute("FlowName").toString(); + String ProjectId = this.getAttribute("ProjectId").toString(); + BizObjectManager ftManage = JBOFactory.getBizObjectManager(FLOW_TASK.CLASS_NAME,Sqlca); + BizObjectManager foManager = JBOFactory.getBizObjectManager(FLOW_OPINION.CLASS_NAME,Sqlca); + BizObjectManager bumManager = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME,Sqlca); + + Date date1 = new Date() ; //获取系统时间 + SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); //日期格式 + String date = sdf.format(date1); //将系统时间转换成上方指定类型 + + if("扣款信息变更审核".equals(flowName)){ + BizObject ft = ftManage.createQuery(" objectno=:flowunid and phaseno='0010' ").setParameter("flowunid", flowunid).getSingleResult(false); + BizObject fo = foManager.createQuery(" SerialNo=:SerialNo ").setParameter("SerialNo", ft == null ? "" : ft.getAttribute("SerialNo").toString()).getSingleResult(false); + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME,Sqlca); + BizObject wbc = wbcMange.createQuery("flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); + if(wbc != null){ + wbc.setAttributeValue("STATUS", "否决"); + wbc.setAttributeValue("flowStatus", "否决"); + wbc.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion")); + wbc.setAttributeValue("UPDATETIME", date); + wbcMange.saveObject(wbc); + BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true); + if(bum != null ){ + bum.setAttributeValue("message_status", "has_process"); + bum.setAttributeValue("is_read", "has_read"); + bum.setAttributeValue("finish_time", date); + bum.setAttributeValue("read_time", date); + bumManager.saveObject(bum); + } + } + + MapfromCondtion=new HashMap(); + fromCondtion.put("flowunid", flowunid); + Map otherProperty = new HashMap(); + otherProperty.put("Project_Id", ProjectId); + DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT.CLASS_NAME, otherProperty, null, Sqlca); + }else if ("提前结清".equals(flowName)){ + BizObject ft = ftManage.createQuery(" objectno=:flowunid and phaseno='0030' ").setParameter("flowunid", flowunid).getSingleResult(false); + BizObject fo = foManager.createQuery(" SerialNo=:SerialNo ").setParameter("SerialNo", ft == null ? "" : ft.getAttribute("SerialNo").toString()).getSingleResult(false); + + + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME,Sqlca); + BizObject was = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); + if(was != null){ + was.setAttributeValue("STATUS", "否决"); + was.setAttributeValue("flowStatus", "否决"); + was.setAttributeValue("opinions", fo == null ? "" : fo.getAttribute("phaseopinion")); + was.setAttributeValue("UPDATETIME", date); + wasMange.saveObject(was); + BizObject bum = bumManager.createQuery(" id=:id").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true); + if(bum != null ){ + bum.setAttributeValue("message_status", "has_process"); + bum.setAttributeValue("is_read", "has_read"); + bum.setAttributeValue("finish_time", date); + bum.setAttributeValue("read_time", date); + bumManager.saveObject(bum); + } + } + } + return "true"; + } +} diff --git a/src/com/tenwa/app/wechat/WechatCustomerInfoChange.java b/src/com/tenwa/app/wechat/WechatCustomerInfoChange.java new file mode 100644 index 000000000..641b0bf3b --- /dev/null +++ b/src/com/tenwa/app/wechat/WechatCustomerInfoChange.java @@ -0,0 +1,312 @@ +package com.tenwa.app.wechat; + +import java.text.SimpleDateFormat; +import java.util.Date; + +import jbo.app.WECHAT_ADVANCE_SETTLE; +import jbo.app.WECHAT_BANKNUMBER_CHANGE; +import jbo.app.WECHAT_BASIC_CHANGE; +import jbo.app.tenwa.customer.CUSTOMER_ADDRESS; +import jbo.app.tenwa.customer.CUSTOMER_PERSON; +import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP; +import jbo.com.tenwa.entity.comm.message.BT_BUSSINESS_MESSAGE; + +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOException; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.are.jbo.JBOTransaction; + +public class WechatCustomerInfoChange { + private String basicChangeId; + private String customerId; + private String id; + private String type; + + + public String getBasicChangeId() { + return basicChangeId; + } + + + + public void setBasicChangeId(String basicChangeId) { + this.basicChangeId = basicChangeId; + } + + + + public String getCustomerId() { + return customerId; + } + + + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + + + public String getId() { + return id; + } + + + + public void setId(String id) { + this.id = id; + } + + + + public String getType() { + return type; + } + + + + public void setType(String type) { + this.type = type; + } + + + + public String saveChange(JBOTransaction tx) { + try { + String date = this.getNewData("yyyy/MM/dd HH:mm:ss"); + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BASIC_CHANGE.CLASS_NAME, tx); + BizObject wbc = wbcMange.createQuery(" id=:id ").setParameter("id", basicChangeId).getSingleResult(true); + wbc.setAttributeValue("status", "通过"); + wbc.setAttributeValue("UPDATETIME", date); + + wbcMange.saveObject(wbc); + + BizObjectManager cpMange = JBOFactory.getBizObjectManager(CUSTOMER_PERSON.CLASS_NAME, tx); + BizObjectManager caMange = JBOFactory.getBizObjectManager(CUSTOMER_ADDRESS.CLASS_NAME, tx); + BizObject cp = cpMange.createQuery("customerid=:customerid ").setParameter("customerid", customerId).getSingleResult(true); + BizObject ca = caMange.createQuery("customerid=:customerid ").setParameter("customerid", customerId).getSingleResult(true); + cp.setAttributeValue("mobile", wbc.getAttribute("atel").toString()); + cp.setAttributeValue("WORKADD", wbc.getAttribute("aWORKADD").toString()); + cp.setAttributeValue("WORKCORP", wbc.getAttribute("aworkname").toString()); + cpMange.saveObject(cp); + ca.setAttributeValue("FULLADDRESS", wbc.getAttribute("aFULLADDRESS").toString()); + caMange.saveObject(ca); + + BizObjectManager bbmMange = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME, tx); + BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", wbc.getAttribute("MESSGEID").toString()).getSingleResult(true); + bbm.setAttributeValue("message_status", "has_process"); + bbm.setAttributeValue("is_read", "has_read"); + bbm.setAttributeValue("finish_time", date); + bbm.setAttributeValue("read_time", date); + bbmMange.saveObject(bbm); + + return "true"; + } catch (JBOException e) { + e.printStackTrace(); + return "false"; + } + } + + public String refuseChange(JBOTransaction tx) { + try { + String date = this.getNewData("yyyy/MM/dd HH:mm:ss"); + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BASIC_CHANGE.CLASS_NAME, tx); + BizObject wbc = wbcMange.createQuery(" id=:id ").setParameter("id", basicChangeId).getSingleResult(true); + wbc.setAttributeValue("status", "否决"); + wbc.setAttributeValue("UPDATETIME", date); + wbcMange.saveObject(wbc); + BizObjectManager bbmMange = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME, tx); + BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", wbc.getAttribute("MESSGEID").toString()).getSingleResult(true); + bbm.setAttributeValue("message_status", "has_process"); + bbm.setAttributeValue("is_read", "has_read"); + bbm.setAttributeValue("finish_time", date); + bbm.setAttributeValue("read_time", date); + + bbmMange.saveObject(bbm); + + return "true"; + } catch (JBOException e) { + e.printStackTrace(); + return "false"; + } + } + + //校验是否已经提交流程 + public String isSubmit(JBOTransaction tx){ + try { + if("bank".equals(type)){ + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME, tx); + BizObject wbc = wbcMange.createQuery(" id=:id and status='处理中' and (flowStatus <> '已提交' or flowStatus is null) ").setParameter("id", id).getSingleResult(false); + if(wbc == null ){ + return "该申请在流程中或者已申请不能进行否决!"; + }else { + return "success"; + } + }else if("advance".equals(type)){ + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME, tx); + BizObject was = wasMange.createQuery(" id=:id and status='处理中' and (flowStatus <> '已提交' or flowStatus is null) ").setParameter("id", id).getSingleResult(false); + if(was == null ){ + return "该申请在流程中或者已申请不能进行否决!"; + }else { + return "success"; + } + } + return "未查询到对应的类型,请联系管理员!"; + } catch (JBOException e) { + e.printStackTrace(); + return "系统异常!"; + } + } + + //微信提交不需要走流程直接否决 + public String vetoSubmit(JBOTransaction tx){ + try { + String date = this.getNewData("yyyy/MM/dd HH:mm:ss"); + BizObjectManager bbmMange = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME, tx); + if("bank".equals(type)){ + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME, tx); + BizObject wbc = wbcMange.createQuery(" id=:id and status='处理中' and (flowStatus <> '已提交' or flowStatus is null) ").setParameter("id", id).getSingleResult(true); + if(wbc == null ){ + return "该申请在流程中或者已申请不能进行否决!"; + }else { + wbc.setAttributeValue("status", "否决"); + wbc.setAttributeValue("UPDATETIME", date); + wbcMange.saveObject(wbc); + BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", wbc.getAttribute("messgeId").toString()).getSingleResult(true); + if(bbm != null){ + bbm.setAttributeValue("message_status", "has_process"); + bbm.setAttributeValue("is_read", "has_read"); + bbm.setAttributeValue("finish_time", date); + bbm.setAttributeValue("read_time", date); + bbmMange.saveObject(bbm); + } + return "success"; + } + }else if("advance".equals(type)){ + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME, tx); + BizObject was = wasMange.createQuery(" id=:id and status='处理中' and (flowStatus <> '已提交' or flowStatus is null) ").setParameter("id", id).getSingleResult(true); + if(was == null ){ + return "该申请在流程中或者已申请不能进行否决!"; + }else { + was.setAttributeValue("status", "否决"); + was.setAttributeValue("UPDATETIME", date); + wasMange.saveObject(was); + BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true); + if(bbm != null){ + bbm.setAttributeValue("message_status", "has_process"); + bbm.setAttributeValue("is_read", "has_read"); + bbm.setAttributeValue("finish_time", date); + bbm.setAttributeValue("read_time", date); + bbmMange.saveObject(bbm); + } + return "success"; + } + } + return "未查询到对应的类型,请联系管理员!"; + } catch (JBOException e) { + e.printStackTrace(); + return "系统异常!"; + } + } + + //校验数据是否已处理 + public String isProcessed(JBOTransaction tx){ + try { + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BASIC_CHANGE.CLASS_NAME, tx); + BizObject wbc = wbcMange.createQuery(" id=:id and status='处理中' ").setParameter("id", basicChangeId).getSingleResult(false); + if(wbc == null ){ + return "该数据已处理,无法操作!"; + }else { + return "success"; + } + + } catch (JBOException e) { + e.printStackTrace(); + return "系统异常!"; + } + } + + //校验数据是否已处理 + public String isSettle(JBOTransaction tx){ + try { + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME, tx); + BizObject was = wasMange.createQuery(" id=:id and status='处理中' ").setParameter("id", id).getSingleResult(false); + if(was == null ){ + return "该数据已处理,无法操作!"; + }else { + return "success"; + } + + } catch (JBOException e) { + e.printStackTrace(); + return "系统异常!"; + } + } + + //校验数据是否已处理 + public String isopinions(JBOTransaction tx){ + try { + String opinions = null; + BizObjectManager wbcMange = null; + if("basic".equals(type)){ + wbcMange = JBOFactory.getBizObjectManager(WECHAT_BASIC_CHANGE.CLASS_NAME, tx); + }else if("bank".equals(type)){ + wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME, tx); + }else if ("advance".equals(type)){ + wbcMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME, tx); + }else{ + return "未查询到指定类型,请联系管理员!"; + } + + BizObject wbc = wbcMange.createQuery(" id=:id ").setParameter("id", id).getSingleResult(false); + opinions = wbc.getAttribute("opinions").toString(); + if(opinions != null && opinions.length()>0){ + return "success"; + }else { + return "请先保存审批意见!"; + } + + } catch (JBOException e) { + e.printStackTrace(); + return "系统异常!"; + } + } + //获取指定个格式的当前系统时间 + public String getNewData(String datetype){ + Date date1 = new Date() ; //获取系统时间 + SimpleDateFormat sdf = new SimpleDateFormat(datetype); //日期格式 + String date = sdf.format(date1); //将系统时间转换成上方指定类型 + return date; + } + + //微信提交不需要走流程直接否决 + public String SettleSubmit(JBOTransaction tx){ + try { + String date = this.getNewData("yyyy/MM/dd HH:mm:ss"); + BizObjectManager bbmMange = JBOFactory.getBizObjectManager(BT_BUSSINESS_MESSAGE.CLASS_NAME, tx); + + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME, tx); + BizObject was = wasMange.createQuery(" id=:id and status='处理中' ").setParameter("id", id).getSingleResult(true); + if(was == null ){ + return "未查询到数据!"; + }else { + was.setAttributeValue("status", "已受理"); + was.setAttributeValue("UPDATETIME", date); + wasMange.saveObject(was); + BizObject bbm = bbmMange.createQuery(" id=:id ").setParameter("id", was.getAttribute("messgeId").toString()).getSingleResult(true); + if(bbm != null){ + bbm.setAttributeValue("message_status", "has_process"); + bbm.setAttributeValue("is_read", "has_read"); + bbm.setAttributeValue("finish_time", date); + bbm.setAttributeValue("read_time", date); + bbmMange.saveObject(bbm); + } + return "success"; + } + } catch (JBOException e) { + e.printStackTrace(); + return "系统异常!"; + } + } +} diff --git a/src_cmb/com/tenwa/sdk/utils/HttpRequest.java b/src_cmb/com/tenwa/sdk/utils/HttpRequest.java index 53ca1fee5..46b0f8581 100644 --- a/src_cmb/com/tenwa/sdk/utils/HttpRequest.java +++ b/src_cmb/com/tenwa/sdk/utils/HttpRequest.java @@ -17,6 +17,9 @@ import com.amarsoft.awe.Configure; import com.tenwa.sdk.VO.SDKCheckCallBackVO; import com.tenwa.sdk.VO.SDKCheckCallDetail; import com.tenwa.sdk.VO.SDKCheckCallInfoVO; +import com.tenwa.sdk.VO.SDKCheckPayDateBackVO; +import com.tenwa.sdk.VO.SDKCheckPayDateDetail; +import com.tenwa.sdk.VO.SDKCheckPayDateInfoVO; import com.tenwa.sdk.VO.SDKPayCallBackVO; import com.tenwa.sdk.VO.SDKPayCallDetail; import com.tenwa.sdk.VO.SDKPayCallInfoVO; @@ -334,6 +337,183 @@ public class HttpRequest { return vo; } + public SDKCheckPayDateBackVO sendPayDateRequest(String data) { + SDKCheckPayDateBackVO callBack = new SDKCheckPayDateBackVO(); + SDKCheckPayDateInfoVO info = new SDKCheckPayDateInfoVO(); + String result = ""; + try { + URL url = new URL(this.ipAddr); + HttpURLConnection connection = (HttpURLConnection) url.openConnection(); + connection.setConnectTimeout(this.timeout); + connection.setReadTimeout(this.timeout); + connection.setDoOutput(true); + connection.setDoInput(true); + connection.setUseCaches(false); + connection.setInstanceFollowRedirects(true); + connection.setRequestMethod("POST"); + connection.setRequestProperty("Accept", "application/xml"); + connection.setRequestProperty("Content-Type", "application/xml"); + connection.connect(); + OutputStreamWriter out = new OutputStreamWriter(connection.getOutputStream(), "GBK"); + out.append(data); + out.flush(); + out.close(); + + int code = connection.getResponseCode(); + InputStream is = null; + if (code == 200) { + is = connection.getInputStream(); + } else { + is = connection.getErrorStream(); + } + + int length = (int) connection.getContentLength(); + if (length != -1) { + byte[] datas = new byte[length]; + byte[] temp = new byte[512]; + int readLen = 0; + int destPos = 0; + while ((readLen = is.read(temp)) > 0) { + System.arraycopy(temp, 0, datas, destPos, readLen); + destPos += readLen; + } + result = new String(datas, "GBK"); + } + is.close(); + System.out.println("----"); + System.out.println(result); + System.out.println("----"); + } catch (MalformedURLException e) { + info.setSTATUS(-1); + info.setERRMSG("URL协议、格式或者路径错误"); + } catch (UnsupportedEncodingException e) { + info.setSTATUS(-1); + info.setERRMSG("字符编码有问题"); + } catch (ProtocolException e) { + info.setSTATUS(-1); + info.setERRMSG("协议异常"); + } catch (IOException e) { + info.setSTATUS(-1); + info.setERRMSG("响应超时"); + } + + if (info.getSTATUS() != -1) { + info.setSTATUS(1); + info.setXML(result); + } + callBack.setInfo(info); + return toCheckPayDate(callBack); + } + + + @SuppressWarnings({ "rawtypes", "unchecked" }) + private SDKCheckPayDateBackVO toCheckPayDate(SDKCheckPayDateBackVO vo) { + if (vo.getInfo().getSTATUS() != -1) { + SDKCheckPayDateInfoVO info = vo.getInfo(); + String result = vo.getInfo().getXML(); + if (result != null && result.length() > 0) { + XmlPacket pktRsp = XmlPacket.valueOf(result); + if (pktRsp != null) { + String sRetCod = pktRsp.getRETCOD(); + String sFunnam = pktRsp.getFUNNAM(); + String sDattpy = pktRsp.getDATTYP(); + String sErrmsg = pktRsp.getERRMSG(); + + info.setRETCOD(sRetCod); + info.setFUNNAM(sFunnam); + info.setDATTYP(sDattpy); + Vector vec = null ; + if (sRetCod.equals("0")) { + vec = pktRsp.getProperty("NTQTSINFZ"); + if(vec!=null && vec.size()>0) { + List details = new ArrayList(); + + for (Map propPayResult : vec) { + SDKCheckPayDateDetail detail_one = new SDKCheckPayDateDetail(); + String ETYDAT = (String) propPayResult.get("ETYDAT"); + String ETYTIM = (String) propPayResult.get("ETYTIM"); + String VLTDAT = (String) propPayResult.get("VLTDAT"); + String TRSCOD = (String) propPayResult.get("TRSCOD"); + String NARYUR = (String) propPayResult.get("NARYUR"); + String TRSAMTD = (String) propPayResult.get("TRSAMTD"); + String TRSAMTC = (String) propPayResult.get("TRSAMTC"); + String AMTCDR = (String) propPayResult.get("AMTCDR"); + String TRSBLV = (String) propPayResult.get("TRSBLV"); + String REFNBR = (String) propPayResult.get("REFNBR"); + String REQNBR = (String) propPayResult.get("REQNBR"); + String BUSNAM = (String) propPayResult.get("BUSNAM"); + String NUSAGE = (String) propPayResult.get("NUSAGE"); + String YURREF = (String) propPayResult.get("YURREF"); + String BUSNAR = (String) propPayResult.get("BUSNAR"); + String OTRNAR = (String) propPayResult.get("OTRNAR"); + String C_RPYBBK = (String) propPayResult.get("C_RPYBBK"); + String RPYNAM = (String) propPayResult.get("RPYNAM"); + String RPYACC = (String) propPayResult.get("RPYACC"); + String RPYBBN = (String) propPayResult.get("RPYBBN"); + String RPYBNK = (String) propPayResult.get("RPYBNK"); + String RPYADR = (String) propPayResult.get("RPYADR"); + String C_GSBBBK = (String) propPayResult.get("C_GSBBBK"); + String GSBACC = (String) propPayResult.get("GSBACC"); + String GSBNAM = (String) propPayResult.get("GSBNAM"); + String INFFLG = (String) propPayResult.get("INFFLG"); + String ATHFLG = (String) propPayResult.get("ATHFLG"); + String CHKNBR = (String) propPayResult.get("CHKNBR"); + String RSVFLG = (String) propPayResult.get("RSVFLG"); + String NAREXT = (String) propPayResult.get("NAREXT"); + String TRSANL = (String) propPayResult.get("TRSANL"); + String REFSUB = (String) propPayResult.get("REFSUB"); + String FRMCOD = (String) propPayResult.get("FRMCOD"); + + detail_one.setETYDAT(ETYDAT); + detail_one.setETYTIM(ETYTIM); + detail_one.setVLTDAT(VLTDAT); + detail_one.setTRSCOD(TRSCOD); + detail_one.setNARYUR(NARYUR); + detail_one.setTRSAMTD(TRSAMTD); + detail_one.setTRSAMTC(TRSAMTC); + detail_one.setAMTCDR(AMTCDR); + detail_one.setTRSBLV(TRSBLV); + detail_one.setREFNBR(REFNBR); + detail_one.setREQNBR(REQNBR); + detail_one.setBUSNAM(BUSNAM); + detail_one.setNUSAGE(NUSAGE); + detail_one.setYURREF(YURREF); + detail_one.setBUSNAR(BUSNAR); + detail_one.setOTRNAR(OTRNAR); + detail_one.setC_RPYBBK(C_RPYBBK); + detail_one.setRPYNAM(RPYNAM); + detail_one.setRPYACC(RPYACC); + detail_one.setRPYBBN(RPYBBN); + detail_one.setRPYBNK(RPYBNK); + detail_one.setRPYADR(RPYADR); + detail_one.setGSBACC(GSBACC); + detail_one.setGSBNAM(GSBNAM); + detail_one.setINFFLG(INFFLG); + detail_one.setATHFLG(ATHFLG); + detail_one.setCHKNBR(CHKNBR); + detail_one.setNAREXT(NAREXT); + detail_one.setTRSANL(TRSANL); + detail_one.setREFSUB(REFSUB); + detail_one.setFRMCOD(FRMCOD); + + details.add(detail_one); + } + vo.setDetails(details); + } + } else if (sRetCod.equals("-9")) { + info.setERRMSG("支付未知异常,请查询支付结果确认支付状态,错误信息:" + sErrmsg); + } else { + info.setERRMSG("支付失败:" + sErrmsg); + } + } else { + info.setERRMSG("响应报文解析失败"); + } + } + vo.setInfo(info); + } + return vo; + } + } \ No newline at end of file diff --git a/src_sql/tft_20191228.sql b/src_sql/tft_20191228.sql new file mode 100644 index 000000000..2a989bfcc --- /dev/null +++ b/src_sql/tft_20191228.sql @@ -0,0 +1,193 @@ +-- 创建微信变更表 +CREATE TABLE wechat_basic_change ( + ID VARCHAR(32) NOT NULL COMMENT '标识', + openid VARCHAR(32) DEFAULT NULL COMMENT '微信标识', + CUSTOMER_ID VARCHAR(32) DEFAULT NULL COMMENT '承租人编号', + NAME VARCHAR(32) DEFAULT NULL COMMENT '姓名', + certid VARCHAR(32) DEFAULT NULL COMMENT '证件号', + btel VARCHAR(20) DEFAULT NULL COMMENT '修改前手机号', + bWORKADD VARCHAR(200) DEFAULT NULL COMMENT '修改前工作单位地址', + bworkname VARCHAR(200) DEFAULT NULL COMMENT '修改前工作名称', + bFULLADDRESS VARCHAR(200) DEFAULT NULL COMMENT '修改前居住地址', + atel VARCHAR(20) DEFAULT NULL COMMENT '修改后手机号', + aWORKADD VARCHAR(200) DEFAULT NULL COMMENT '修改后工作单位地址', + aworkname VARCHAR(200) DEFAULT NULL COMMENT '修改后工作名称', + aFULLADDRESS VARCHAR(200) DEFAULT NULL COMMENT '修改后居住地址', + applytype VARCHAR(15) DEFAULT NULL COMMENT '申请类型', + opinions VARCHAR(500) DEFAULT NULL COMMENT '审批意见', + STATUS VARCHAR(10) DEFAULT NULL COMMENT '审批状态', + opinionsuserid VARCHAR(32) DEFAULT NULL COMMENT '审批人', + messgeId VARCHAR(32) DEFAULT NULL COMMENT '业务提醒id', + INPUTUSERID VARCHAR(32) DEFAULT NULL COMMENT '登记人', + INPUTORGID VARCHAR(32) DEFAULT NULL COMMENT '登记部门', + INPUTTIME VARCHAR(32) DEFAULT NULL COMMENT '登记时间', + UPDATEUSERID VARCHAR(32) DEFAULT NULL COMMENT '更新人', + UPDATEORGID VARCHAR(32) DEFAULT NULL COMMENT '更新部门', + UPDATETIME VARCHAR(32) DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (ID) +) ENGINE=INNODB DEFAULT CHARSET=gbk COMMENT='微信个人基本信息修改表'; + +CREATE TABLE wechat_banknumber_change ( + ID VARCHAR(32) NOT NULL COMMENT '标识', + openid VARCHAR(32) DEFAULT NULL COMMENT '微信标识', + contract_no VARCHAR(32) DEFAULT NULL COMMENT '合同编号', + NAME VARCHAR(32) DEFAULT NULL COMMENT '客户姓名', + tel VARCHAR(32) DEFAULT NULL COMMENT '客户电话', + contract_id VARCHAR(32) DEFAULT NULL COMMENT '合同ID', + bbankaccount VARCHAR(50) DEFAULT NULL COMMENT '修改前客户名称', + bbanknumber VARCHAR(20) DEFAULT NULL COMMENT '修改前银行账号', + bbankname VARCHAR(100) DEFAULT NULL COMMENT '修改前银行名称', + bbanktel VARCHAR(20) DEFAULT NULL COMMENT '修改前预留手机号', + abankaccount VARCHAR(50) DEFAULT NULL COMMENT '修改后客户名称', + abanknumber VARCHAR(40) DEFAULT NULL COMMENT '修改后银行账号', + abankname VARCHAR(100) DEFAULT NULL COMMENT '修改后银行名称', + abanktel VARCHAR(20) DEFAULT NULL COMMENT '修改后预留手机号', + applytype VARCHAR(15) DEFAULT NULL COMMENT '申请类型', + opinions VARCHAR(500) DEFAULT NULL COMMENT '审批意见', + STATUS VARCHAR(10) DEFAULT NULL COMMENT '审批状态', + opinionsuserid VARCHAR(32) DEFAULT NULL COMMENT '审批人', + messgeId VARCHAR(32) DEFAULT NULL COMMENT '业务提醒id', + flowStatus VARCHAR(10) DEFAULT NULL COMMENT '合同状态', + flowUnid VARCHAR(32) DEFAULT NULL COMMENT '流程id', + INPUTUSERID VARCHAR(32) DEFAULT NULL COMMENT '登记人', + INPUTORGID VARCHAR(32) DEFAULT NULL COMMENT '登记部门', + INPUTTIME VARCHAR(32) DEFAULT NULL COMMENT '登记时间', + UPDATEUSERID VARCHAR(32) DEFAULT NULL COMMENT '更新人', + UPDATEORGID VARCHAR(32) DEFAULT NULL COMMENT '更新部门', + UPDATETIME VARCHAR(32) DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (ID) +) ENGINE=INNODB DEFAULT CHARSET=gbk COMMENT='微信银行卡信息修改表'; + +CREATE TABLE wechat_Advance_Settle ( + ID VARCHAR(32) NOT NULL COMMENT '标识', + openid VARCHAR(32) DEFAULT NULL COMMENT '微信标识', + contract_no VARCHAR(32) DEFAULT NULL COMMENT '合同编号', + NAME VARCHAR(32) DEFAULT NULL COMMENT '客户姓名', + tel VARCHAR(32) DEFAULT NULL COMMENT '客户电话', + advanceDate VARCHAR(32) DEFAULT NULL COMMENT '约定终止日', + applytype VARCHAR(15) DEFAULT NULL COMMENT '申请类型', + opinions VARCHAR(500) DEFAULT NULL COMMENT '审批意见', + STATUS VARCHAR(10) DEFAULT NULL COMMENT '审批状态', + opinionsuserid VARCHAR(32) DEFAULT NULL COMMENT '审批人', + messgeId VARCHAR(32) DEFAULT NULL COMMENT '业务提醒id', + flowStatus VARCHAR(10) DEFAULT NULL COMMENT '合同状态', + flowUnid VARCHAR(32) DEFAULT NULL COMMENT '流程id', + INPUTUSERID VARCHAR(32) DEFAULT NULL COMMENT '登记人', + INPUTORGID VARCHAR(32) DEFAULT NULL COMMENT '登记部门', + INPUTTIME VARCHAR(32) DEFAULT NULL COMMENT '登记时间', + UPDATEUSERID VARCHAR(32) DEFAULT NULL COMMENT '更新人', + UPDATEORGID VARCHAR(32) DEFAULT NULL COMMENT '更新部门', + UPDATETIME VARCHAR(32) DEFAULT NULL COMMENT '更新时间', + PRIMARY KEY (ID) +) ENGINE=INNODB DEFAULT CHARSET=gbk COMMENT='微信提前结清记录表'; + + +-- 微信提交结清申请页面模板 +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('WechatAdvanceSettle','微信提前结清申请表',null,'30270',null,'1','2','default','jbo.app.WECHAT_ADVANCE_SETTLE','O','ID=:ID ','','','','','SYS_Designer','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:03','','1',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1000','1000','1','O','ID','ID','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:03','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1010','1010','1','O','openid','openid','String','','微信标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:03','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1020','1020','1','O','NAME','NAME','String','','客户姓名','','1','Text','1','1','','','','32','1','1','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:16','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1030','1030','1','O','contract_no','contract_no','String','','合同编号','','1','Text','1','1','','','','32','1','1','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:16','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1040','1040','1','O','tel','tel','String','','客户电话','','1','Text','1','1','','','','32','1','1','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:16','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1050','1050','1','O','advanceDate','advanceDate','String','','约定终止日','','1','Date','3','2','','','','32','1','1','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:16','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1100','1100','1','O','messgeId','messgeId','String','','业务提醒id','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/04 13:44:57','SYS_Designer','2019/11/04 15:01:03','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatAdvanceSettle','1150','1150','1','O','opinions','opinions','String','','审批意见','','1','Textarea','1','1','','','style={width:900px}','500','1','0','0','1','0',2,'','','','SYS_Designer','2019/11/04 14:44:48','SYS_Designer','2019/11/04 15:03:20','0','','1','','','',''); + +-- 微信提交银行卡页面模板 +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('WechatBanknumberChange','微信银行卡信息变更',null,'30270',null,'1','2','default','jbo.app.WECHAT_BANKNUMBER_CHANGE','O','ID=:ID ','','','','','SYS_Designer','2019/11/02 16:54:47','SYS_Designer','2019/11/02 16:54:47',null,'1',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1000','1000','1','O','ID','ID','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 16:58:22','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1010','1010','1','O','openid','openid','String','','微信标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 16:55:52','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1020','1020','1','O','name','name','String','','客户姓名','','1','Text','1','1','','','','32','1','1','0','1','1',1,'0','0010','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:55','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1030','1030','1','O','contract_no','contract_no','String','','合同编号','','1','Text','1','1','','','','32','1','1','0','1','1',1,'0','0010','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:03:04','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1040','1040','1','O','tel','tel','String','','客户电话','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1050','1050','1','O','contract_id','contract_id','String','','合同ID','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 16:55:52','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1060','1060','1','O','bbankaccount','bbankaccount','String','','客户名称','','1','Text','1','1','','','','50','1','1','0','1','1',1,'0','0020','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1070','1070','1','O','bbanknumber','bbanknumber','String','','银行账号','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','0020','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1080','1080','1','O','bbankname','bbankname','String','','银行名称','','1','Text','1','1','','','','100','1','1','0','1','1',1,'0','0020','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1090','1090','1','O','bbanktel','bbanktel','String','','预留手机号','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','0020','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1100','1100','1','O','abankaccount','abankaccount','String','','客户名称','','1','Text','1','1','','','','50','1','1','0','1','1',1,'0','0030','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1110','1110','1','O','abanknumber','abanknumber','String','','银行账号','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','0030','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1120','1120','1','O','abankname','abankname','String','','银行名称','','1','Text','1','1','','','','100','1','1','0','1','1',1,'0','0030','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1130','1130','1','O','abanktel','abanktel','String','','预留手机号','','1','Text','1','1','','','','20','1','1','0','1','1',1,'0','0030','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 17:02:02','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1170','1170','1','O','opinionsuserid','opinionsuserid','String','','审批人','','1','Text','1','1','','','','3','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/02 16:54:47','SYS_Designer','2019/11/02 16:55:52','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBanknumberChange','1210','1210','1','O','opinions','opinions','String','','审批意见','','1','Textarea','1','1','','','style={width:900px}','500','1','0','0','1','0',2,'','0040','','SYS_Designer','2019/11/05 16:48:06','SYS_Designer','2019/11/05 16:50:29','0','','1','','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBanknumberChange','0010','合同信息','SYS_Designer','2019/11/02 16:56:37','SYS_Designer','2019/11/05 16:48:32','','0010','','','',2,'','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBanknumberChange','0020','修改前的值','SYS_Designer','2019/11/02 16:56:37','SYS_Designer','2019/11/05 16:48:32','','0020','','','',2,'','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBanknumberChange','0030','修改后的值','SYS_Designer','2019/11/02 16:56:37','SYS_Designer','2019/11/05 16:48:32','','0030','','','',2,'','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBanknumberChange','0040','审批意见','SYS_Designer','2019/11/05 16:48:32','SYS_Designer','2019/11/05 16:48:32','','0040','','','',2,'','','',''); + +-- 微信提交基本信息页面模板 +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('WechatBasicChange','微信提交客户基本信息变更表',null,'30270',null,'1','2','default','jbo.app.WECHAT_BASIC_CHANGE','O','ID=:ID ','','','','','SYS_Designer','2019/11/01 16:25:42','SYS_Designer','2019/11/01 16:56:11','','1',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1000','1000','1','O','ID','ID','String','','标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 16:56:11','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1010','1010','1','O','openid','openid','String','','微信标识','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 16:56:11','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1020','1020','1','O','CUSTOMER_ID','CUSTOMER_ID','String','','承租人编号','','1','Text','1','1','','','','32','0','0','0','1','1',1,'0','','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 16:56:11','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1030','1030','1','O','name','name','String','','姓名','','1','Text','1','1','','','','32','1','1','0','1','1',0,'0','0010','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 17:01:54','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1040','1040','1','O','certid','certid','String','','证件号','','1','Text','1','1','','','','32','1','1','0','1','1',0,'0','0010','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 17:02:31','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1050','1050','1','O','btel','btel','String','','手机号','','1','Text','1','1','','','','20','1','1','0','1','1',0,'0','0020','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 17:02:31','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1060','1060','1','O','bWORKADD','bWORKADD','String','','工作单位地址','','1','Text','1','1','','','style={width:500px}','200','1','1','0','1','1',0,'0','0020','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:32','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1070','1070','1','O','bworkname','bworkname','String','','工作名称','','1','Text','1','1','','','style={width:400px}','200','1','1','0','1','1',0,'0','0020','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:32','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1080','1080','1','O','bFULLADDRESS','bFULLADDRESS','String','','居住地址','','1','Text','1','1','','','style={width:500px}','200','1','1','0','1','1',0,'0','0020','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:32','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1090','1090','1','O','atel','atel','String','','手机号','','1','Text','1','1','','','','20','1','1','0','1','1',0,'0','0030','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 17:02:31','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1100','1100','1','O','aWORKADD','aWORKADD','String','','工作单位地址','','1','Text','1','1','','','style={width:500px}','200','1','1','0','1','1',0,'0','0030','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:32','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1110','1110','1','O','aworkname','aworkname','String','','工作名称','','1','Text','1','1','','','style={width:400px}','200','1','1','0','1','1',0,'0','0030','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:32','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1120','1120','1','O','aFULLADDRESS','aFULLADDRESS','String','','居住地址','','1','Text','1','1','','','style={width:500px}','200','1','1','0','1','1',0,'0','0030','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:32','','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBasicChange','1140','1140','1','O','opinions','opinions','String','','审批意见','','1','Textarea','1','1','','','style={width:900px}','500','1','0','0','1','1',2,'0','0040','','SYS_DESIGNER','2019/11/01 16:25:42','SYS_Designer','2019/11/01 20:12:50','0','','1','','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBasicChange','0010','客户信息','SYS_Designer','2019/11/01 16:31:44','SYS_Designer','2019/11/01 17:13:23','','0010','','','',2,'','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBasicChange','0020','修改前的值','SYS_Designer','2019/11/01 16:32:45','SYS_Designer','2019/11/01 17:13:23','','0020','','','',2,'','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBasicChange','0030','修改后的值','SYS_Designer','2019/11/01 16:32:45','SYS_Designer','2019/11/01 17:13:23','','0030','','','',2,'','','',''); +Insert Into AWE_DO_Group (dono,dockid,dockname,inputuser,inputtime,updateuser,updatetime,inputorg,sortno,grouphead,groupfoot,groupbody,colcount,styleid,isexpand,groupbody1,groupbody2) Values ('WechatBasicChange','0040','审批意见','SYS_Designer','2019/11/01 16:36:18','SYS_Designer','2019/11/01 17:13:23','','0040','','','',1,'','','',''); + +-- 添加方法 +insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddescribe`, `returntype`, `methodargs`, `methodcode`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) values('审批流程','扣款卡信息流程发起后取消','Bizlet','扣款卡信息流程发起后取消','String','String ObjectNo','com.tenwa.lease.flow.project.commbusiness.LBCustomerAccountHisToFormal','','','','','',''); +insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddescribe`, `returntype`, `methodargs`, `methodcode`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) values('审批流程','微信提交信息变更发起流程否决','Bizlet','微信提交信息变更发起流程否决','String','String ObjectNo','com.tenwa.flow.ChangeWechatSubmitStatusVeto','','','','','',''); +insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddescribe`, `returntype`, `methodargs`, `methodcode`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) values('审批流程','微信提交信息变更发起流程通过','Bizlet','微信提交信息变更发起流程通过','String','String ObjectNo','com.tenwa.flow.ChangeWechatSubmitStatus','','','','','',''); +insert into `class_method` (`classname`, `methodname`, `methodtype`, `methoddescribe`, `returntype`, `methodargs`, `methodcode`, `inputuser`, `inputorg`, `inputtime`, `updateuser`, `updatetime`, `remark`) values('审批流程','微信提交信息变更发起流程修改状态','Bizlet','微信提交信息变更发起流程修改状态','String','String ObjectNo','com.tenwa.flow.ChangeWechatSubmitFlow','','','','','',''); + +-- 扣款卡变更流程中添加方法 +delete from FLOW_MODEL where flowno='AccountChangeFlow'; +insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('AccountChangeFlow','0010','1010','资管业务',NULL,NULL,'!基础操作.扣款卡信息正式到变更(#ObjectNo)+!基础操作.合同基本信息从正式到临时(#ObjectNo)+!审批流程.微信提交信息变更发起流程修改状态(#ObjectNo)','{#UserID}',NULL,'selectroute',NULL,NULL,'#PhaseOpinion1','closePage,doSubmit,signOpinion',NULL,'all_except','ProjectApproval',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'234','128','105','50','1',NULL,'TASK',NULL,'Y','N','AccountChangeFlow0010','if(\"03\".equals(fixedParam.get(\"CustomerType\"))){\r\nTreeView.deleteNode(\"扣款法人信息变更\");\r\nTreeView.deleteNode(\"法人收付款信息\");\r\nTreeView.updateNodeName(\"扣款自然人信息变更\",\"扣款信息变更\");\r\n}else{\r\nTreeView.deleteNode(\"收付款信息\");\r\nTreeView.deleteNode(\"扣款自然人信息变更\");\r\nTreeView.updateNodeName(\"扣款法人信息变更\",\"扣款信息变更\");\r\n}\r\nTreeView.updateNodeSetReadOnly(\"扣款信息变更\",\"\");','TreeView.deleteCheckItemByCode(\"0004\")',NULL,NULL,NULL,'!审批流程.扣款卡信息流程发起后取消(#ObjectNo)',NULL,'N','[{stepno:\"结束(1000)\",stepcondition:\"提交给结束\"},{stepno:\"否决(8000)\",stepcondition:\"提交给否决\"}]',NULL,NULL,NULL,NULL,NULL); +insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('AccountChangeFlow','1000','1040','结束',NULL,NULL,'!基础操作.扣款卡信息变更到正式(#ObjectNo)+!基础操作.新增业务消息提醒(#ObjectNo)+!审批流程.微信提交信息变更发起流程通过(#ObjectNo)','{\"system\"}',NULL,'commroute',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01',NULL,NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000016,业务二部运营专员初审\"}]',NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'189','287','50','50','1',NULL,'END',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); +insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('AccountChangeFlow','8000','1050','否决',NULL,NULL,'!审批流程.微信提交信息变更发起流程否决(#ObjectNo)','{\"system\"}',NULL,'commroute',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'313','289','50','50','1',NULL,'END',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + +-- 提前结清 +delete from FLOW_MODEL where FlowNo='ContractTerminateFlow' AND phaseno IN ('0010','1000','8000'); +insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('ContractTerminateFlow','0010','1010','资管业务岗',NULL,NULL,'!基础操作.合同基本信息从正式到临时(#ObjectNo)+!基础操作.租赁物表从正式到临时(#ObjectNo)+!基础操作.商务条件起租到临时表(#ObjectNo)+!基础操作.租金计划表从正式到历史(#ObjectNo)+!审批流程.微信提交信息变更发起流程修改状态(#ObjectNo)','{#UserID}',NULL,'commroute',NULL,'[{usertype:\"指定角色\",userinfo:\"800R00000019,资管业务员\"}]','#PhaseOpinion1','closePage,doSubmit,signOpinion',NULL,'all_except','ContractTerminate',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'483','134','100','50','1',NULL,'TASK',NULL,'N','Y',NULL,'TreeView.addFirstNodeByCode(\"11340\");\r\nTreeView.addFirstNodeByCode(\"11080\");\r\nTreeView.addLastNodeByCode(\"11320\");\r\nTreeView.addLastNodeByCode(\"11330\");\r\nTreeView.updateNodeSetReadOnly(\"变更信息\",null);\r\nTreeView.updateNodeSetReadOnly(\"提前终止变更\",null);\r\nTreeView.updateNodeSetReadOnly(\"一般租赁物\",null);\r\nTreeView.updateNodeSetReadOnly(\"汽车\",null);\r\nTreeView.addLastNodeByCode(\"11350\");\r\nTreeView.updateNodeName(\"变更说明\",\"提前结清说明\");\r\nTreeView.addBeforeNodeByCode(\"提前终止变更\", \"11390\");\r\nTreeView.addBeforeNodeByCode(\"提前网银核销\", \"11610\");',NULL,'backnextstep',NULL,NULL,'TreeView.addDeleteCallBackSql(\"jbo.com.tenwa.lease.comm.LC_OCCUPY_RENT_LIST\",\"delete from o where o.flowunid=:FlowUnid\");\r\nTreeView.addDeleteCallBackSql(\"jbo.app.tenwa.calc.LC_EBANK_PROCESS\",\"delete from O where flowunid=:FlowUnid\");+!审批流程.扣款卡信息流程发起后取消(#ObjectNo)',NULL,'N','资管负责人(0020)',NULL,NULL,NULL,NULL,NULL); +insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('ContractTerminateFlow','1000','1040','结束',NULL,NULL,'!基础操作.变更信息表从临时到正式(#ObjectNo)+!基础操作.提前结清租金存储过程(#ObjectNo)+!基础操作.商务条件临时表到起租层(#ObjectNo)+!基础操作.租金变更信息临时表到正式表(#ObjectNo)+!基础操作.调息删除互斥(#ObjectNo)+!审批流程.凭证输出--提前结清(#ObjectNo)+!通用流程操作.保存项目进度状态(#ObjectNo,52)+!基础操作.流程结束后删除对应租金计划的占用(#ObjectNo)+!基础操作.提前结清网银信息临时表到正式表(#ObjectNo)+!基础操作.更新合同状态(#ObjectNo,100)+!审批流程.微信提交信息变更发起流程通过(#ObjectNo)','{\"system\"}',NULL,'commroute',NULL,NULL,NULL,'closePage',NULL,'all_except','ContractApproval',NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'437','528','50','50','1',NULL,'END',NULL,'N','Y',NULL,'TreeView.addFirstNodeByCode(\"11340\");\r\nTreeView.addFirstNodeByCode(\"11080\");\r\nTreeView.addLastNodeByCode(\"11320\");\r\nTreeView.addLastNodeByCode(\"11330\");\r\nTreeView.addLastNodeByCode(\"11350\");',NULL,NULL,NULL,NULL,NULL,NULL,'N',NULL,NULL,NULL,NULL,NULL,NULL); +insert into `FLOW_MODEL` (`flowno`, `phaseno`, `phasetype`, `phasename`, `phasedescribe`, `phaseattribute`, `prescript`, `initscript`, `choicedescribe`, `choicescript`, `actiondescribe`, `actionscript`, `postscript`, `attribute1`, `attribute2`, `attribute3`, `attribute4`, `attribute5`, `attribute6`, `attribute7`, `attribute8`, `attribute9`, `attribute10`, `aaenabled`, `aapointinitscript`, `aapointcomp`, `aapointcompurl`, `standardtime1`, `standardtime2`, `costlob`, `strips`, `checklist`, `decisionscript`, `riskscanrule`, `buttonset2`, `inputuser`, `inputtime`, `updateuser`, `updatetime`, `distributerule`, `id`, `type`, `name`, `xcoordinate`, `ycoordinate`, `width`, `height`, `version`, `swimlane`, `nodetype`, `flowphasecontext`, `OPINIONSREQUIRED`, `isreadonly`, `flowpageconfig`, `flowprocessclass`, `flowpagecheck`, `backstepnexttype`, `backsteps`, `backscript`, `deletescript`, `phasescript`, `loadproductcheck`, `nextsteps`, `flowtiptype`, `remindnoticttype`, `flowoverdate`, `overnoticetype`, `overnoticeUser`) values('ContractTerminateFlow','8000','1050','否决',NULL,NULL,'!审批流程.微信提交信息变更发起流程否决(#ObjectNo)','{\"system\"}',NULL,'commroute',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'01',NULL,NULL,NULL,NULL,NULL,NULL,NULL,'0','0',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,'581','523','50','50','1',NULL,'END',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + +-- 添加消息提醒数据字典 +Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('message_catalog','Advance_Settle_Apply','微信提交提前结清申请',null,'0130','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2019/11/04 11:19:11','SYS_Designer','2019/11/04 11:20:11',null,null); + +Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('message_catalog','bank_info_change','微信提交扣款卡信息变更',null,'0120','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2019/10/30 19:50:11','SYS_Designer','2019/10/30 19:52:11',null,null); +Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('message_catalog','basic_info_change','微信提交基本信息变更',null,'0110','1',null,null,null,null,null,null,null,null,null,null,null,'SYS_Designer',null,'2019/10/30 19:41:11','SYS_Designer','2019/10/30 19:42:11',null,null); + +-- 添加消息提醒配置 +insert into `BT_BUSSINESS_MESSAGE_CONFIG` (`id`, `message_no`, `message_catalog`, `message_title`, `send_person`, `message_class`, `message_page`, `message_time`, `message_status`, `INPUTUSERID`, `INPUTTIME`, `INPUTORGID`, `UPDATEUSERID`, `UPDATEORGID`, `UPDATETIME`, `cparam`, `memo`, `is_valid`, `defaultStart`) values('230f12df57324ad7b4f959b9ef52596a','0120','basic_info_change','微信提交基本信息变更','[{usertype:\"指定人员\",userinfo:\"administrator,超级管理员\"}]','kong','/Tenwa/wechat/WechatBasicChange.jsp','','PAUSED','','','','','','','','','valid','Y'); +insert into `BT_BUSSINESS_MESSAGE_CONFIG` (`id`, `message_no`, `message_catalog`, `message_title`, `send_person`, `message_class`, `message_page`, `message_time`, `message_status`, `INPUTUSERID`, `INPUTTIME`, `INPUTORGID`, `UPDATEUSERID`, `UPDATEORGID`, `UPDATETIME`, `cparam`, `memo`, `is_valid`, `defaultStart`) values('7457fee6a7654054b0a214bf05d8c68e','0130','Advance_Settle_Apply','微信提交提前结清申请','[{usertype:\"指定人员\",userinfo:\"8009U00000002,定时任务管理员\"}]','null','/Tenwa/wechat/WechatAdvanceSettleInfo.jsp','','PAUSED','','','','','','','','','valid','Y'); +insert into `BT_BUSSINESS_MESSAGE_CONFIG` (`id`, `message_no`, `message_catalog`, `message_title`, `send_person`, `message_class`, `message_page`, `message_time`, `message_status`, `INPUTUSERID`, `INPUTTIME`, `INPUTORGID`, `UPDATEUSERID`, `UPDATEORGID`, `UPDATETIME`, `cparam`, `memo`, `is_valid`, `defaultStart`) values('b407c6f005f54319b8f3b3396efae620','0130','bank_info_change','微信提交银行卡信息修改提醒','[{usertype:\"指定人员\",userinfo:\"8009U00000002,定时任务管理员\"}]','null','/Tenwa/wechat/WechatBanknumberChangeInfo.jsp','','PAUSED','','','','','','','','','valid','Y'); + +-- 添加附件资料显示 +Insert Into AWE_DO_CATALOG (dono,doname,dodescribe,dotype,doclass,isinuse,colcount,modeid,jboclass,jbofrom,jbowhere,jbogroup,jboorder,businessprocess,exportflag,inputuser,inputtime,updateuser,updatetime,remark,isvalidate,parent) Values ('WechatBankNumberDocList','微信提交银行正反面附件',null,'30270',null,'1','1','default','jbo.app.tenwa.doc.LB_DOCLIBRARY','O,jbo.app.tenwa.doc.LB_DOCRELATIVE rela','rela.id=O.relative_Id and rela.template_id=:bankInfoId','','DOC_CLASS_ITEMNO,Serial_Num','',null,'SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','','1',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1010','1121','1','O','Serial_Num','Serial_Num','String','','序号','','1','Text','1','1','','','style={width:30px;}','32','0','1','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1020','1020','1','O','Doc_Name','Doc_Name','String','','资料名称','','1','Text','1','1','','','style={width:300px;}','200','1','1','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1030','1030','1','O','Doc_Nature','Doc_Nature','String','','资料性质','','1','Select','1','1','Code','DocNature','style={width:70px;}','64','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:49:50','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1040','1040','1','O','Remark','Remark','String','','备注','','1','Text','1','1','','','style={width:200px;}','200','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:49:57','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1045','1045','1','O','OPERATE_CHECK','OPERATE_CHECK','String','','运营确认','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1050','1050','1','O','Doc_Type','Doc_Type','String','','资料类型','','1','Text','1','1','','','','32','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1060','1001','1','O','One_Classify','One_Classify','String','','一级分类','','1','Text','1','1','Code','DocList','','150','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:49:37','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1070','1002','1','O','Two_Classify','Two_Classify','String','','二级分类','','1','Text','1','1','','','style="white-space: pre-wrap;"','150','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1080','1080','1','O','Id','Id','String','','id主键','','1','Text','1','1','','','','32','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','0','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1090','1042','1','','''''','operation','String','','操作','','1','Text','1','2','','','style={width:50px;}',null,'0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:50:14','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1100','1100','1','','com.tenwa.doc.cache.DocListCache.getFile(Id)','filelist','String','','附件清单','','1','Text','1','1','','','style={width:600px;word-break:break-all;}',null,'1','1','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1120','1120','1','O','DOC_CLASS_ITEMNO','DOC_CLASS_ITEMNO','String','','资料分类编号','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1122','1122','1','rela','OBJECTTYPE','OBJECTTYPE','String','','对象类别','','1','Text','1','1','','','','32','0','0','0','1','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:13:36','0','','1','','','',''); +Insert Into awe_do_library (dono,colindex,sortno,isinuse,coltablename,colactualname,colname,coltype,coldefaultvalue,colheader,colunit,colcolumntype,coleditstyle,colcheckformat,colalign,coleditsourcetype,coleditsource,colhtmlstyle,collimit,colvisible,colreadonly,colrequired,colsortable,isfilter,colspan,isautocomplete,groupid,colfilterrefid,inputuser,inputtime,updateuser,updatetime,isaudit,colfilterattrs,isupdate,parentcolindex,tips,colinnerbtevent,colfilteroptions) Values ('WechatBankNumberDocList','1140','1041','1','O','BUSINESS_CHECK','BUSINESS_CHECK','String','','业务检查','','1','Select','1','1','Code','DocCheck','style={width:60px}','32','0','0','0','0','0',0,'','','','SYS_Designer','2019/11/13 20:08:48','SYS_Designer','2019/11/13 20:50:03','0','','1','','','',''); + +-- 添加定时任务 +Insert Into Code_Library (codeno,itemno,itemname,bankno,sortno,isinuse,itemdescribe,itemattribute,relativecode,attribute1,attribute2,attribute3,attribute4,attribute5,attribute6,attribute7,attribute8,inputuser,inputorg,inputtime,updateuser,updatetime,remark,helptext) Values ('MissionName','com.tenwa.lease.app.quartzmession.DeleteWechatRentPay','删除微信付款失败占用表','','0490','1','','','','','','','','','','','','SYS_Designer',null,'2019/11/30 16:48:08','SYS_Designer','2019/11/30 16:48:08','',''); + + + + + + diff --git a/src_tenwa/com/tenwa/lease/app/quartzmession/DeleteWechatRentPay.java b/src_tenwa/com/tenwa/lease/app/quartzmession/DeleteWechatRentPay.java new file mode 100644 index 000000000..e44d1ede0 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/app/quartzmession/DeleteWechatRentPay.java @@ -0,0 +1,47 @@ +package com.tenwa.lease.app.quartzmession; + + +import org.quartz.Job; +import org.quartz.JobExecutionContext; +import org.quartz.JobExecutionException; +import com.amarsoft.are.jbo.JBOException; +import com.amarsoft.awe.util.SqlObject; +import com.amarsoft.awe.util.Transaction; +import com.amarsoft.dict.als.cache.CacheLoaderFactory; + + +/** + * 1:删除微信发起付款占用表 + * @author tangfutang + */ +public class DeleteWechatRentPay implements Job{ + + public void execute(JobExecutionContext arg0) throws JobExecutionException { + Transaction Sqlca=null; + try{ + Sqlca = Transaction.createTransaction(CacheLoaderFactory.getDataSource()); + String deleteSql = "DELETE FROM LC_OCCUPY_RENT_LIST WHERE inputtime <= DATE_ADD(NOW(),INTERVAL -30 MINUTE) AND (flow_name='微信银联收款' OR flow_name='微信支付收款')"; + SqlObject asql = new SqlObject(deleteSql); + Sqlca.executeSQL(asql); + Sqlca.commit(); + + }catch(Exception e){ + try { + Sqlca.rollback(); + } catch (JBOException e1) { + e1.printStackTrace(); + } + e.printStackTrace(); + }finally { + if(Sqlca!=null) { + try { + Sqlca.commit(); + Sqlca.disConnect(); + } catch (JBOException e) { + e.printStackTrace(); + } + } + } + } + +} diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToChangeBusiness.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToChangeBusiness.java index 638b7823b..633c466ce 100644 --- a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToChangeBusiness.java +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountFormalToChangeBusiness.java @@ -1,30 +1,29 @@ -package com.tenwa.lease.flow.project.commbusiness; - -import java.util.HashMap; -import java.util.Map; - -import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; -import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS; -import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP; - -import com.amarsoft.awe.util.Transaction; -import com.tenwa.comm.util.jboutil.DataOperatorUtil; -import com.tenwa.flow.baseBussion.BaseBussiness; - - -public class LBCustomerAccountFormalToChangeBusiness extends BaseBussiness{ - @Override - public Object run(Transaction Sqlca) throws Exception { - this.initBussinessParam(Sqlca); - String flowunid = this.getAttribute("ObjectNo").toString(); - String ContractId = this.getAttribute("ContractId").toString(); - Map fromCondtion = new HashMap(); - Map other = new HashMap(); - other.put("flowunid",flowunid); - fromCondtion.put(CUSTOMER_ACCOUNT.contract_id, ContractId); - DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, null, other, Sqlca); - - String sMessage = "true"; - return sMessage; - } -} +package com.tenwa.lease.flow.project.commbusiness; + +import java.util.HashMap; +import java.util.Map; + +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP; + +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; + + +public class LBCustomerAccountFormalToChangeBusiness extends BaseBussiness{ + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("ObjectNo").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + Map fromCondtion = new HashMap(); + Map other = new HashMap(); + other.put("flowunid",flowunid); + fromCondtion.put(CUSTOMER_ACCOUNT.contract_id, ContractId); + DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, null, other, Sqlca); + DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT_HIS.CLASS_NAME, null, other, Sqlca); + return "true"; + } +} diff --git a/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountHisToFormal.java b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountHisToFormal.java new file mode 100644 index 000000000..5a5333670 --- /dev/null +++ b/src_tenwa/com/tenwa/lease/flow/project/commbusiness/LBCustomerAccountHisToFormal.java @@ -0,0 +1,65 @@ +package com.tenwa.lease.flow.project.commbusiness; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import jbo.app.WECHAT_ADVANCE_SETTLE; +import jbo.app.WECHAT_BANKNUMBER_CHANGE; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS; +import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP; +import jbo.app.tenwa.customer.CUSTOMER_FAMILY; +import jbo.app.tenwa.customer.CUSTOMER_FAMILY_TEMP; +import jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT; +import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO; +import jbo.com.tenwa.lease.comm.LB_EQUIPMENT; +import jbo.com.tenwa.lease.comm.LB_EQUIPMENT_TEMP; +import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT; +import jbo.com.tenwa.lease.comm.LB_GUARANTEE_UNIT_TEMP; +import jbo.com.tenwa.lease.comm.LB_UNION_LESSEE_TEMP; + +import com.amarsoft.are.jbo.BizObject; +import com.amarsoft.are.jbo.BizObjectManager; +import com.amarsoft.are.jbo.JBOFactory; +import com.amarsoft.awe.util.Transaction; +import com.tenwa.comm.util.jboutil.DataOperatorUtil; +import com.tenwa.flow.baseBussion.BaseBussiness; +import com.tenwa.lease.flow.comm.service.LeaseFlowBaseService; +import com.tenwa.lease.flow.comm.service.ServiceOperatorEnum; +import com.tenwa.lease.flow.comm.serviceImp.LeaseFlowBaseServiceImp; +import com.tenwa.lease.flow.project.businessapply.CustomerCompare; + +public class LBCustomerAccountHisToFormal extends BaseBussiness{ + @Override + public Object run(Transaction Sqlca) throws Exception { + this.initBussinessParam(Sqlca); + String flowunid = this.getAttribute("ObjectNo").toString(); + String flowName = this.getAttribute("FlowName").toString(); + String ContractId = this.getAttribute("ContractId").toString(); + Map fromCondtion = new HashMap(); + Map other = new HashMap(); + if("扣款信息变更审核".equals(flowName)){ + fromCondtion.put("flowunid",flowunid); + other.put(CUSTOMER_ACCOUNT.contract_id, ContractId); + DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT.CLASS_NAME, other, null, Sqlca); + + BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME,Sqlca); + BizObject wbc = wbcMange.createQuery("flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); + if(wbc != null){ + wbc.setAttributeValue("flowStatus", "流程取消"); + wbc.setAttributeValue("flowUnid", ""); + wbcMange.saveObject(wbc); + } + }else if ("提前结清".equals(flowName)){ + BizObjectManager wasMange = JBOFactory.getBizObjectManager(WECHAT_ADVANCE_SETTLE.CLASS_NAME,Sqlca); + BizObject aws = wasMange.createQuery(" flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); + if(aws != null){ + aws.setAttributeValue("flowStatus", "流程取消"); + aws.setAttributeValue("flowUnid", ""); + wasMange.saveObject(aws); + } + } + return "true"; + } +}