eganwu 3 лет назад
Родитель
Сommit
5935236dae
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      src/custom/restcontroller/webmanage/sale/paybill/Paybill.java

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

@@ -225,7 +225,7 @@ public class Paybill extends Controller {
     @API(title = "查询营销账户类型", apiversion = R.ID20221228085004.v1.class)
     public String queryAccountclass() throws YosException {
         Long sa_paybillid = content.getLong("sa_paybillid");
-        String[] sa_accountclassids = dbConnect.runSqlQuery("select sa_accountclassid from sa_paybilldetail where siteid='" + siteid + "' and sa_paybillid=" + sa_paybillid).toArray("sa_accountclassid");
+        String[] sa_accountclassids = dbConnect.runSqlQuery("select sa_accountclassid from sa_accountclass where siteid='" + siteid + "' and isused=1").toArray("sa_accountclassid");
         StringBuffer where = new StringBuffer(" 1=1 ");
         if (content.containsKey("where")) {
             JSONObject whereObject = content.getJSONObject("where");