扣款卡信息变更取消流程还原通联签约状态

This commit is contained in:
tangfutang 2021-02-02 16:01:38 +08:00
parent 9ea7a093bc
commit 019844490c
5 changed files with 127 additions and 1 deletions

View File

@ -4353,6 +4353,26 @@
</managerProperties> </managerProperties>
</manager> </manager>
</class> </class>
<class name="LC_CARD_TLSIGN_HIS" label="通联签约信息历史表" keyAttributes="ID">
<attributes>
<attribute name="ID" label="ID" type="STRING" length="100" />
<attribute name="PROJECT_ID" label="项目编号" type="STRING" length="100" />
<attribute name="REQUEST_CONTENT" label="请求内容" type="STRING" length="2147483647" />
<attribute name="RESPONSE_CONTENT" label="响应内容" type="STRING" length="2147483647" />
<attribute name="SIGN_STATUS" label="签约状态" type="STRING" length="100" />
<attribute name="SIGN_TIME" label="签约时间" type="STRING" length="100" />
<attribute name="CUSTOMER_LAUNCH_TIME" label="客户发起时间" type="STRING" length="100" />
<attribute name="AGRMNO" label="协议号" type="STRING" length="100" />
<attribute name="sign_type" label="签约类型" type="STRING" length="10" />
<attribute name="flow_unid" label="流程编号" type="STRING" length="32" />
</attributes>
<manager>
<managerProperties>
<property name="table" value="LC_CARD_TLSIGN_HIS" />
<property name="createKey" value="true" />
</managerProperties>
</manager>
</class>
<class name="LC_CARD_PAYMENT" label="通联卡扣信息表" keyAttributes="ID"> <class name="LC_CARD_PAYMENT" label="通联卡扣信息表" keyAttributes="ID">
<attributes> <attributes>
<attribute name="ID" label="标识" type="STRING"/> <attribute name="ID" label="标识" type="STRING"/>

View File

@ -0,0 +1,56 @@
package jbo.app.tenwa.calc;
import java.lang.String;
/**
* 通联签约信息历史表 - JBO命名常量类<br><br>
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
*/
public interface LC_CARD_TLSIGN_HIS{
/**
* 通联签约信息历史表<br><br>
* 代表本类映射的BizObjectClass
*/
public static final String CLASS_NAME = "jbo.app.tenwa.calc.LC_CARD_TLSIGN_HIS";
/**
* ID STRING(100)<br>
*/
public static final String ID = "ID";
/**
* 项目编号 STRING(100)<br>
*/
public static final String PROJECT_ID = "PROJECT_ID";
/**
* 请求内容 STRING(2147483647)<br>
*/
public static final String REQUEST_CONTENT = "REQUEST_CONTENT";
/**
* 响应内容 STRING(2147483647)<br>
*/
public static final String RESPONSE_CONTENT = "RESPONSE_CONTENT";
/**
* 签约状态 STRING(100)<br>
*/
public static final String SIGN_STATUS = "SIGN_STATUS";
/**
* 签约时间 STRING(100)<br>
*/
public static final String SIGN_TIME = "SIGN_TIME";
/**
* 客户发起时间 STRING(100)<br>
*/
public static final String CUSTOMER_LAUNCH_TIME = "CUSTOMER_LAUNCH_TIME";
/**
* 协议号 STRING(100)<br>
*/
public static final String AGRMNO = "AGRMNO";
/**
* 签约类型 STRING(10)<br>
*/
public static final String sign_type = "sign_type";
/**
* 流程编号 STRING(32)<br>
*/
public static final String flow_unid = "flow_unid";
}

View File

@ -0,0 +1,15 @@
CREATE TABLE lc_card_tlsign_his (
ID varchar(100) NOT NULL COMMENT 'id',
PROJECT_ID varchar(100) DEFAULT NULL COMMENT '项目id',
SIGN_STATUS varchar(100) DEFAULT NULL COMMENT '签约状态',
SIGN_TIME varchar(100) DEFAULT NULL COMMENT '签约时间',
CUSTOMER_LAUNCH_TIME varchar(100) DEFAULT NULL COMMENT '客户发起时间',
AGRMNO varchar(100) DEFAULT NULL COMMENT '协议号',
REQUEST_CONTENT text COMMENT '请求内容',
RESPONSE_CONTENT text COMMENT '响应内容',
sign_type varchar(10) DEFAULT NULL COMMENT '签约类型',
flow_unid varchar(32) DEFAULT NULL COMMENT '流程编号',
PRIMARY KEY (ID)
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
-- 添加通联签约验证从正式到历史表的方法
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.LcCardTlSignFormalToHisBusiness','','','','','','');

View File

@ -6,6 +6,8 @@ import java.util.Map;
import jbo.app.WECHAT_ADVANCE_SETTLE; import jbo.app.WECHAT_ADVANCE_SETTLE;
import jbo.app.WECHAT_BANKNUMBER_CHANGE; import jbo.app.WECHAT_BANKNUMBER_CHANGE;
import jbo.app.tenwa.calc.LC_CARD_TLSIGN;
import jbo.app.tenwa.calc.LC_CARD_TLSIGN_HIS;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT; import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS; import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_HIS;
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP; import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT_TEMP;
@ -37,13 +39,20 @@ public class LBCustomerAccountHisToFormal extends BaseBussiness{
String flowunid = this.getAttribute("ObjectNo").toString(); String flowunid = this.getAttribute("ObjectNo").toString();
String flowName = this.getAttribute("FlowName").toString(); String flowName = this.getAttribute("FlowName").toString();
String ContractId = this.getAttribute("ContractId").toString(); String ContractId = this.getAttribute("ContractId").toString();
String ProjectId = this.getAttribute("ProjectId").toString();
Map<String,String> fromCondtion = new HashMap<String, String>(); Map<String,String> fromCondtion = new HashMap<String, String>();
Map<String,String> other = new HashMap<String, String>(); Map<String,String> other = new HashMap<String, String>();
if("¿Û¿îÐÅÏ¢±ä¸üÉóºË".equals(flowName)){ if("¿Û¿îÐÅÏ¢±ä¸üÉóºË".equals(flowName)){
fromCondtion.put("flowunid",flowunid); fromCondtion.put("flowunid",flowunid);
other.put(CUSTOMER_ACCOUNT.contract_id, ContractId); other.put(CUSTOMER_ACCOUNT.contract_id, ContractId);
DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT.CLASS_NAME, other, null, Sqlca); DataOperatorUtil.copySingleJBO(CUSTOMER_ACCOUNT_HIS.CLASS_NAME, fromCondtion, CUSTOMER_ACCOUNT.CLASS_NAME, other, null, Sqlca);
//流程取消还原通联卡扣签约信息
fromCondtion.clear();
fromCondtion.put("flow_unid",flowunid);
other.clear();
other.put(LC_CARD_TLSIGN.PROJECT_ID, ProjectId);
DataOperatorUtil.copySingleJBO(LC_CARD_TLSIGN_HIS.CLASS_NAME, fromCondtion, LC_CARD_TLSIGN.CLASS_NAME, other, null, Sqlca);
BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME,Sqlca); BizObjectManager wbcMange = JBOFactory.getBizObjectManager(WECHAT_BANKNUMBER_CHANGE.CLASS_NAME,Sqlca);
BizObject wbc = wbcMange.createQuery("flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true); BizObject wbc = wbcMange.createQuery("flowUnid=:flowUnid " ).setParameter("flowUnid", flowunid).getSingleResult(true);
if(wbc != null){ if(wbc != null){

View File

@ -0,0 +1,26 @@
package com.tenwa.lease.flow.project.commbusiness;
import java.util.HashMap;
import java.util.Map;
import jbo.app.tenwa.calc.LC_CARD_TLSIGN;
import jbo.app.tenwa.calc.LC_CARD_TLSIGN_HIS;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
import com.tenwa.flow.baseBussion.BaseBussiness;
public class LcCardTlSignFormalToHisBusiness extends BaseBussiness{
@Override
public Object run(Transaction Sqlca) throws Exception {
this.initBussinessParam(Sqlca);
String flowunid = this.getAttribute("ObjectNo").toString();
String ProjectId = this.getAttribute("ProjectId").toString();
Map<String,String> fromCondtion = new HashMap<String, String>();
Map<String,String> other = new HashMap<String, String>();
other.put("flow_unid",flowunid);
fromCondtion.put(LC_CARD_TLSIGN.PROJECT_ID, ProjectId);
DataOperatorUtil.copySingleJBO(LC_CARD_TLSIGN.CLASS_NAME, fromCondtion, LC_CARD_TLSIGN_HIS.CLASS_NAME, null, other, Sqlca);
return "true";
}
}