添加通联签约
This commit is contained in:
parent
e2dce5c5d2
commit
66eedcde21
@ -213,7 +213,7 @@ checkMsg();
|
||||
}
|
||||
}
|
||||
for(var i=0;i<params.length;i++){
|
||||
if(sq.indexOf(params[i].toLowerCase()) == -1){
|
||||
if("subjecturl"!=params[i] && sq.indexOf(params[i].toLowerCase()) == -1){
|
||||
ale += params[i]+",";
|
||||
fl = true;
|
||||
}
|
||||
@ -233,10 +233,10 @@ checkMsg();
|
||||
return false;
|
||||
}
|
||||
}
|
||||
if(msgsqlparam.toLowerCase().indexOf("phonenumber")==-1){
|
||||
/* if(msgsqlparam.toLowerCase().indexOf("phonenumber")==-1){
|
||||
alert("SQL关联关键字必须含有phonenumber!");
|
||||
return false;
|
||||
}
|
||||
} */
|
||||
if(msgsqlparam.toLowerCase().indexOf("customer_id")==-1){
|
||||
alert("SQL关联关键字必须含有customer_id!");
|
||||
return false;
|
||||
|
||||
@ -305,8 +305,8 @@
|
||||
}
|
||||
//检查扣款卡信息是否签约
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.contract.check.ContractInfoCheck","ProjectSignStatus","projectid=<%=projectId%>");
|
||||
if("error"==sReturnInfo){
|
||||
alert("请提醒客户查看手机短信,首先完成扣款卡的签约验证!");
|
||||
if("success"!=sReturnInfo){
|
||||
alert(sReturnInfo);
|
||||
return;
|
||||
}
|
||||
var param={};
|
||||
|
||||
@ -7,6 +7,8 @@
|
||||
Content: 示例详情页面
|
||||
History Log:
|
||||
*/
|
||||
String userId = CurUser.getUserID();
|
||||
String orgId = CurUser.getOrgID();
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
String customerId = CurPage.getParameter("customerId");
|
||||
String contractId = CurPage.getParameter("ContractId");
|
||||
@ -167,9 +169,9 @@
|
||||
}
|
||||
var project_id = getItemValue(0,0,"project_id");
|
||||
//校验对应的扣款卡是否签约,如果签约
|
||||
RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkAccountSignStatus", "projectid="+project_id);
|
||||
RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkAccountSignStatus", "projectid="+project_id+",userId=<%=userId%>,orgId=<%=orgId%>");
|
||||
if("BusinessApplyApply"=="<%=ApplyType%>"||"BusinessChangeApply"=="<%=ApplyType%>"||"BContractApproveApply"=="<%=ApplyType%>"||"BContractChangeApply"=="<%=ApplyType%>"){
|
||||
var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID");
|
||||
var sparams = "account="+getItemValue(0,getRow(),"ACCOUNT")+",acc_number="+getItemValue(0,getRow(),"ACC_NUMBER")+",bank_name="+getItemValue(0,getRow(),"BANK_NAME")+",mobile="+getItemValue(0,getRow(),"MOBILE")+",projectid=<%=projectId%>,FlowUnid=<%=FlowUnid%>,contractid=<%=contractId%>,certId="+getItemValue(0,getRow(),"CERTID")+",applyType=<%=ApplyType%>";
|
||||
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
|
||||
if("false"==meassge){
|
||||
alert("合同已生成,请先删除合同再修改扣款卡信息!");
|
||||
|
||||
@ -126,7 +126,7 @@
|
||||
ASObjectWindow dwTemp = new ASObjectWindow(CurPage, doTemp,request);
|
||||
dwTemp.Style = "2";//freeform
|
||||
if(((null!=RightType&&RightType.equals("ReadOnly"))||(null!=ishistory&&ishistory.equals("true")))&&!("合同变更流程".equals(flowName))){
|
||||
dwTemp.ReadOnly = "-2";//Ö»¶Áģʽ
|
||||
dwTemp.ReadOnly = "1";//Ö»¶Áģʽ
|
||||
falg = "false";
|
||||
}
|
||||
if("flow_contract_sum_car".equals(showtype)){
|
||||
@ -184,11 +184,11 @@
|
||||
setItemRequired(0,"FRAME_NUMBER",true);
|
||||
setItemRequired(0,"CAR_COLOUR",true);
|
||||
setItemRequired(0,"ENGINE_NUMBER",true);
|
||||
setItemReadOnly(0,0,"MEMO",false);
|
||||
setItemReadOnly(0,0,"MEMO",false);
|
||||
|
||||
document.getElementById('BRAND').nextSibling.remove();
|
||||
document.getElementById('CAR_SERIES').nextSibling.remove();
|
||||
document.getElementById('MODEL').nextSibling.remove();
|
||||
document.getElementById('BRAND').nextSibling.remove();
|
||||
document.getElementById('CAR_SERIES').nextSibling.remove();
|
||||
document.getElementById('MODEL').nextSibling.remove();
|
||||
|
||||
//第一车贷产品其他配置说明为必填
|
||||
<%-- if("DYCD"=="<%=operationType%>"){
|
||||
|
||||
@ -57,6 +57,7 @@
|
||||
//{"true","","Button","新增","新增","newRecord()","","","","btn_icon_add"},
|
||||
{falg,"","Button","保存","保存","viewAndEdit()","","","","btn_icon_edit"},
|
||||
//{"true","All","Button","保存","保存所有修改","save(0)","","","",""},
|
||||
{falg,"","Button","删除","删除租赁物信息","deleteRecord()","","","","btn_icon_delete",""},
|
||||
{String.valueOf(!com.amarsoft.are.lang.StringX.isSpace(sPrevUrl)),"All","Button","返回","返回列表","returnList()","","","",""}
|
||||
};
|
||||
//sButtonPosition = "south";
|
||||
@ -357,5 +358,18 @@
|
||||
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoCheck","checkCertIdAll",sParams);
|
||||
return sReturnInfo;
|
||||
}
|
||||
|
||||
function deleteRecord(){
|
||||
var ID = getItemValue(0,getRow(),"ID");
|
||||
if(typeof(ID) == "undefined" || ID.length == 0 ){
|
||||
alert("无数据可删除 ");
|
||||
return ;
|
||||
}else{
|
||||
if(confirm("确定要删除?")){
|
||||
as_delete(0,"alert('删除成功!')");
|
||||
window.location.reload();
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
<%@ include file="/Frame/resources/include/include_end.jspf"%>
|
||||
@ -1,7 +1,34 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<jbo>
|
||||
<package name="jbo.app.tenwa.customer" >
|
||||
|
||||
<class name="LB_CARD_SIGN_STATUS_HIS" label="账款签约状态历史表" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="id" type="STRING" length="32"/>
|
||||
<attribute name="project_id" label="项目编号" type="STRING" length="32"/>
|
||||
<attribute name="contract_id" label="合同编号" type="STRING" length="32"/>
|
||||
<attribute name="acc_number" label="银行账号" type="STRING" length="50"/>
|
||||
<attribute name="bank_name" label="开户银行" type="STRING" length="1"/>
|
||||
<attribute name="account" label="帐户名称" type="STRING" length="32"/>
|
||||
<attribute name="mobile" label="手机号" type="STRING" length="15"/>
|
||||
<attribute name="certid" label="证件号码" type="STRING" length="32"/>
|
||||
<attribute name="gz_status" label="广州银联签约状态" type="STRING" length="32"/>
|
||||
<attribute name="tl_status" label="通联签约状态" type="STRING" length="32"/>
|
||||
<attribute name="agrmno" label="协议号" type="STRING" length="100"/>
|
||||
<attribute name="inputuserid" label="录入人" type="STRING" length="32"/>
|
||||
<attribute name="inputorgid" label="录入机构" type="STRING" length="32"/>
|
||||
<attribute name="inputtime" label="登记时间" type="STRING" length="32"/>
|
||||
<attribute name="updateuserid" label="更新人" type="STRING" length="32"/>
|
||||
<attribute name="updateorgid" label="更新机构" type="STRING" length="32"/>
|
||||
<attribute name="updatetime" label="更新时间" type="STRING" length="32"/>
|
||||
</attributes>
|
||||
<manager>
|
||||
<managerProperties>
|
||||
<property name="table" value="LB_CARD_SIGN_STATUS_HIS" />
|
||||
<property name="createKey" value="true" />
|
||||
</managerProperties>
|
||||
</manager>
|
||||
</class>
|
||||
|
||||
<class name="CUSTOMER_ACCOUNT" label="客户账户表" keyAttributes="id">
|
||||
<attributes>
|
||||
<attribute name="id" label="id" type="STRING" length="32"/>
|
||||
|
||||
1011
WebContent/js/jquery/register.js
vendored
1011
WebContent/js/jquery/register.js
vendored
File diff suppressed because it is too large
Load Diff
@ -225,8 +225,19 @@ public class ContractSignActionTwoUtil {
|
||||
personalStamper4.setDocumentId(documentId);
|
||||
personalStamper4.setKeyword("租赁物已于");
|
||||
personalStamper4.setOffsetX(0.025);
|
||||
personalStamper4.setOffsetY(-0.006);
|
||||
personalStamper4.setOffsetY(-0.0025);
|
||||
stampers.add(personalStamper4);
|
||||
|
||||
//添加二个签署时间
|
||||
Stamper personalStamper5 = new Stamper();
|
||||
personalStamper5.setPage(0);
|
||||
personalStamper5.setType("TIMESTAMP");
|
||||
personalStamper5.setSignatoryId(personalSignatoryId);
|
||||
personalStamper5.setDocumentId(documentId);
|
||||
personalStamper5.setKeyword("(共同承租人)(若有)");
|
||||
personalStamper5.setOffsetX(-0.3);
|
||||
personalStamper5.setOffsetY(-0.05);
|
||||
stampers.add(personalStamper5);
|
||||
}else{
|
||||
personalStamper.setKeyword("承租人(签字/盖章):");
|
||||
//personalStamper.setOffsetX(0.6);
|
||||
|
||||
@ -6,11 +6,13 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_CARD_TLSIGN;
|
||||
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_TEMP;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP;
|
||||
import jbo.app.tenwa.customer.LB_CARD_SIGN_STATUS_HIS;
|
||||
import jbo.app.tenwa.doc.LB_DOCRELATIVE;
|
||||
import jbo.app.tenwa.doc.LB_DOC_CONTRACT_LIST;
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP;
|
||||
@ -25,12 +27,14 @@ import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
import com.amarsoft.awe.util.SqlObject;
|
||||
import com.amarsoft.awe.util.Transaction;
|
||||
import com.amarsoft.context.ASUser;
|
||||
import com.amarsoft.dict.als.cache.CacheLoaderFactory;
|
||||
import com.gnete.security.crypt.CryptException;
|
||||
import com.google.gson.Gson;
|
||||
import com.tenwa.collectaudit.cache.CollectAuditInfoCache;
|
||||
import com.tenwa.comm.util.date.DateAssistant;
|
||||
import com.tenwa.comm.util.jboutil.DataOperatorUtil;
|
||||
import com.tenwa.reckon.util.DateUtil;
|
||||
import com.zhongan.scorpoin.biz.common.CommonRequest;
|
||||
import com.zhongan.scorpoin.biz.common.CommonResponse;
|
||||
import com.zhongan.scorpoin.common.ZhongAnApiClient;
|
||||
@ -50,6 +54,9 @@ public class DebitCardAction {
|
||||
private String mobile;
|
||||
private String sign_status;
|
||||
private String certId;
|
||||
private String userId;
|
||||
private String orgId;
|
||||
private String applyType;
|
||||
|
||||
public String getCustIdByFlowunid(JBOTransaction tx) throws JBOException{
|
||||
String s=this.getFlowUnid();
|
||||
@ -261,6 +268,29 @@ public class DebitCardAction {
|
||||
|
||||
//业务变更是否需要重新签约验证
|
||||
public String checkSign(JBOTransaction tx) throws JBOException{
|
||||
//校验通联卡扣
|
||||
if("BContractApproveApply".equals(applyType) || "BContractChangeApply".equals(applyType)){
|
||||
BizObjectManager lcsshManage = JBOFactory.getFactory().getManager(LB_CARD_SIGN_STATUS_HIS.CLASS_NAME);
|
||||
BizObject lcss = lcsshManage.createQuery(" tl_status='sign_status2' and account=:account and acc_number=:acc_number and certid=:certid and mobile=:mobile ")
|
||||
.setParameter("account", account).setParameter("acc_number", acc_number).setParameter("certid", certId).setParameter("mobile", mobile).getSingleResult(false);
|
||||
|
||||
BizObjectManager lcthManage = JBOFactory.getFactory().getManager(LC_CARD_TLSIGN.CLASS_NAME,tx);
|
||||
BizObject lct = lcthManage.createQuery("PROJECT_ID=:project_id ").setParameter("project_id", projectid).getSingleResult(true);
|
||||
if(lcss!=null){
|
||||
if(lct == null){
|
||||
lct = lcthManage.newObject();
|
||||
lct.setAttributeValue("PROJECT_ID", projectid);
|
||||
}
|
||||
lct.setAttributeValue("SIGN_STATUS", "sign_status2");
|
||||
lct.setAttributeValue("AGRMNO", lcss.getAttribute("AGRMNO").getString());
|
||||
lcthManage.saveObject(lct);
|
||||
}else{
|
||||
if(lct != null){
|
||||
lct.setAttributeValue("SIGN_STATUS", "sign_status4");
|
||||
lcthManage.saveObject(lct);
|
||||
}
|
||||
}
|
||||
}
|
||||
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
|
||||
List<BizObject> ldcls = ldclManager.createQuery("select * from O where file_flag='yes' and ( flow_unid=:flowunid or contract_id=:contractid ) ").setParameter("flowunid", FlowUnid).setParameter("contractid", contractid).getResultList(false);
|
||||
if(ldcls.size()>0){
|
||||
@ -298,15 +328,19 @@ public class DebitCardAction {
|
||||
String date = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(new Date());
|
||||
try {
|
||||
Sqlca =Transaction.createTransaction(CacheLoaderFactory.getDataSource());
|
||||
//查询中间表中是否有数据,CUSTOMER_ACCOUNT_MIDDLE表用户扣款卡信息变更后,签约短信发送用的
|
||||
selectSql="SELECT PROJECT_ID FROM CUSTOMER_ACCOUNT_MIDDLE WHERE PROJECT_ID='"+projectid+"'";
|
||||
List<Map<String,String>> dataList2=DataOperatorUtil.getDataBySql(Sqlca, selectSql, null);
|
||||
if(dataList2 ==null || dataList2.size()==0){
|
||||
insertSql="INSERT INTO CUSTOMER_ACCOUNT_MIDDLE(ID,ACC_NUMBER,BANK_NAME,ACCOUNT,PROJECT_ID,CONTRACT_ID,MOBILE,SIGN_STATUS,INSERTTIME,flowunid) VALUES(REPLACE(UUID(),'-',''),'"+acc_number+"','"+bank_name+"','"+account+"','"+projectid+"','"+contractid+"','"+mobile+"','"+sign_status+"','"+date+"','"+FlowUnid+"')";
|
||||
Sqlca.executeSQL(insertSql);
|
||||
}else{
|
||||
updateSql="UPDATE CUSTOMER_ACCOUNT_MIDDLE SET ACC_NUMBER='"+acc_number+"',BANK_NAME='"+bank_name+"',ACCOUNT='"+account+"',MOBILE='"+mobile+"',UPDATETIME='"+date+"',flowunid='"+FlowUnid+"',SIGN_STATUS='"+sign_status+"' WHERE PROJECT_ID='"+projectid+"' ";
|
||||
Sqlca.executeSQL(updateSql);
|
||||
selectSql="SELECT PROJECT_ID FROM CUSTOMER_ACCOUNT WHERE PROJECT_ID='"+projectid+"' AND ACC_NUMBER='"+acc_number+"' AND ACCOUNT='"+account+"' AND MOBILE='"+mobile+"' ";
|
||||
List<Map<String, String>> dataList = DataOperatorUtil.getDataBySql(Sqlca, selectSql, null);
|
||||
if(dataList ==null || dataList.size()==0){
|
||||
//查询中间表中是否有数据,CUSTOMER_ACCOUNT_MIDDLE表用户扣款卡信息变更后,签约短信发送用的
|
||||
selectSql="SELECT PROJECT_ID FROM CUSTOMER_ACCOUNT_MIDDLE WHERE PROJECT_ID='"+projectid+"'";
|
||||
List<Map<String,String>> dataList2=DataOperatorUtil.getDataBySql(Sqlca, selectSql, null);
|
||||
if(dataList2 ==null || dataList2.size()==0){
|
||||
insertSql="INSERT INTO CUSTOMER_ACCOUNT_MIDDLE(ID,ACC_NUMBER,BANK_NAME,ACCOUNT,PROJECT_ID,CONTRACT_ID,MOBILE,SIGN_STATUS,INSERTTIME,flowunid) VALUES(REPLACE(UUID(),'-',''),'"+acc_number+"','"+bank_name+"','"+account+"','"+projectid+"','"+contractid+"','"+mobile+"','"+sign_status+"','"+date+"','"+FlowUnid+"')";
|
||||
Sqlca.executeSQL(insertSql);
|
||||
}else{
|
||||
updateSql="UPDATE CUSTOMER_ACCOUNT_MIDDLE SET ACC_NUMBER='"+acc_number+"',BANK_NAME='"+bank_name+"',ACCOUNT='"+account+"',MOBILE='"+mobile+"',UPDATETIME='"+date+"',flowunid='"+FlowUnid+"',SIGN_STATUS='"+sign_status+"' WHERE PROJECT_ID='"+projectid+"' ";
|
||||
Sqlca.executeSQL(updateSql);
|
||||
}
|
||||
}
|
||||
Sqlca.commit();
|
||||
} catch (Exception e) {
|
||||
@ -332,6 +366,7 @@ public class DebitCardAction {
|
||||
|
||||
//合同制作检查是否有签约的
|
||||
public String checkAccountSignStatus(JBOTransaction tx) throws Exception{
|
||||
String gzStatus = "N";
|
||||
BizObjectManager CcaManager = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,tx);
|
||||
BizObject cca = CcaManager.createQuery(" project_id=:project_id ").setParameter("project_id", projectid).getSingleResult(true);
|
||||
String singStatus = cca==null?"":cca.getAttribute("SIGN_STATUS").getString();
|
||||
@ -339,6 +374,40 @@ public class DebitCardAction {
|
||||
Map<String,String> signFromCondtion=new HashMap<String,String>();
|
||||
signFromCondtion.put("PROJECT_ID",projectid);
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ACCOUNT.CLASS_NAME, signFromCondtion,CUSTOMER_ACCOUNT_HIS.CLASS_NAME, null, null,null, tx);
|
||||
gzStatus = "Y";
|
||||
}
|
||||
BizObjectManager lctManage = JBOFactory.getBizObjectManager(LC_CARD_TLSIGN.CLASS_NAME, tx);
|
||||
BizObject lct = lctManage.createQuery(" project_id=:project_id and sign_status='sign_status2' ").setParameter("project_id", projectid).getSingleResult(false);
|
||||
|
||||
BizObjectManager lcsshManager = JBOFactory.getBizObjectManager(LB_CARD_SIGN_STATUS_HIS.CLASS_NAME,tx);
|
||||
if("Y".equals(gzStatus) || lct!=null ){
|
||||
String accNumber = cca.getAttribute("acc_number").getString();
|
||||
String account = cca.getAttribute("account").getString();
|
||||
String mobile = cca.getAttribute("MOBILE").getString();
|
||||
String certid = cca.getAttribute("certid").getString();
|
||||
BizObject lcssh = lcsshManager.createQuery(" acc_number=:acc_number and account=:account and mobile=:mobile and certid=:certid ")
|
||||
.setParameter("acc_number", accNumber).setParameter("account", account).setParameter("mobile", mobile).setParameter("certid", certid).getSingleResult(true);
|
||||
if(lcssh == null){
|
||||
lcssh = lcsshManager.newObject();
|
||||
lcssh.setAttributeValue("project_id", projectid);
|
||||
lcssh.setAttributeValue("acc_number", accNumber);
|
||||
lcssh.setAttributeValue("account", account);
|
||||
lcssh.setAttributeValue("mobile", mobile);
|
||||
lcssh.setAttributeValue("certid", certid);
|
||||
lcssh.setAttributeValue("inputuserid", userId);
|
||||
lcssh.setAttributeValue("inputorgid", orgId);
|
||||
lcssh.setAttributeValue("inputtime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss.SSS "));
|
||||
}else{
|
||||
lcssh.setAttributeValue("updateuserid", account);
|
||||
lcssh.setAttributeValue("updateorgid", orgId);
|
||||
lcssh.setAttributeValue("updatetime", DateUtil.getSystemTimeByFormat("yyyy/MM/dd HH:mm:ss.SSS "));
|
||||
}
|
||||
lcssh.setAttributeValue("gz_status", gzStatus);
|
||||
if(lct!=null ){
|
||||
lcssh.setAttributeValue("tl_status", "sign_status2");
|
||||
lcssh.setAttributeValue("agrmno", lct.getAttribute("AGRMNO"));
|
||||
}
|
||||
lcsshManager.saveObject(lcssh);
|
||||
}
|
||||
return "success";
|
||||
}
|
||||
@ -465,5 +534,29 @@ public class DebitCardAction {
|
||||
public void setCertId(String certId) {
|
||||
this.certId = certId;
|
||||
}
|
||||
|
||||
public String getUserId() {
|
||||
return userId;
|
||||
}
|
||||
|
||||
public void setUserId(String userId) {
|
||||
this.userId = userId;
|
||||
}
|
||||
|
||||
public String getOrgId() {
|
||||
return orgId;
|
||||
}
|
||||
|
||||
public void setOrgId(String orgId) {
|
||||
this.orgId = orgId;
|
||||
}
|
||||
|
||||
public String getApplyType() {
|
||||
return applyType;
|
||||
}
|
||||
|
||||
public void setApplyType(String applyType) {
|
||||
this.applyType = applyType;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
84
src_jbo/jbo/app/tenwa/customer/LB_CARD_SIGN_STATUS_HIS.java
Normal file
84
src_jbo/jbo/app/tenwa/customer/LB_CARD_SIGN_STATUS_HIS.java
Normal file
@ -0,0 +1,84 @@
|
||||
package jbo.app.tenwa.customer;
|
||||
|
||||
import java.lang.String;
|
||||
|
||||
/**
|
||||
* 账款签约状态历史表 - JBO命名常量类<br><br>
|
||||
* Note: This file is generated by ADE tools, <em>dont</em> modify it.<br>
|
||||
|
||||
*/
|
||||
public interface LB_CARD_SIGN_STATUS_HIS{
|
||||
/**
|
||||
* 账款签约状态历史表<br><br>
|
||||
* 代表本类映射的BizObjectClass
|
||||
*/
|
||||
public static final String CLASS_NAME = "jbo.app.tenwa.customer.LB_CARD_SIGN_STATUS_HIS";
|
||||
/**
|
||||
* id STRING(32)<br>
|
||||
*/
|
||||
public static final String id = "id";
|
||||
/**
|
||||
* 项目编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String project_id = "project_id";
|
||||
/**
|
||||
* 合同编号 STRING(32)<br>
|
||||
*/
|
||||
public static final String contract_id = "contract_id";
|
||||
/**
|
||||
* 银行账号 STRING(50)<br>
|
||||
*/
|
||||
public static final String acc_number = "acc_number";
|
||||
/**
|
||||
* 开户银行 STRING(1)<br>
|
||||
*/
|
||||
public static final String bank_name = "bank_name";
|
||||
/**
|
||||
* 帐户名称 STRING(32)<br>
|
||||
*/
|
||||
public static final String account = "account";
|
||||
/**
|
||||
* 手机号 STRING(15)<br>
|
||||
*/
|
||||
public static final String mobile = "mobile";
|
||||
/**
|
||||
* 证件号码 STRING(32)<br>
|
||||
*/
|
||||
public static final String certid = "certid";
|
||||
/**
|
||||
* 广州银联签约状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String gz_status = "gz_status";
|
||||
/**
|
||||
* 通联签约状态 STRING(32)<br>
|
||||
*/
|
||||
public static final String tl_status = "tl_status";
|
||||
/**
|
||||
* 协议号 STRING(100)<br>
|
||||
*/
|
||||
public static final String agrmno = "agrmno";
|
||||
/**
|
||||
* 录入人 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputuserid = "inputuserid";
|
||||
/**
|
||||
* 录入机构 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputorgid = "inputorgid";
|
||||
/**
|
||||
* 登记时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String inputtime = "inputtime";
|
||||
/**
|
||||
* 更新人 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateuserid = "updateuserid";
|
||||
/**
|
||||
* 更新机构 STRING(32)<br>
|
||||
*/
|
||||
public static final String updateorgid = "updateorgid";
|
||||
/**
|
||||
* 更新时间 STRING(32)<br>
|
||||
*/
|
||||
public static final String updatetime = "updatetime";
|
||||
}
|
||||
@ -2,9 +2,47 @@
|
||||
delete from AWE_DO_CATALOG where dono='LBEquipmentInfoTemp_Cars';
|
||||
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 ('LBEquipmentInfoTemp_Cars','租赁物件临时表信息',null,'30030',null,'1','2','default','jbo.com.tenwa.lease.comm.LB_EQUIPMENT_CAR_TEMP','O','O.flowunid=:flowunid','','','com.amarsoft.awe.dw.handler.impl.CommonHandler',null,'SYS_Designer','2017/05/23 09:23:48','SYS_Designer','2020/09/27 11:42:01','','1','');
|
||||
|
||||
-- 提前结清显示本次核销金额
|
||||
delete from AWE_DO_CATALOG where dono='LCEbankTempList';
|
||||
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 ('LCEbankTempList','网银临时表列表页面',null,'30030',null,'1','2','default','jbo.app.tenwa.calc.LC_EBANK_TEMP','O left join jbo.app.tenwa.calc.LC_FUND_RENT_ADJUST_TEMP lfrat on O.flowunid=lfrat.flowunid','O.flowunid=:FlowUnid','','','',null,'SYS_Designer','2018/08/26 17:49:22','SYS_Designer','2020/09/28 11:40:10','','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 ('LCEbankTempList','1064','1064','1','lfrat','MAXIMUM_TOTAL','MAXIMUM_TOTAL','String','','本次核销金额','','1','Text','1','1','','','','32','1','0','0','1','0',0,'','','','SYS_Designer','2020/09/28 11:41:21','SYS_Designer','2020/09/28 11:50:54','','','1','','','','');
|
||||
delete from awe_do_library where dono='LCEbankTempList' and colindex='1065';
|
||||
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 ('LCEbankTempList','1065','1065','1','O','HAD_MONEY','HAD_MONEY','Number','','本次已核销金额','','2','Text','2','3','','','','0','0','0','0','1','1',1,'0','0010','','SYS_Designer','2018/08/26 17:49:22','SYS_Designer','2020/09/28 11:50:54','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 ('MsgType','Tl_Business','业务申请通过通联签约','','0350','1','','','','','','','','','','','','SYS_Designer',null,'2020/09/09 15:23:07','SYS_Designer','2020/09/09 15:23:07','','');
|
||||
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 ('MsgType','Tl_ChangeBusiness','业务变更扣款卡变更通联签约','','0360','1','','','','','','','','','','','','SYS_Designer',null,'2020/09/18 17:49:20','SYS_Designer','2020/09/23 10:23:59','','');
|
||||
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 ('MsgType','Tl_ChangeContract','合同变更修改扣款卡信息通联签约','','0380','1','','','','','','','','','','','','SYS_Designer',null,'2020/09/23 09:53:33','SYS_Designer','2020/09/23 09:53:33','','');
|
||||
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 ('MsgType','Tl_MakeContract','合同制作修改扣款卡信息通联签约','','0370','1','','','','','','','','','','','','SYS_Designer',null,'2020/09/23 09:53:33','SYS_Designer','2020/09/23 09:53:33','','');
|
||||
|
||||
-- 创建通联卡扣签约状态历史表
|
||||
CREATE TABLE `lb_card_sign_status_his` (
|
||||
id varchar(32) NOT NULL COMMENT 'id',
|
||||
project_id varchar(32) DEFAULT NULL COMMENT '项目id',
|
||||
contract_id varchar(32) DEFAULT NULL COMMENT '合同id',
|
||||
acc_number varchar(50) DEFAULT NULL COMMENT '银行账号',
|
||||
account varchar(50) DEFAULT NULL COMMENT '帐户名称',
|
||||
bank_name varchar(100) DEFAULT NULL COMMENT '银行名称',
|
||||
mobile varchar(15) DEFAULT NULL COMMENT '预留手机号',
|
||||
certid varchar(32) DEFAULT NULL COMMENT '证件号码',
|
||||
gz_status varchar(32) DEFAULT NULL COMMENT '广州银联签约状态',
|
||||
tl_status varchar(32) DEFAULT NULL COMMENT '通联签约状态',
|
||||
agrmno VARCHAR(100) DEFAULT NULL COMMENT '协议号',
|
||||
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 '更新时间'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=gbk;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -2,6 +2,7 @@ package com.tenwa.lease.flow.contract.check;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_CARD_TLSIGN;
|
||||
import jbo.app.tenwa.customer.CUSTOMER_ACCOUNT;
|
||||
import jbo.com.tenwa.lease.comm.LB_CONTRACT_INFO;
|
||||
|
||||
@ -10,6 +11,7 @@ import com.amarsoft.are.jbo.BizObjectManager;
|
||||
import com.amarsoft.are.jbo.JBOException;
|
||||
import com.amarsoft.are.jbo.JBOFactory;
|
||||
import com.amarsoft.are.jbo.JBOTransaction;
|
||||
|
||||
import jbo.com.tenwa.lease.comm.LB_PROJECT_INFO;
|
||||
|
||||
public class ContractInfoCheck {
|
||||
@ -40,16 +42,32 @@ public class ContractInfoCheck {
|
||||
|
||||
//检查该项目是否进行过签约验证
|
||||
public String ProjectSignStatus(JBOTransaction tx) throws Exception{
|
||||
boolean gzSingStatus = false;
|
||||
BizObjectManager caManage = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME, tx);
|
||||
String acc_number = caManage.createQuery("PROJECT_ID=:projectid").setParameter("projectid", projectid).getSingleResult(false).getAttribute("acc_number").getString();
|
||||
List<BizObject> cas = caManage.createQuery("acc_number=:accnumber").setParameter("accnumber", acc_number).getResultList(false);
|
||||
String falg = "error";
|
||||
for (BizObject ca : cas) {
|
||||
if("Y".equals(ca.getAttribute("SIGN_STATUS").getString())){
|
||||
return "success";
|
||||
gzSingStatus = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return falg;
|
||||
BizObjectManager lctManage = JBOFactory.getBizObjectManager(LC_CARD_TLSIGN.CLASS_NAME, tx);
|
||||
BizObject lct = lctManage.createQuery(" project_id=:project_id ").setParameter("project_id", projectid).getSingleResult(false);
|
||||
boolean tlSingStatus = false;
|
||||
if( lct!=null && "sign_status2".equals(lct.getAttribute("sign_status").getString())){
|
||||
tlSingStatus = true;
|
||||
}
|
||||
if(tlSingStatus && gzSingStatus){
|
||||
return "success";
|
||||
}else if (tlSingStatus==false && gzSingStatus==false){
|
||||
return "请提醒客户查看手机短信,首先完成扣款卡的签约验证!";
|
||||
}else if (tlSingStatus==false ){
|
||||
return "请提醒客户查看手机短信,完成通联银联扣款卡的签约验证!";
|
||||
}else if(gzSingStatus==false){
|
||||
return "请提醒客户查看手机短信,完成广州银联扣款卡的签约验证!";
|
||||
}
|
||||
return "未查询到扣款信息,请联系管理员!" ;
|
||||
}
|
||||
|
||||
//保存付款申请GPS是否安装状态
|
||||
|
||||
@ -4,11 +4,13 @@ import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import jbo.app.tenwa.calc.LC_CARD_TLSIGN;
|
||||
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.app.tenwa.customer.LB_CARD_SIGN_STATUS_HIS;
|
||||
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;
|
||||
@ -35,7 +37,8 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
|
||||
String status = "N";//默认签约状态
|
||||
Map<String,String>fromCondtion=this.getDefaultTempToFormalFromCondtion();
|
||||
Map<String,String> toCondtion=new HashMap<String,String>();
|
||||
toCondtion.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
|
||||
String projectId = this.getAttribute("ProjectId").toString();
|
||||
toCondtion.put("PROJECT_ID",projectId);
|
||||
Map<String,String> otherProperty=new HashMap<String,String>();
|
||||
otherProperty.put("CONTRACT_ID",this.getAttribute("ContractId").toString());
|
||||
Map<String,String> other=new HashMap<String,String>();
|
||||
@ -45,14 +48,14 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
|
||||
String flowname=(String)this.getAttribute("FlowName");
|
||||
if("合同制作流程".equals(flowname)){
|
||||
BizObjectManager caManager = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,Sqlca);
|
||||
BizObject ca = caManager.createQuery(" project_id=:project_id ").setParameter("project_id", this.getAttribute("ProjectId").toString()).getSingleResult(true);
|
||||
BizObject ca = caManager.createQuery(" project_id=:project_id ").setParameter("project_id", projectId).getSingleResult(true);
|
||||
if(ca != null){
|
||||
ca.setAttributeValue("contract_id", this.getAttribute("ContractId").toString());
|
||||
caManager.saveObject(ca);
|
||||
}
|
||||
}else if ("业务变更流程".equals(flowname)){
|
||||
BizObjectManager CcaManager = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT.CLASS_NAME,Sqlca);
|
||||
BizObject cca = CcaManager.createQuery(" project_id=:project_id ").setParameter("project_id", this.getAttribute("ProjectId").toString()).getSingleResult(true);
|
||||
BizObject cca = CcaManager.createQuery(" project_id=:project_id ").setParameter("project_id", projectId).getSingleResult(true);
|
||||
String singStatus = cca==null?"":cca.getAttribute("SIGN_STATUS").getString();
|
||||
if("Y".equals(singStatus)){
|
||||
Map<String,String> signFromCondtion=new HashMap<String,String>();
|
||||
@ -69,8 +72,31 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
|
||||
if(ca != null){
|
||||
other.put("SIGN_STATUS", "Y");
|
||||
}
|
||||
|
||||
//校验通联卡扣是否签约成功
|
||||
BizObjectManager lcsshManage = JBOFactory.getFactory().getManager(LB_CARD_SIGN_STATUS_HIS.CLASS_NAME);
|
||||
BizObject lcss = lcsshManage.createQuery(" tl_status='sign_status2' and account=:account and acc_number=:acc_number and certid=:certid and mobile=:mobile ")
|
||||
.setParameter("account", cat.getAttribute("account").getString()).setParameter("acc_number", cat.getAttribute("acc_number").getString()).setParameter("certid", cat.getAttribute("certid").getString()).setParameter("mobile", cat.getAttribute("mobile").getString()).getSingleResult(false);
|
||||
|
||||
BizObjectManager lcthManage = JBOFactory.getFactory().getManager(LC_CARD_TLSIGN.CLASS_NAME,Sqlca);
|
||||
BizObject lct = lcthManage.createQuery("PROJECT_ID=:project_id ").setParameter("project_id", projectId).getSingleResult(true);
|
||||
if(lcss!=null){
|
||||
if(lct == null){
|
||||
lct = lcthManage.newObject();
|
||||
lct.setAttributeValue("PROJECT_ID", projectId);
|
||||
}
|
||||
lct.setAttributeValue("SIGN_STATUS", "sign_status2");
|
||||
lct.setAttributeValue("AGRMNO", lcss.getAttribute("AGRMNO").getString());
|
||||
lcthManage.saveObject(lct);
|
||||
}else{
|
||||
if(lct != null){
|
||||
lct.setAttributeValue("SIGN_STATUS", "sign_status4");
|
||||
lcthManage.saveObject(lct);
|
||||
}
|
||||
}
|
||||
}
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_ACCOUNT.CLASS_NAME, toCondtion, other,null, Sqlca);
|
||||
|
||||
}else if(!"合同变更流程".equals(flowname)){
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_ACCOUNT.CLASS_NAME, toCondtion, other,null, Sqlca);
|
||||
}
|
||||
@ -79,7 +105,7 @@ public class LBCustomerAccountTempToFormalBusiness extends BaseBussiness{
|
||||
fromCondtion.put("flowunid",flowUnid);
|
||||
fromCondtion.put("Partner_", "Y");
|
||||
toCondtion.clear();
|
||||
toCondtion.put("PROJECT_ID",this.getAttribute("ProjectId").toString());
|
||||
toCondtion.put("PROJECT_ID",projectId);
|
||||
toCondtion.put("Partner_", "Y");
|
||||
DataOperatorUtil.copyJBOSet(CUSTOMER_FAMILY_TEMP.CLASS_NAME, fromCondtion,CUSTOMER_FAMILY.CLASS_NAME, toCondtion, otherProperty,null, Sqlca);
|
||||
/* String contract_id="";
|
||||
|
||||
@ -81,6 +81,9 @@ public class QuartzJobMsg implements Job{
|
||||
String isoverdateexecute = data.getString("isoverdateexecute");
|
||||
//获取短信类型
|
||||
String msgtype = data.getString("msgType");
|
||||
if("Tl_Business".equals(msgtype) || "Tl_ChangeBusiness".equals(msgtype)|| "Tl_MakeContract".equals(msgtype)|| "Tl_ChangeContract".equals(msgtype)|| "Tl_AfterRenting".equals(msgtype)){
|
||||
msgcontent = msgcontent.replace("@", "=");
|
||||
}
|
||||
//获取是否按日期去重
|
||||
String isrepatebydate = data.getString("isrepeatbydate");
|
||||
//获取短信替换参数
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user