diff --git a/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java b/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java index 32f403abb..a139296a9 100644 --- a/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java +++ b/src_tenwa/com/tenwa/customer/controller/group/CustomerGroupCompanyController.java @@ -231,7 +231,7 @@ public class CustomerGroupCompanyController { //校验经销商额度是否足够 public String checkTotal(JBOTransaction tx) throws Exception{ Conn conn = new Conn(tx); - String sql = "SELECT IFNULL(di.relines,0)-IFNULL(lcc.CLEAN_LEASE_MONEY,0) total,di.CHANNELTYPE FROM lb_contract_info lci LEFT JOIN vi_distributor_lines di ON di.distributor_no=lci.distributor_id LEFT JOIN LC_CALC_CONDITION lcc ON lcc.contract_id=lci.id WHERE lci.id=? "; + String sql = "SELECT IFNULL(di.relines,0)-IFNULL(lcc.CLEAN_LEASE_MONEY,0) total,dti.channeltype FROM lb_contract_info lci LEFT JOIN vi_distributor_lines di ON di.distributor_no=lci.distributor_id LEFT JOIN LC_CALC_CONDITION lcc ON lcc.contract_id=lci.id left join distributor_info dti on dti.distributor_no=lci.distributor_id WHERE lci.id=? "; List> results = conn.executeQuery(sql, this.contractId); String istotal = results.get(0).get("total"); String channeltype = results.get(0).get("channeltype");