|
@@ -293,10 +293,10 @@ public class personnelstatistics extends Controller {
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(StringUtils.isNotBlank(statisticaldimension)){
|
|
if(StringUtils.isNotBlank(statisticaldimension)){
|
|
|
- if(isJSONArray(statisticaldimension)){
|
|
|
|
|
- JSONArray jsonArrayResult = JSONArray.parseArray(statisticaldimension);
|
|
|
|
|
- if(!jsonArrayResult.isEmpty()){
|
|
|
|
|
- where1= where1+ " and (t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult+")";
|
|
|
|
|
|
|
+ if(isJSONObject(statisticaldimension)){
|
|
|
|
|
+ JSONObject jsonObjectResult = JSONObject.parseObject(statisticaldimension);
|
|
|
|
|
+ if(!jsonObjectResult.isEmpty()){
|
|
|
|
|
+ where1= where1+ " and (t1.class in"+ jsonObjectResult.get("type")+" or t1.subclass in"+ jsonObjectResult.get("mx")+")";
|
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -543,15 +543,16 @@ public class personnelstatistics extends Controller {
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(StringUtils.isNotBlank(statisticaldimension)){
|
|
if(StringUtils.isNotBlank(statisticaldimension)){
|
|
|
- if(isJSONArray(statisticaldimension)){
|
|
|
|
|
- JSONArray jsonArrayResult = JSONArray.parseArray(statisticaldimension);
|
|
|
|
|
- if(!jsonArrayResult.isEmpty()){
|
|
|
|
|
- where1= where1+ " and (t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult+")";
|
|
|
|
|
|
|
+ if(isJSONObject(statisticaldimension)){
|
|
|
|
|
+ JSONObject jsonObjectResult = JSONObject.parseObject(statisticaldimension);
|
|
|
|
|
+ if(!jsonObjectResult.isEmpty()){
|
|
|
|
|
+ where1= where1+ " and (t1.class in"+ jsonObjectResult.get("type")+" or t1.subclass in"+ jsonObjectResult.get("mx")+")";
|
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
if(isJSONArray(sa_accountclassids)){
|
|
if(isJSONArray(sa_accountclassids)){
|
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
@@ -784,15 +785,16 @@ public class personnelstatistics extends Controller {
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(StringUtils.isNotBlank(statisticaldimension)){
|
|
if(StringUtils.isNotBlank(statisticaldimension)){
|
|
|
- if(isJSONArray(statisticaldimension)){
|
|
|
|
|
- JSONArray jsonArrayResult = JSONArray.parseArray(statisticaldimension);
|
|
|
|
|
- if(!jsonArrayResult.isEmpty()){
|
|
|
|
|
- where1= where1+ " and (t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult+")";
|
|
|
|
|
|
|
+ if(isJSONObject(statisticaldimension)){
|
|
|
|
|
+ JSONObject jsonObjectResult = JSONObject.parseObject(statisticaldimension);
|
|
|
|
|
+ if(!jsonObjectResult.isEmpty()){
|
|
|
|
|
+ where1= where1+ " and (t1.class in"+ jsonObjectResult.get("type")+" or t1.subclass in"+ jsonObjectResult.get("mx")+")";
|
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
if(isJSONArray(sa_accountclassids)){
|
|
if(isJSONArray(sa_accountclassids)){
|
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|