1.新增贴息风险预警,修改贴息问题。

2.网银接口选择客户时,可以选法人和自然人。
This commit is contained in:
zhangbb 2018-11-06 11:17:41 +08:00
parent 2461f4ffa4
commit 05070047c3
4 changed files with 47 additions and 8 deletions

View File

@ -93,7 +93,7 @@
}
//选择承租人
function selectCust(){
AsDialog.OpenSelector("SelectCustomer","","dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
AsDialog.OpenSelector("SelectCustomerBank","","dialogWidth=" + parseInt(window.screen.width * 0.9) + "px dialogHeight=" + parseInt(window.screen.height * 0.6) + "px",function(sReturn){
if(!sReturn||sReturn=="_CANCEL_"){
//alert(getHtmlMessage('1'));//请选择一条信息!
return;

View File

@ -17,18 +17,15 @@ import com.tenwa.flow.baseBussion.BaseBussiness;
public class DeleteDiscountOccupy extends BaseBussiness {
@Override
public Object run(Transaction Sqlca) throws Exception {
//this.initBussinessParam(Sqlca);
String projectId=this.getAttribute("ProjectId").toString();
this.initBussinessParam(Sqlca);
String projectId = this.getAttribute("ProjectId").toString();
BizObjectManager ldoManage = JBOFactory.getBizObjectManager(LB_DISCOUNT_OCCUPY.CLASS_NAME,Sqlca);
BizObject ldo = ldoManage.createQuery("project_id=:projectid").setParameter("projectid", projectId).getSingleResult(true);
String sMessage="";
if(ldo!=null){
ldoManage.deleteObject(ldo);
sMessage="true";
}else{
sMessage="false";
}
String sMessage="true";
return sMessage;
}
}

View File

@ -41,7 +41,7 @@ public class InsertDiscountOccupy extends BaseBussiness {
+ " values (replace(uuid(),'-',''), '" + productId + "', '" + flowUnid + "', '" + projectId + "',"
+ " " + discountValue + ", '" + curUserID + "', '" + user.getOrgID() + "', replace(now(),'-','/'))"));
} else {
throw new BusinessException("产品额度已用完");
// throw new BusinessException("产品额度已用完");
}
}
}

View File

@ -0,0 +1,42 @@
package com.tenwa.lease.flow.project.commcheck;
import java.util.Map;
import jbo.app.tenwa.customer.CUSTOMER_INFO_TEMP;
import com.amarsoft.app.util.ProductParamUtil;
import com.amarsoft.are.jbo.BizObject;
import com.amarsoft.are.jbo.BizObjectManager;
import com.amarsoft.are.jbo.JBOFactory;
import com.amarsoft.awe.util.SqlObject;
import com.amarsoft.awe.util.Transaction;
import com.tenwa.template.check.DefaultBussinessCheck;
public class DiscountCheck extends DefaultBussinessCheck{
@Override
public Object run(Transaction Sqlca) throws Exception {
String flowunid=this.getAttribute("ObjectNo").toString();
BizObjectManager proBO = JBOFactory.getBizObjectManager(jbo.com.tenwa.lease.comm.LB_PROJECT_INFO_TEMP.CLASS_NAME, Sqlca);
BizObject pro = proBO.createQuery("flowunid=:flowunid").setParameter("flowunid", flowunid).getSingleResult(false);
String productId = pro.getAttribute("PRODUCT_ID").toString();
Map<String, String> discount = ProductParamUtil.getProductComponentAllParameters(productId, "PRD0315", "DISCOUNT");
if(!discount.isEmpty() && !"".equals(discount.get("DISCOUNT_ALL")) && !"".equals(discount.get("CostType08"))) {
synchronized (this) {
String discountAll = discount.get("DISCOUNT_ALL");
String discountValue = discount.get("CostType08");
Transaction tran = Transaction.createTransaction(Sqlca);
String result = tran.getString(new SqlObject("select case when " + discountAll + "-ifnull(sum(discount), 0) >= " + discountValue + " then '0' else '1' end from lb_discount_occupy where product_id = '" +productId+ "'"));
if("0".equals(result)) {
putMsg("ͨ¹ý");
setPass(true);
} else {
putMsg("ÌùÏ¢¶î¶ÈÒÑÓÃÍê");
setPass(false);
}
}
}
return null;
}
}