Parcourir la source

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

hu il y a 6 mois
Parent
commit
93326b9ace
1 fichiers modifiés avec 10 ajouts et 0 suppressions
  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);
     }