Просмотр исходного кода

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

郭齐峰 3 лет назад
Родитель
Сommit
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();
         }