|
|
@@ -576,11 +576,12 @@ public class agents extends Controller {
|
|
|
sql = sql + " and isorder=1";
|
|
|
}
|
|
|
rows = dbConnect.runSqlQuery(sql);
|
|
|
- Rows balanceRows = dbConnect.runSqlQuery("SELECT sa_accountbalanceid,balance, creditquota,changeuserid,changeby,changedate,sa_accountclassid from sa_accountbalance WHERE siteid = '" + siteid + "' and sys_enterpriseid = " + sys_enterpriseid);
|
|
|
+ Rows balanceRows = dbConnect.runSqlQuery("SELECT sa_accountbalanceid,balance,ifnull(discountamount,0) discountamount,creditquota,changeuserid,changeby,changedate,sa_accountclassid from sa_accountbalance WHERE siteid = '" + siteid + "' and sys_enterpriseid = " + sys_enterpriseid);
|
|
|
|
|
|
for (Row row : rows) {
|
|
|
row.put("sa_accountbalanceid", "");
|
|
|
row.put("balance", "0");
|
|
|
+ row.put("discountamount", "0");
|
|
|
row.put("creditquota", "0");
|
|
|
row.put("changeuserid", "");
|
|
|
row.put("changeby", "");
|