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