소스 검색

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

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