修改业务变更bug
This commit is contained in:
parent
ed2801934f
commit
fdc6ec2c80
@ -35,7 +35,7 @@
|
||||
//在加载完表格后调用
|
||||
function afterSearch(){
|
||||
for(var i=0;i<getRowCount(0);i++){
|
||||
getObj(0,i,"ACTION").innerHTML= <%=bFlag%> ? '<a href=# onclick="javascript:viewTab()">ÉêÇëÏêÇé</a> ' : '<a onclick="javascript:viewFlowGraph()">ÏÔʾÁ÷³Ìͼ</a> <a href=# onclick="javascript:viewTab()">ÉêÇëÏêÇé</a> ';
|
||||
getObj(0,i,"ACTION").innerHTML= <%=bFlag%> ? '<a href=# onclick="javascript:viewHisTabRead()">ÉêÇëÏêÇé</a> ' : '<a onclick="javascript:viewFlowGraph()">ÏÔʾÁ÷³Ìͼ</a> <a href=# onclick="javascript:viewHisTabRead()">ÉêÇëÏêÇé</a> ';
|
||||
}
|
||||
setColumnWidth(0,"ACTION",150);
|
||||
}
|
||||
|
||||
@ -7,7 +7,7 @@
|
||||
Content: ʾÀýÏêÇéÒ³Ãæ
|
||||
History Log:
|
||||
*/
|
||||
String projectId = CurPage.getParameter("projectId");
|
||||
String projectId = CurPage.getParameter("ProjectId");
|
||||
String customerId = CurPage.getParameter("customerId");
|
||||
String contractId = CurPage.getParameter("ContractId");
|
||||
String sPrevUrl = CurPage.getParameter("PrevUrl");
|
||||
@ -161,6 +161,20 @@
|
||||
}
|
||||
}
|
||||
}
|
||||
if("BusinessChangeApply"=="<%=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%>";
|
||||
var meassge = RunJavaMethodTrans("com.tenwa.comm.customerfilterlist.DebitCardAction", "checkSign", sparams);
|
||||
if("YES"==meassge){
|
||||
setItemValue(0,0,"sign_status","");
|
||||
}else if("NULL"==meassge){
|
||||
alert("没有找到对应的扣款卡信息!!");
|
||||
return;
|
||||
}else if("Y"==meassge){
|
||||
setItemValue(0,0,"sign_status","Y");
|
||||
}else if("N"==meassge){
|
||||
setItemValue(0,0,"sign_status","");
|
||||
}
|
||||
}
|
||||
iV_all("0");
|
||||
as_save("0","re");
|
||||
}
|
||||
|
||||
@ -28,302 +28,322 @@ import com.zhongan.scorpoin.common.ZhongAnApiClient;
|
||||
import com.zhongan.scorpoin.common.ZhongAnOpenException;
|
||||
|
||||
public class DebitCardAction {
|
||||
private String FlowUnid;
|
||||
private String bank_name;
|
||||
private String account;
|
||||
private String acc_number;
|
||||
private String customerid;
|
||||
private String projectid;
|
||||
private String contractid;
|
||||
private String acc_type;
|
||||
private String pay_money;
|
||||
private String mobile;
|
||||
|
||||
private String FlowUnid;
|
||||
private String bank_name;
|
||||
private String account;
|
||||
private String acc_number;
|
||||
private String customerid;
|
||||
private String projectid;
|
||||
private String contractid;
|
||||
private String acc_type;
|
||||
private String pay_money;
|
||||
private String mobile;
|
||||
|
||||
public String getCustIdByFlowunid(JBOTransaction tx) throws JBOException{
|
||||
String s=this.getFlowUnid();
|
||||
BizObjectManager manager=JBOFactory.getFactory().getManager(LB_UNION_LESSEE_TEMP.CLASS_NAME);
|
||||
BizObject bo=manager.createQuery("select customer_id,project_id,contract_id from O where flowunid=:flowunid").setParameter("flowunid", this.getFlowUnid()).getSingleResult(false);
|
||||
if(bo!=null){
|
||||
String customerid=bo.getAttribute("customer_id").getString();
|
||||
String projectid=bo.getAttribute("project_id").getString();
|
||||
String contractid=bo.getAttribute("contract_id").getString();
|
||||
if(contractid==null||contractid.equals("")||contractid.equals("null")){
|
||||
contractid="null";
|
||||
}
|
||||
return customerid+","+projectid+","+contractid;
|
||||
|
||||
//return bo.getAttribute("BILL_ID").toString();
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
/*BizObjectManager bm=JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.CUSTOMER_INFO_TEMP", tx);
|
||||
String customerid=bm.createQuery("select customerid from O where flowunid=:flowunid").setParameter("flowunid", this.getFlowUnid()).getSingleResult(false).getAttribute("customerid").getString();
|
||||
if(customerid==null||customerid==""){
|
||||
return null;
|
||||
}*/
|
||||
}
|
||||
|
||||
public String getProjIdByFlowunid(JBOTransaction tx) throws JBOException{
|
||||
String s=this.getFlowUnid();
|
||||
BizObjectManager manager=JBOFactory.getFactory().getManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);
|
||||
BizObject bo=manager.createQuery("select project_no from O where flowunid=:flowunid").setParameter("flowunid", this.getFlowUnid()).getSingleResult(false);
|
||||
if(bo!=null){
|
||||
String project_id=bo.getAttribute("project_no").getString();
|
||||
return project_id;
|
||||
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//保存付款卡信息
|
||||
public String savePaymentCard(JBOTransaction tx){
|
||||
try{
|
||||
String contractid=this.getContractid();
|
||||
Map<String,String> map = new HashMap<String, String>();
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME,tx);
|
||||
BizObject bo=bom.newObject();
|
||||
if(null==this.account&&null==this.acc_number&&null==this.bank_name&&null==this.pay_money){
|
||||
map.clear();
|
||||
map.put("flowunid", this.getFlowUnid());
|
||||
map.put("acc_type", this.getAcc_type());
|
||||
DataOperatorUtil.deleteJBOByCondtion(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, map, tx);
|
||||
}else{
|
||||
|
||||
if(null==contractid||"".equals(contractid)||"null".equals(contractid)){
|
||||
contractid="";
|
||||
bo = bom.createQuery("flowunid=:flowunid and customerid=:customerid and acc_type=:acc_type and project_id=:project_id").setParameter("flowunid", this.getFlowUnid()).setParameter("acc_type", this.getAcc_type()).setParameter("customerid", this.getCustomerid()).setParameter("project_id", this.getProjectid()).getSingleResult(true);
|
||||
}else{
|
||||
bo = bom.createQuery("flowunid=:flowunid and customerid=:customerid and acc_type=:acc_type and project_id=:project_id and contract_id=:contract_id").setParameter("flowunid", this.getFlowUnid()).setParameter("acc_type", this.getAcc_type()).setParameter("customerid", this.getCustomerid()).setParameter("project_id", this.getProjectid()).setParameter("contract_id", this.getContractid()).getSingleResult(true);
|
||||
}
|
||||
if(bo != null){
|
||||
bo.setAttributeValue("bank_name", this.getBank_name());
|
||||
bo.setAttributeValue("account", this.getAccount());
|
||||
bo.setAttributeValue("acc_number", this.getAcc_number());
|
||||
bo.setAttributeValue("pay_money", this.getPay_money());
|
||||
}else{
|
||||
bo = bom.newObject();
|
||||
bo.setAttributeValue("flowunid", this.getFlowUnid());
|
||||
bo.setAttributeValue("customerid", this.getCustomerid());
|
||||
bo.setAttributeValue("project_id", this.getProjectid());
|
||||
bo.setAttributeValue("contract_id", contractid);
|
||||
bo.setAttributeValue("bank_name", this.getBank_name());
|
||||
bo.setAttributeValue("account", this.getAccount());
|
||||
bo.setAttributeValue("acc_number", this.getAcc_number());
|
||||
bo.setAttributeValue("acc_type", this.getAcc_type());
|
||||
bo.setAttributeValue("pay_money", this.getPay_money());
|
||||
}
|
||||
bom.saveObject(bo);
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
return "ERROR";
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
//提示银行是否为指定行
|
||||
public String vertifyBankIsValid(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CODE_LIBRARY.CLASS_NAME);
|
||||
List<BizObject> bolist = bm.createQuery("O.codeno = 'bankType'").getResultList(false);
|
||||
String bankName = this.getBank_name();
|
||||
boolean flag = false;
|
||||
for (BizObject bo : bolist) {
|
||||
String itemName = bo.getAttribute("itemname").toString();
|
||||
if (bankName.indexOf(itemName) != -1) {
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
return "success";
|
||||
}else{
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
//保存预留手机号
|
||||
public String saveMobile(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT.CLASS_NAME);
|
||||
bm.createQuery("update O set MOBILE=:mobile where customerid=:customerid and acc_type='Debit'")
|
||||
.setParameter("mobile", this.getMobile())
|
||||
.setParameter("customerid", this.getCustomerid()).executeUpdate();
|
||||
return "success";
|
||||
}
|
||||
//校验银行卡四要素
|
||||
public String verifyFourelementBank(JBOTransaction tx) throws JBOException{
|
||||
try {
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME);
|
||||
public String getCustIdByFlowunid(JBOTransaction tx) throws JBOException{
|
||||
String s=this.getFlowUnid();
|
||||
BizObject bankObject = bm.createQuery("select customerid from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",s).getSingleResult(false);
|
||||
if(bankObject!=null){
|
||||
String customerid = bankObject.getAttribute("customerid").getString();
|
||||
BizObject bo = bm.createQuery("select cpt.fullname,O.mobile,O.acc_number,O.account,cpt.CERTID,cpt.CERTTYPE,O.customerid from O,jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt "
|
||||
+ "where O.customerid = cpt.customerid and cpt.customerid=:customerid")
|
||||
.setParameter("customerid",customerid).getSingleResult(false);
|
||||
if (bo != null) {
|
||||
//代收付签约、银行卡验证交易测试URL
|
||||
CollectAuditInfoCache cap = new CollectAuditInfoCache();
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("ACCOUNT_NO", bo.getAttribute("acc_number").toString());//卡号
|
||||
map.put("ACCOUNT_NAME", bo.getAttribute("account").toString());//户名
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
|
||||
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
|
||||
map.put("ID_TYPE", "2");// 2->护照
|
||||
}
|
||||
//map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证
|
||||
map.put("ID", bo.getAttribute("CERTID").toString());//开户时的证件号码
|
||||
map.put("TEL", bo.getAttribute("mobile").toString());//开户时预留的11位手机号
|
||||
//四要素
|
||||
Map<String, String> fourMsg = new HashMap<String, String>();
|
||||
fourMsg = cap.vitfyCollectManage(map);
|
||||
bm.createQuery("update O set VERIFY=:verify,VERIFY_STATUS=:verify_status where customerid=:customerid")
|
||||
.setParameter("verify", fourMsg.get("ERR_MSG"))
|
||||
.setParameter("verify_status", "0000".equals(fourMsg.get("RET_CODE")) ? "Y" : "N")
|
||||
.setParameter("customerid", customerid).executeUpdate();
|
||||
}
|
||||
}else{
|
||||
return "扣款卡信息未保存,请先保存!";
|
||||
BizObjectManager manager=JBOFactory.getFactory().getManager(LB_UNION_LESSEE_TEMP.CLASS_NAME);
|
||||
BizObject bo=manager.createQuery("select customer_id,project_id,contract_id from O where flowunid=:flowunid").setParameter("flowunid", this.getFlowUnid()).getSingleResult(false);
|
||||
if(bo!=null){
|
||||
String customerid=bo.getAttribute("customer_id").getString();
|
||||
String projectid=bo.getAttribute("project_id").getString();
|
||||
String contractid=bo.getAttribute("contract_id").getString();
|
||||
if(contractid==null||contractid.equals("")||contractid.equals("null")){
|
||||
contractid="null";
|
||||
}
|
||||
} catch (CryptException e) {
|
||||
return customerid+","+projectid+","+contractid;
|
||||
|
||||
//return bo.getAttribute("BILL_ID").toString();
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
/*BizObjectManager bm=JBOFactory.getBizObjectManager("jbo.com.tenwa.lease.comm.CUSTOMER_INFO_TEMP", tx);
|
||||
String customerid=bm.createQuery("select customerid from O where flowunid=:flowunid").setParameter("flowunid", this.getFlowUnid()).getSingleResult(false).getAttribute("customerid").getString();
|
||||
if(customerid==null||customerid==""){
|
||||
return null;
|
||||
}*/
|
||||
}
|
||||
|
||||
public String getProjIdByFlowunid(JBOTransaction tx) throws JBOException{
|
||||
String s=this.getFlowUnid();
|
||||
BizObjectManager manager=JBOFactory.getFactory().getManager(LB_PROJECT_INFO_TEMP.CLASS_NAME);
|
||||
BizObject bo=manager.createQuery("select project_no from O where flowunid=:flowunid").setParameter("flowunid", this.getFlowUnid()).getSingleResult(false);
|
||||
if(bo!=null){
|
||||
String project_id=bo.getAttribute("project_no").getString();
|
||||
return project_id;
|
||||
|
||||
}else{
|
||||
return "false";
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
//保存付款卡信息
|
||||
public String savePaymentCard(JBOTransaction tx){
|
||||
try{
|
||||
String contractid=this.getContractid();
|
||||
Map<String,String> map = new HashMap<String, String>();
|
||||
BizObjectManager bom = JBOFactory.getBizObjectManager(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME,tx);
|
||||
BizObject bo=bom.newObject();
|
||||
if(null==this.account&&null==this.acc_number&&null==this.bank_name&&null==this.pay_money){
|
||||
map.clear();
|
||||
map.put("flowunid", this.getFlowUnid());
|
||||
map.put("acc_type", this.getAcc_type());
|
||||
DataOperatorUtil.deleteJBOByCondtion(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME, map, tx);
|
||||
}else{
|
||||
|
||||
if(null==contractid||"".equals(contractid)||"null".equals(contractid)){
|
||||
contractid="";
|
||||
bo = bom.createQuery("flowunid=:flowunid and customerid=:customerid and acc_type=:acc_type and project_id=:project_id").setParameter("flowunid", this.getFlowUnid()).setParameter("acc_type", this.getAcc_type()).setParameter("customerid", this.getCustomerid()).setParameter("project_id", this.getProjectid()).getSingleResult(true);
|
||||
}else{
|
||||
bo = bom.createQuery("flowunid=:flowunid and customerid=:customerid and acc_type=:acc_type and project_id=:project_id and contract_id=:contract_id").setParameter("flowunid", this.getFlowUnid()).setParameter("acc_type", this.getAcc_type()).setParameter("customerid", this.getCustomerid()).setParameter("project_id", this.getProjectid()).setParameter("contract_id", this.getContractid()).getSingleResult(true);
|
||||
}
|
||||
if(bo != null){
|
||||
bo.setAttributeValue("bank_name", this.getBank_name());
|
||||
bo.setAttributeValue("account", this.getAccount());
|
||||
bo.setAttributeValue("acc_number", this.getAcc_number());
|
||||
bo.setAttributeValue("pay_money", this.getPay_money());
|
||||
}else{
|
||||
bo = bom.newObject();
|
||||
bo.setAttributeValue("flowunid", this.getFlowUnid());
|
||||
bo.setAttributeValue("customerid", this.getCustomerid());
|
||||
bo.setAttributeValue("project_id", this.getProjectid());
|
||||
bo.setAttributeValue("contract_id", contractid);
|
||||
bo.setAttributeValue("bank_name", this.getBank_name());
|
||||
bo.setAttributeValue("account", this.getAccount());
|
||||
bo.setAttributeValue("acc_number", this.getAcc_number());
|
||||
bo.setAttributeValue("acc_type", this.getAcc_type());
|
||||
bo.setAttributeValue("pay_money", this.getPay_money());
|
||||
}
|
||||
bom.saveObject(bo);
|
||||
}
|
||||
}catch(Exception e){
|
||||
e.printStackTrace();
|
||||
return "ERROR";
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
/*public static void main(String[] args) {
|
||||
//代收付签约、银行卡验证交易测试URL
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
//提示银行是否为指定行
|
||||
public String vertifyBankIsValid(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CODE_LIBRARY.CLASS_NAME);
|
||||
List<BizObject> bolist = bm.createQuery("O.codeno = 'bankType'").getResultList(false);
|
||||
String bankName = this.getBank_name();
|
||||
boolean flag = false;
|
||||
for (BizObject bo : bolist) {
|
||||
String itemName = bo.getAttribute("itemname").toString();
|
||||
if (bankName.indexOf(itemName) != -1) {
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (flag) {
|
||||
return "success";
|
||||
}else{
|
||||
return "error";
|
||||
}
|
||||
}
|
||||
//保存预留手机号
|
||||
public String saveMobile(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT.CLASS_NAME);
|
||||
bm.createQuery("update O set MOBILE=:mobile where customerid=:customerid and acc_type='Debit'")
|
||||
.setParameter("mobile", this.getMobile())
|
||||
.setParameter("customerid", this.getCustomerid()).executeUpdate();
|
||||
return "success";
|
||||
}
|
||||
//校验银行卡四要素
|
||||
public String verifyFourelementBank(JBOTransaction tx) throws JBOException{
|
||||
try {
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT_TEMP.CLASS_NAME);
|
||||
String s=this.getFlowUnid();
|
||||
BizObject bankObject = bm.createQuery("select customerid from O where flowunid=:FLOWUNID").setParameter("FLOWUNID",s).getSingleResult(false);
|
||||
if(bankObject!=null){
|
||||
String customerid = bankObject.getAttribute("customerid").getString();
|
||||
BizObject bo = bm.createQuery("select cpt.fullname,O.mobile,O.acc_number,O.account,cpt.CERTID,cpt.CERTTYPE,O.customerid from O,jbo.app.tenwa.customer.CUSTOMER_PERSON_TEMP cpt "
|
||||
+ "where O.customerid = cpt.customerid and cpt.customerid=:customerid")
|
||||
.setParameter("customerid",customerid).getSingleResult(false);
|
||||
if (bo != null) {
|
||||
//代收付签约、银行卡验证交易测试URL
|
||||
CollectAuditInfoCache cap = new CollectAuditInfoCache();
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("ACCOUNT_NO", bo.getAttribute("acc_number").toString());//卡号
|
||||
map.put("ACCOUNT_NAME", bo.getAttribute("account").toString());//户名
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
|
||||
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
|
||||
map.put("ID_TYPE", "2");// 2->护照
|
||||
}
|
||||
//map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证
|
||||
map.put("ID", bo.getAttribute("CERTID").toString());//开户时的证件号码
|
||||
map.put("TEL", bo.getAttribute("mobile").toString());//开户时预留的11位手机号
|
||||
//四要素
|
||||
Map<String, String> fourMsg = new HashMap<String, String>();
|
||||
fourMsg = cap.vitfyCollectManage(map);
|
||||
bm.createQuery("update O set VERIFY=:verify,VERIFY_STATUS=:verify_status where customerid=:customerid")
|
||||
.setParameter("verify", fourMsg.get("ERR_MSG"))
|
||||
.setParameter("verify_status", "0000".equals(fourMsg.get("RET_CODE")) ? "Y" : "N")
|
||||
.setParameter("customerid", customerid).executeUpdate();
|
||||
}
|
||||
}else{
|
||||
return "扣款卡信息未保存,请先保存!";
|
||||
}
|
||||
} catch (CryptException e) {
|
||||
e.printStackTrace();
|
||||
return "ERROR";
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
/*public static void main(String[] args) {
|
||||
//代收付签约、银行卡验证交易测试URL
|
||||
CollectAuditInfoCache cap = new CollectAuditInfoCache();
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("ACCOUNT_NO", "6225887814773509");//卡号
|
||||
map.put("ACCOUNT_NAME", "戚静");//户名
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
|
||||
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
|
||||
map.put("ID_TYPE", "2");// 2->护照
|
||||
}
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证
|
||||
map.put("ID", "420502198301131325");//开户时的证件号码
|
||||
map.put("TEL", "13923495221");
|
||||
//四要素
|
||||
Map<String, String> fourMsg = new HashMap<String, String>();
|
||||
try {
|
||||
fourMsg = cap.vitfyCollectManage(map);
|
||||
} catch (CryptException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
}
|
||||
}*/
|
||||
//校验银行卡四要素
|
||||
public String verifyFourelementBankManage(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT.CLASS_NAME);
|
||||
BizObject bo = bm.createQuery("select cpt.fullname,O.mobile,O.acc_number,O.account,cpt.CERTID,cpt.CERTTYPE,O.customerid from O,jbo.app.tenwa.customer.CUSTOMER_PERSON cpt,jbo.app.tenwa.customer.CUSTOMER_INFO ci "
|
||||
+ "where O.customerid = cpt.customerid and ci.customerid = O.customerid and O.acc_type= 'Debit' and ci.customerid=:customerid")
|
||||
.setParameter("customerid", this.getCustomerid()).getSingleResult(false);
|
||||
if (bo != null) {
|
||||
//代收付签约、银行卡验证交易测试URL
|
||||
CollectAuditInfoCache cap = new CollectAuditInfoCache();
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("ACCOUNT_NO", "6225887814773509");//卡号
|
||||
map.put("ACCOUNT_NAME", "戚静");//户名
|
||||
map.put("ACCOUNT_NO", bo.getAttribute("acc_number").toString());//卡号
|
||||
map.put("ACCOUNT_NAME", bo.getAttribute("account").toString());//户名
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
|
||||
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
|
||||
map.put("ID_TYPE", "2");// 2->护照
|
||||
}
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证
|
||||
map.put("ID", "420502198301131325");//开户时的证件号码
|
||||
map.put("TEL", "13923495221");
|
||||
}
|
||||
map.put("ID", bo.getAttribute("CERTID").toString());//开户时的证件号码
|
||||
map.put("TEL", bo.getAttribute("mobile").toString());//开户时预留的11位手机号
|
||||
//四要素
|
||||
Map<String, String> fourMsg = new HashMap<String, String>();
|
||||
try {
|
||||
fourMsg = cap.vitfyCollectManage(map);
|
||||
bm.createQuery("update O set VERIFY=:verify,VERIFY_STATUS=:verify_status where customerid=:customerid and acc_type='Debit'")
|
||||
.setParameter("verify", fourMsg.get("ERR_MSG"))
|
||||
.setParameter("verify_status", "0000".equals(fourMsg.get("RET_CODE")) ? "Y" : "N")
|
||||
.setParameter("customerid", this.getCustomerid()).executeUpdate();
|
||||
} catch (CryptException e) {
|
||||
// TODO Auto-generated catch block
|
||||
e.printStackTrace();
|
||||
return "ERROR";
|
||||
}
|
||||
}*/
|
||||
//校验银行卡四要素
|
||||
public String verifyFourelementBankManage(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager bm = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT.CLASS_NAME);
|
||||
BizObject bo = bm.createQuery("select cpt.fullname,O.mobile,O.acc_number,O.account,cpt.CERTID,cpt.CERTTYPE,O.customerid from O,jbo.app.tenwa.customer.CUSTOMER_PERSON cpt,jbo.app.tenwa.customer.CUSTOMER_INFO ci "
|
||||
+ "where O.customerid = cpt.customerid and ci.customerid = O.customerid and O.acc_type= 'Debit' and ci.customerid=:customerid")
|
||||
.setParameter("customerid", this.getCustomerid()).getSingleResult(false);
|
||||
if (bo != null) {
|
||||
//代收付签约、银行卡验证交易测试URL
|
||||
CollectAuditInfoCache cap = new CollectAuditInfoCache();
|
||||
Map<String, String> map = new HashMap<String, String>();
|
||||
map.put("ACCOUNT_NO", bo.getAttribute("acc_number").toString());//卡号
|
||||
map.put("ACCOUNT_NAME", bo.getAttribute("account").toString());//户名
|
||||
map.put("ID_TYPE", "0");//开户时的证件类型,0->身份证,默认身份证
|
||||
if (bo.getAttribute("CERTTYPE").toString().equals("Ind02")) {
|
||||
map.put("ID_TYPE", "2");// 2->护照
|
||||
}
|
||||
map.put("ID", bo.getAttribute("CERTID").toString());//开户时的证件号码
|
||||
map.put("TEL", bo.getAttribute("mobile").toString());//开户时预留的11位手机号
|
||||
//四要素
|
||||
Map<String, String> fourMsg = new HashMap<String, String>();
|
||||
try {
|
||||
fourMsg = cap.vitfyCollectManage(map);
|
||||
bm.createQuery("update O set VERIFY=:verify,VERIFY_STATUS=:verify_status where customerid=:customerid and acc_type='Debit'")
|
||||
.setParameter("verify", fourMsg.get("ERR_MSG"))
|
||||
.setParameter("verify_status", "0000".equals(fourMsg.get("RET_CODE")) ? "Y" : "N")
|
||||
.setParameter("customerid", this.getCustomerid()).executeUpdate();
|
||||
} catch (CryptException e) {
|
||||
e.printStackTrace();
|
||||
return "ERROR";
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
//业务变更是否需要重新签约验证
|
||||
public String checkSign(JBOTransaction tx) throws JBOException{
|
||||
BizObjectManager caManage = JBOFactory.getFactory().getManager(CUSTOMER_ACCOUNT.CLASS_NAME);
|
||||
BizObject ca = caManage.createQuery(" PROJECT_ID=:projectid ").setParameter("projectid", projectid).getSingleResult(false);
|
||||
if(ca!=null){
|
||||
if(account.equals(ca.getAttribute("account").getString())&&acc_number.equals(ca.getAttribute("acc_number").getString())&&bank_name.equals(ca.getAttribute("bank_name").getString())&&mobile.equals(ca.getAttribute("mobile").getString())){
|
||||
String singStatus = ca.getAttribute("sign_status").getString();
|
||||
if("Y".equals(singStatus)){
|
||||
return "Y";
|
||||
}else{
|
||||
return "N";
|
||||
}
|
||||
}else{
|
||||
return "YES";
|
||||
}
|
||||
}
|
||||
return "NULL";
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
public void setMobile(String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
public String getFlowUnid() {
|
||||
return FlowUnid;
|
||||
}
|
||||
public void setFlowUnid(String flowUnid) {
|
||||
FlowUnid = flowUnid;
|
||||
}
|
||||
|
||||
public String getBank_name() {
|
||||
return bank_name;
|
||||
}
|
||||
|
||||
public void setBank_name(String bank_name) {
|
||||
this.bank_name = bank_name;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getAcc_number() {
|
||||
return acc_number;
|
||||
}
|
||||
|
||||
public void setAcc_number(String acc_number) {
|
||||
this.acc_number = acc_number;
|
||||
}
|
||||
public String getCustomerid() {
|
||||
return customerid;
|
||||
}
|
||||
|
||||
public void setCustomerid(String customerid) {
|
||||
this.customerid = customerid;
|
||||
}
|
||||
|
||||
|
||||
public String getProjectid() {
|
||||
return projectid;
|
||||
}
|
||||
|
||||
public void setProjectid(String projectid) {
|
||||
this.projectid = projectid;
|
||||
}
|
||||
|
||||
public String getContractid() {
|
||||
return contractid;
|
||||
}
|
||||
|
||||
public void setContractid(String contractid) {
|
||||
this.contractid = contractid;
|
||||
}
|
||||
|
||||
|
||||
public String getAcc_type() {
|
||||
return acc_type;
|
||||
}
|
||||
|
||||
public void setAcc_type(String acc_type) {
|
||||
this.acc_type = acc_type;
|
||||
}
|
||||
|
||||
public String getPay_money() {
|
||||
return pay_money;
|
||||
}
|
||||
|
||||
public void setPay_money(String pay_money) {
|
||||
this.pay_money = pay_money;
|
||||
}
|
||||
return "SUCCESS";
|
||||
}
|
||||
|
||||
public String getMobile() {
|
||||
return mobile;
|
||||
}
|
||||
|
||||
public void setMobile(String mobile) {
|
||||
this.mobile = mobile;
|
||||
}
|
||||
|
||||
public String getFlowUnid() {
|
||||
return FlowUnid;
|
||||
}
|
||||
public void setFlowUnid(String flowUnid) {
|
||||
FlowUnid = flowUnid;
|
||||
}
|
||||
|
||||
public String getBank_name() {
|
||||
return bank_name;
|
||||
}
|
||||
|
||||
public void setBank_name(String bank_name) {
|
||||
this.bank_name = bank_name;
|
||||
}
|
||||
|
||||
public String getAccount() {
|
||||
return account;
|
||||
}
|
||||
|
||||
public void setAccount(String account) {
|
||||
this.account = account;
|
||||
}
|
||||
|
||||
public String getAcc_number() {
|
||||
return acc_number;
|
||||
}
|
||||
|
||||
public void setAcc_number(String acc_number) {
|
||||
this.acc_number = acc_number;
|
||||
}
|
||||
public String getCustomerid() {
|
||||
return customerid;
|
||||
}
|
||||
|
||||
public void setCustomerid(String customerid) {
|
||||
this.customerid = customerid;
|
||||
}
|
||||
|
||||
|
||||
public String getProjectid() {
|
||||
return projectid;
|
||||
}
|
||||
|
||||
public void setProjectid(String projectid) {
|
||||
this.projectid = projectid;
|
||||
}
|
||||
|
||||
public String getContractid() {
|
||||
return contractid;
|
||||
}
|
||||
|
||||
public void setContractid(String contractid) {
|
||||
this.contractid = contractid;
|
||||
}
|
||||
|
||||
|
||||
public String getAcc_type() {
|
||||
return acc_type;
|
||||
}
|
||||
|
||||
public void setAcc_type(String acc_type) {
|
||||
this.acc_type = acc_type;
|
||||
}
|
||||
|
||||
public String getPay_money() {
|
||||
return pay_money;
|
||||
}
|
||||
|
||||
public void setPay_money(String pay_money) {
|
||||
this.pay_money = pay_money;
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user