经销商额度校验
This commit is contained in:
parent
f043641dd0
commit
5057404ef7
@ -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<Map<String, String>> results = conn.executeQuery(sql, this.contractId);
|
||||
String istotal = results.get(0).get("total");
|
||||
String channeltype = results.get(0).get("channeltype");
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user