Kaynağa Gözat

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

hu 6 ay önce
ebeveyn
işleme
93326b9ace

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