添加中车业务申请逻辑判断

This commit is contained in:
tangfutang 2021-03-20 18:16:20 +08:00
parent e91d00130c
commit 28ead09158
14 changed files with 215 additions and 12 deletions

View File

@ -23,6 +23,7 @@
String ApplyType=CurPage.getParameter("ApplyType");
String PhaseNo=CurPage.getParameter("PhaseNo");
String subjectId=CurPage.getParameter("SubjectId");//获取主体信息,用于是否签约查询
String channel=CurPage.getParameter("channel");
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
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).getSingleResult(false);
System.out.print("=========="+ldcls+"==========");
@ -188,13 +189,16 @@
}
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")+",applyType=<%=ApplyType%>,subjectId=<%=subjectId%>,collect_type="+getItemValue(0,getRow(),"collect_type");
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%>,subjectId=<%=subjectId%>,channel=<%=channel%>,collect_type="+getItemValue(0,getRow(),"collect_type");
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
if("false"==meassge){
alert("合同已生成,请先删除合同再修改扣款卡信息!");
return ;
}else if("Y"==meassge){
setItemValue(0,0,"sign_status","Y");
}else if("ZCfalse" == meassge){
alert("该扣款卡信息没有签约,无法保存!");
return ;
}else{
setItemValue(0,0,"sign_status","");
}

View File

@ -19,6 +19,8 @@
BizObject bo=JBOFactory.createBizObjectQuery("jbo.com.tenwa.entity.comm.flow.FLOW_BUSSINESS_OBJECT", "flow_unid=:flowunid").setParameter("flowunid",sFlowUnid).getSingleResult(false);
String custype = CurPage.getParameter("CustomerType");
String customertype = CurPage.getParameter("customertype");
String channel = CurPage.getParameter("channel");
ASObjectModel doTemp = new ASObjectModel(sTempletNo);
doTemp.setHtmlEvent("inputTel","onChange","checkTel");
//×âÁÞÐÎʽsetÖ»¶Á
@ -42,7 +44,12 @@
if("01".equals(custype)||"01".equals(customertype)){
userll="/Tenwa/Customer/Lessee/Person/CustomerCompanyTempInfo.jsp?CompClientID=";
}
if("ZC".equals(channel)){
doTemp.setVisible("ZC_PROJECT_NUMBER",true);
doTemp.setRequired("ZC_PROJECT_NUMBER",true);
doTemp.setVisible("ZC_CONTRACT_NUMBER",true);
doTemp.setRequired("ZC_CONTRACT_NUMBER",true);
}
ASObjectWindowCalc dwTemp = new ASObjectWindowCalc(CurPage, doTemp,request);
dwTemp.Style = "2";//freeform
dwTemp.setGroupHidden("0020");
@ -70,10 +77,20 @@
if(!checkTel()){
return ;
}
if("ZC"=="<%=channel%>"){
if(!checkZcProjectNumber()){
return ;
}
if(!checkZcContractNumber()){
return ;
}
}
var leasfrom = getItemValue(0,getRow(),"LEAS_FORM");
var projectSource = getItemValue(0,getRow(),"PROJECT_SOURCE");
var inputName = getItemValue(0,getRow(),"inputName");
var inputTel = getItemValue(0,getRow(),"inputTel");
var zcProjectNumber = getItemValue(0,getRow(),"ZC_PROJECT_NUMBER");
var zcContractNumber = getItemValue(0,getRow(),"ZC_CONTRACT_NUMBER");
var customerType = "<%=custype%>";
var customerT = "<%=customertype%>";
var projectNo=getItemValue(0,getRow(),"PROJECT_NO");
@ -100,7 +117,7 @@
//as_save(0);
}
if(customerType=="03"||customerT=="03"){//×ÔÈ»ÈË
frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType);
frame_list.window.saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType,zcProjectNumber,zcContractNumber);
//as_save("myiframe0","frame_list.window.as_save(0);");
}
}
@ -130,5 +147,27 @@
return true;
}
}
function checkZcProjectNumber(){
var zcProjectNumber = getItemValue(0,getRow(0),"ZC_PROJECT_NUMBER");
if(zcProjectNumber==""){
setErrorTips("ZC_PROJECT_NUMBER","中车申请号不能为空!");
return false;
}else{
setErrorTips("ZC_PROJECT_NUMBER","");
return true;
}
}
function checkZcContractNumber(){
var zcContractNumber = getItemValue(0,getRow(0),"ZC_CONTRACT_NUMBER");
if(zcContractNumber==""){
setErrorTips("ZC_CONTRACT_NUMBER","中车合同号不能为空!");
return false;
}else{
setErrorTips("ZC_CONTRACT_NUMBER","");
return true;
}
}
</script>
<%@ include file="/Frame/resources/include/include_end.jspf"%>

View File

@ -14,6 +14,8 @@
String FlowName = CurPage.getParameter("FlowName");//获取流程名称
String IsHistory = CurPage.getParameter("IsHistory");//获取流程名称
String projectId = CurPage.getParameter("ProjectId");
String channel = CurPage.getParameter("channel");
String customerid = Sqlca.getString("select customer_id from lb_union_lessee_temp where flowunid='"+flowunid+"'");
String sTempletNo = "";//--模板号--
String sexChange="";
@ -439,7 +441,7 @@
} */
}
function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType){//±£´æ
function saveRecord(leasfrom,projectSource,inputName,inputTel,projectNo,operationType,zcProjectNumber,zcContractNumber){//±£´æ
//校验申请人手机号和配偶手机号是否重复
var RepeatReault = "";
var customerType = "03";
@ -559,13 +561,13 @@
var certid=getItemValue(0,0,"CERTID");
<%-- var customerid=RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerAction","updateCustomerId",'certid='+certid+',flowunid=<%=flowunid%>'); --%>
// setItemValue(0,0,"customerid",customerid);
as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"')");
as_save("0","saveCertInfo('"+inputName+"','"+inputTel+"','"+leasfrom+"','"+projectSource+"','"+projectNo+"','"+operationType+"','"+zcProjectNumber+"','"+zcContractNumber+"')");
return true;
};
}
function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo,operationType){
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'projectNo='+projectNo+',inputName='+inputName+',operationType='+operationType+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>');
function saveCertInfo(inputName,inputTel,leasfrom,projectSource,projectNo,operationType,zcProjectNumber,zcContractNumber){
var sResult = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.CustomerInfoManage","saveCertInfo",'zcProjectNumber='+zcProjectNumber+',zcContractNumber='+zcContractNumber+',projectNo='+projectNo+',inputName='+inputName+',operationType='+operationType+',inputTel='+inputTel+',project_source='+projectSource+',leas_from='+leasfrom+',idexpiry='+getItemValue(0,0,"idexpiry")+',certtype='+getItemValue(0,0,"certtype")+',customerid='+getItemValue(0,0,"customerid")+',flowunid=<%=flowunid%>,certid='+getItemValue(0,0,"certid")+',name='+getItemValue(0,0,"name")+',userid=<%=CurUser.getUserID()%>,orgid=<%=CurUser.getOrgID()%>,channel=<%=channel%>');
if(sResult == "SUCCESS"){
parent.reloadSelf();
}

View File

@ -1,4 +1,5 @@
<%@ page contentType="text/html; charset=GBK"%>
<%@ page import="com.tenwa.util.ProjectConstant"%>
<%@ include file="/Frame/resources/include/include_begin_info.jspf"%>
<%/*~BEGIN~可编辑区~[Editable=true;CodeAreaID=Info00;Describe=注释区;]~*/%>
@ -36,6 +37,7 @@
distributorNo = bo.getAttribute("DISTRIBUTOR_NO").getString();
distributorType = bo.getAttribute("TYPE").getString();
}
String distributorNoConfig = ProjectConstant.DISTIRBUTOR_NO;//获取需要配置经销商
System.out.println(distributorNo);
System.out.println(distributorType);
String sApplyType = CurPage.getParameter("ApplyType");
@ -88,7 +90,11 @@
<%/*~BEGIN~可编辑区~[Editable=false;CodeAreaID=Info06;Describe=定义按钮事件-;]~*/%>
<script type="text/javascript">
$(function(){
$("#A_div_0150").attr("style","display:none;");
if("<%=distributorNoConfig%>" == "<%=distributorNo%>"){
setItemRequired(0,"DISTRIBUTORNAME",true);
}else{
$("#A_div_0150").attr("style","display:none;");
}
var beforeId = "<%=CurPage.getParameter("beforeId")%>";
if(typeof(beforeId) !="undefined" && beforeId!="null" && beforeId.length > 0){
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.businessapply.BeforeAppLicationCheck","getBusinessapplyData","id="+beforeId);
@ -131,7 +137,7 @@
function checkDispalyDistributor() {
var distributorNo22 = "<%=distributorNo%>";
var distributorType22 = "<%=distributorType%>";
if(distributorType22 == "type03"){
if(distributorType22 == "type03" || "<%=distributorNoConfig%>" == distributorNo22 ){
return true;
}
return false;
@ -150,7 +156,6 @@
/*~[Describe=保存并初始化数据;InputParam=无;OutPutParam=无;]~*/
function saveRecord()
{
//从页面上获取客户编号,产品编号
var carAttributes = getItemValue(0,getRow(),"carAttributes");//车辆属性
var leasehold = getItemValue(0,getRow(),"leasehold");//租赁方式
@ -241,6 +246,10 @@
sParams = sParams+",sex=1";
}
}
//判断是否是中车经销商
if("<%=distributorNoConfig%>" == "<%=distributorNo%>"){
sParams = sParams+",channel=ZC";
}
var sReturnInfo = RunJavaMethodTrans("com.tenwa.lease.flow.project.projectapproval.BusinessApprovalStartAction","initFLow",sParams);//定义流程中需要的参数
if(typeof(sReturnInfo)=="undefined" || sReturnInfo=="" || sReturnInfo=="_CANCEL_" )
{
@ -488,7 +497,7 @@
}
function selectDistributor(){
var productId = getItemValue(0,0,"productId");
AsDialog.OpenSelector("selectDistributorNew","distributorNum,<%=distributorNo%>,productId,"+productId,"dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
AsDialog.OpenSelector("selectDistributorNew","distributorNum,<%=distributorNo%>","dialogWidth=" + parseInt(window.screen.width * 0.8) + "px dialogHeight=" + parseInt(window.screen.height * 0.5) + "px",
function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"||sReturn=="")
{

View File

@ -140,6 +140,9 @@
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="subjectid" label="主体id" type="STRING" length="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -286,6 +289,9 @@
<attribute name="source_type" label="申请类型" type="STRING" length="32"/>
<attribute name="subjectid" label="主体id" type="STRING" length="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -796,6 +802,9 @@
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTID" label="主体id" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -1064,6 +1073,9 @@
<attribute name="has_gps" label="是否已安装GPS" TYPE="STRING" LENGTH="2"/>
<attribute name="SUBJECTID" label="主体id" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>
@ -2797,6 +2809,9 @@
<attribute name="LEGALPERSONID" label="法定代表人/经营者身份证号" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTID" label="主体id" TYPE="STRING" LENGTH="32"/>
<attribute name="SUBJECTNAME" label="主体名称" type="STRING" length="100"/>
<attribute name="CHANNEL" label="渠道" type="STRING" length="32"/>
<attribute name="ZC_PROJECT_NUMBER" label="中车申请号" type="STRING" length="32"/>
<attribute name="ZC_CONTRACT_NUMBER" label="中车合同号" type="STRING" length="32"/>
</attributes>
<manager>
<managerProperties>

View File

@ -35,6 +35,7 @@ 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.tenwa.util.MultiSubjectUtil;
import com.zhongan.scorpoin.biz.common.CommonRequest;
import com.zhongan.scorpoin.biz.common.CommonResponse;
import com.zhongan.scorpoin.common.ZhongAnApiClient;
@ -59,6 +60,7 @@ public class DebitCardAction {
private String applyType;
private String collect_type;
private String subjectId;
private String channel;
public String getCustIdByFlowunid(JBOTransaction tx) throws JBOException{
String s=this.getFlowUnid();
@ -269,7 +271,7 @@ public class DebitCardAction {
}
//业务变更是否需要重新签约验证
public String checkSign(JBOTransaction tx) throws JBOException{
public String checkSign(JBOTransaction tx) throws Exception{
//校验合同文件是否生成的扣款卡不需要校验是否生成合同文件
if(!"AccountChangeApply".equals(applyType)){
BizObjectManager ldclManager = JBOFactory.getBizObjectManager(LB_DOC_CONTRACT_LIST.CLASS_NAME);
@ -278,6 +280,18 @@ public class DebitCardAction {
return "false";
}
}
if("ZC".equals(channel)){
String sql = "select id from customer_account_input where collect_type='"+collect_type+"' and acc_number='"+acc_number+"' and account='"+account+"' and certid='"+certId+"' and tel='"+mobile+"' and subjectid='"+subjectId+"' and sign_status='Y' ";
List<Map<String, String>> dataBySql = DataOperatorUtil.getDataBySql(sql);
if( dataBySql == null || dataBySql.size() == 0){
return "ZCfalse";
}else if("YLcollect".equals(collect_type)){
return "Y";
}else{
}
return "N";
}
//查询历史是否签约
BizObjectManager lcsshManage = JBOFactory.getFactory().getManager(LB_CARD_SIGN_STATUS_HIS.CLASS_NAME);
BizObject lcss = lcsshManage.createQuery("select O.AGRMNO from O left join jbo.com.tenwa.lease.comm.LB_PROJECT_INFO lpi on lpi.id=O.project_id where O.tl_status='sign_status2' and O.account=:account and O.acc_number=:acc_number and O.certid=:certid and O.mobile=:mobile and O.sign_type=:sign_type and lpi.subjectid=:subjectId ")
@ -589,5 +603,13 @@ public class DebitCardAction {
public void setSubjectId(String subjectId) {
this.subjectId = subjectId;
}
public String getChannel() {
return channel;
}
public void setChannel(String channel) {
this.channel = channel;
}
}

View File

@ -329,4 +329,16 @@ public interface LB_CONTRACT_INFO{
* Ö÷ÌåÃû³Æ STRING(100)<br>
*/
public static final String SUBJECTNAME = "SUBJECTNAME";
/**
* 渠道 STRING(32)<br>
*/
public static final String CHANNEL = "CHANNEL";
/**
* 中车申请号 STRING(32)<br>
*/
public static final String ZC_PROJECT_NUMBER = "ZC_PROJECT_NUMBER";
/**
* 中车合同号 STRING(32)<br>
*/
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
}

View File

@ -317,4 +317,16 @@ public interface LB_CONTRACT_INFO_HIS{
* Ö÷ÌåÃû³Æ STRING(100)<br>
*/
public static final String SUBJECTNAME = "SUBJECTNAME";
/**
* 渠道 STRING(32)<br>
*/
public static final String CHANNEL = "CHANNEL";
/**
* 中车申请号 STRING(32)<br>
*/
public static final String ZC_PROJECT_NUMBER = "ZC_PROJECT_NUMBER";
/**
* 中车合同号 STRING(32)<br>
*/
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
}

View File

@ -321,4 +321,16 @@ public interface LB_CONTRACT_INFO_TEMP{
* Ö÷ÌåÃû³Æ STRING(100)<br>
*/
public static final String SUBJECTNAME = "SUBJECTNAME";
/**
* 渠道 STRING(32)<br>
*/
public static final String CHANNEL = "CHANNEL";
/**
* 中车申请号 STRING(32)<br>
*/
public static final String ZC_PROJECT_NUMBER = "ZC_PROJECT_NUMBER";
/**
* 中车合同号 STRING(32)<br>
*/
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
}

View File

@ -253,4 +253,16 @@ public interface LB_PROJECT_INFO{
* Ö÷ÌåÃû³Æ STRING(100)<br>
*/
public static final String SUBJECTNAME = "SUBJECTNAME";
/**
* 渠道 STRING(32)<br>
*/
public static final String CHANNEL = "CHANNEL";
/**
* 中车申请号 STRING(32)<br>
*/
public static final String ZC_PROJECT_NUMBER = "ZC_PROJECT_NUMBER";
/**
* 中车合同号 STRING(32)<br>
*/
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
}

View File

@ -253,4 +253,16 @@ public interface LB_PROJECT_INFO_TEMP{
* Ö÷ÌåÃû³Æ STRING(100)<br>
*/
public static final String SUBJECTNAME = "SUBJECTNAME";
/**
* 渠道 STRING(32)<br>
*/
public static final String CHANNEL = "CHANNEL";
/**
* 中车申请号 STRING(32)<br>
*/
public static final String ZC_PROJECT_NUMBER = "ZC_PROJECT_NUMBER";
/**
* 中车合同号 STRING(32)<br>
*/
public static final String ZC_CONTRACT_NUMBER = "ZC_CONTRACT_NUMBER";
}

View File

@ -0,0 +1,19 @@
-- 修改经销选择所属渠道可以选择中车的更新生产需要改成对应的distributor_no
delete from SELECT_CATALOG where selname='SelectCompanyNew';
Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('SelectCompanyNew','Sql','经销商子分属公司-新','distributor_info','','Grid','','distributor_no','select distributor_name,distributor_no from distributor_info where F_I_TYPE=''f_i_type03'' or distributor_no=''DSTB20210319006682''','渠道商名称,渠道商编码','distributor_name@style={width:500px}','distributor_name@distributor_no','distributor_name','1','Single','distributor_name@1','distributor_name@String','','','','SYS_Designer','','2020/11/04 15:35:18','SYS_Designer','2021/03/19 18:08:26','');
-- 添加表对应的字段
Alter table lb_project_info add column CHANNEL varchar(32) NULL COMMENT '渠道' after SUBJECTNAME, add column ZC_PROJECT_NUMBER varchar(32) NULL COMMENT '中车申请号' after CHANNEL, add column ZC_CONTRACT_NUMBER varchar(32) NULL COMMENT '中车合同号' after ZC_PROJECT_NUMBER;
Alter table lb_project_info_temp add column CHANNEL varchar(32) NULL COMMENT '渠道' after SUBJECTNAME, add column ZC_PROJECT_NUMBER varchar(32) NULL COMMENT '中车申请号' after CHANNEL, add column ZC_CONTRACT_NUMBER varchar(32) NULL COMMENT '中车合同号' after ZC_PROJECT_NUMBER;
Alter table lb_contract_info add column CHANNEL varchar(32) NULL COMMENT '渠道' after SUBJECTNAME, add column ZC_PROJECT_NUMBER varchar(32) NULL COMMENT '中车申请号' after CHANNEL, add column ZC_CONTRACT_NUMBER varchar(32) NULL COMMENT '中车合同号' after ZC_PROJECT_NUMBER;
Alter table lb_contract_info_temp add column CHANNEL varchar(32) NULL COMMENT '渠道' after SUBJECTNAME, add column ZC_PROJECT_NUMBER varchar(32) NULL COMMENT '中车申请号' after CHANNEL, add column ZC_CONTRACT_NUMBER varchar(32) NULL COMMENT '中车合同号' after ZC_PROJECT_NUMBER;
Alter table lb_contract_info_his add column CHANNEL varchar(32) NULL COMMENT '渠道' after SUBJECTNAME, add column ZC_PROJECT_NUMBER varchar(32) NULL COMMENT '中车申请号' after CHANNEL, add column ZC_CONTRACT_NUMBER varchar(32) NULL COMMENT '中车合同号' after ZC_PROJECT_NUMBER;
-- 添加扣款卡页面选择账户名称的模糊搜索
delete from SELECT_CATALOG where selname='selectAccountByCusts';
Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('selectAccountByCusts','Sql','业务申请用扣款卡用户选择','','','Grid','String flowunid','custtype','select certid,FULLNAME as name,MOBILE as phone,''assuror'' as custtype,''担保人'' as typename from LB_GUARANTEE_UNIT_TEMP where flowunid=''#flowunid'' and CERTTYPE=''Ind01'' and case when ''01''=''#customerType'' then 1=1 else 1=2 end union select certid,name,tel as phone,''unionlessee'' as custtype,''共同申请人'' as typename from CUSTOMER_FAMILY_TEMP where flowunid=''#flowunid'' and Partner_=''Y'' union select certid,fullname as name,mobile as phone,''lessee'' as custtype,''承租人'' as typename from customer_person_temp where flowunid=''#flowunid''','证件号,姓名,手机号,code,客户类型','','certid@name@custtype@phone','name','1','Single','','','','','','SYS_Designer','','2018/08/07 17:58:13','SYS_Designer','2021/03/20 17:29:52','');
delete from SELECT_CATALOG where selname='selectAccountForChange';
Insert Into SELECT_CATALOG (selname,seltype,seldescribe,seltablename,selprimarykey,selbrowsemode,selargs,selhidefield,selcode,selfieldname,selfielddisp,selreturnvalue,selfilterfield,isinuse,mutilorsingle,attribute1,attribute2,attribute3,attribute4,attribute5,inputuser,inputorg,inputtime,updateuser,updatetime,remark) Values ('selectAccountForChange','Sql','扣款卡变更用扣款卡用户名选择','','','Grid','String ProjectId,String CustomerId','custtype','select certid,FULLNAME as name,MOBILE as phone,''assuror'' as custtype,''担保人'' as typename from LB_GUARANTEE_UNIT where project_id=''#ProjectId'' and CERTTYPE=''Ind01'' and case when ''01''=''#customerType'' then 1=1 else 1=2 end union select certid,name,tel as phone,''unionlessee'' as custtype,''共同申请人'' as typename from CUSTOMER_FAMILY where project_id=''#ProjectId'' AND Partner_=''Y'' union select certid,fullname as name,mobile as phone,''lessee'' as custtype,''承租人'' as typename from customer_person where customerid=''#CustomerId''','证件号,姓名,手机号,客户类型,客户类型','','certid@name@custtype@phone','name','1','Single','','','','','','SYS_Designer','','2018/08/07 18:29:37','SYS_Designer','2021/03/20 17:38:01','');

View File

@ -51,6 +51,9 @@ public class CustomerInfoManage {
private String distributorCode;
private String projectNo;
private String operationType;
private String zcProjectNumber;
private String zcContractNumber;
private String channel;
public String getDistributorCode() {
return distributorCode;
@ -280,6 +283,30 @@ public class CustomerInfoManage {
this.operationType = operationType;
}
public String getZcProjectNumber() {
return zcProjectNumber;
}
public void setZcProjectNumber(String zcProjectNumber) {
this.zcProjectNumber = zcProjectNumber;
}
public String getZcContractNumber() {
return zcContractNumber;
}
public void setZcContractNumber(String zcContractNumber) {
this.zcContractNumber = zcContractNumber;
}
public String getChannel() {
return channel;
}
public void setChannel(String channel) {
this.channel = channel;
}
public String saveCustomerFamilyFormal(JBOTransaction tx){
try{
BizObjectManager bom = JBOFactory.getBizObjectManager(CUSTOMER_FAMILY.CLASS_NAME,tx);
@ -394,6 +421,11 @@ public class CustomerInfoManage {
proj.setAttributeValue("inputName", inputName);
proj.setAttributeValue("inputTel", inputTel);
proj.setAttributeValue("PROJECT_NO", projectNo);
if( channel != null && channel.length() > 0 && !("null".equals(channel)) ){
proj.setAttributeValue("CHANNEL", channel);
}
proj.setAttributeValue("ZC_PROJECT_NUMBER", zcProjectNumber);
proj.setAttributeValue("ZC_CONTRACT_NUMBER", zcContractNumber);
}
//update ÏîÄ¿Ãû³Æ
if(buss != null){

View File

@ -7,5 +7,6 @@ package com.tenwa.util;
public class ProjectConstant {
public static final String CREDIT_RESULT_TYPE="0010";
public static final String DISTIRBUTOR_NO="DSTB20210319006682";
}