Преглед на файлове

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

郭齐峰 преди 3 години
родител
ревизия
454b2f3188
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/custom/restcontroller/webmanage/sale/paybill/Paybill.java

+ 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();
         }