Forráskód Böngészése

打款凭证过滤打款金额小于0的账户

郭齐峰 3 éve
szülő
commit
454b2f3188

+ 1 - 1
src/custom/restcontroller/webmanage/sale/paybill/Paybill.java

@@ -173,7 +173,7 @@ public class Paybill extends Controller {
         ArrayList<String> sqlList = new ArrayList<>();
         Long sa_paybillid = content.getLong("sa_paybillid");
         Rows rows = dbConnect.runSqlQuery("select sys_enterpriseid,status,billno from sa_paybill where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid);
-        Rows accountclassRows = dbConnect.runSqlQuery("select sa_accountclassid,amount from sa_paybilldetail where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid);
+        Rows accountclassRows = dbConnect.runSqlQuery("select sa_accountclassid,amount from sa_paybilldetail where siteid='" + siteid + "' and amount>0 and sa_paybillid=" + sa_paybillid);
         if (rows.isEmpty()) {
             return getErrReturnObject().setErrMsg("未选择打款凭证").toString();
         }