浏览代码

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

hu 6 月之前
父节点
当前提交
93326b9ace
共有 1 个文件被更改,包括 10 次插入0 次删除
  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);
             sqlFactory.addParameter_SQL("where1",where1);
     }
     }