Quellcode durchsuchen

企业业绩目标(经销商)收款是添加账户的判断

hu vor 6 Monaten
Ursprung
Commit
93326b9ace
1 geänderte Dateien mit 10 neuen und 0 gelöschten Zeilen
  1. 10 0
      src/custom/restcontroller/sale/salestarget/enterprise.java

+ 10 - 0
src/custom/restcontroller/sale/salestarget/enterprise.java

@@ -212,6 +212,16 @@ public class enterprise extends Controller {
 
                 }
             }
+            if(StringUtils.isNotBlank(sa_accountclassids)){
+                if(isJSONArray(sa_accountclassids)){
+                    JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
+                    if(!jsonArrayResult.isEmpty()){
+                        where1=where1+ " and sa_accountclassid in"+jsonArrayResult;
+                        where1 = where1.replace("[", "(").replace("]", ")");
+                    }
+
+                }
+            }
 
             sqlFactory.addParameter_SQL("where1",where1);
     }