|
@@ -114,7 +114,7 @@ public class personnelstatistics extends Controller {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
int year = cal.get(Calendar.YEAR);
|
|
|
|
|
|
- Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators,statisticaldimension FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "' and targettype = '人员目标'");
|
|
|
+ Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators,statisticaldimension,sa_accountclassids FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "' and targettype = '人员目标'");
|
|
|
|
|
|
SQLFactory hrsqlFactory = new SQLFactory(this, "业务员列表查询");
|
|
|
hrsqlFactory.addParameter("siteid", siteid);
|
|
@@ -129,10 +129,13 @@ public class personnelstatistics extends Controller {
|
|
|
String assessmentindicators="";
|
|
|
//统计维度
|
|
|
String statisticaldimension="";
|
|
|
+ //账户
|
|
|
+ String sa_accountclassids="";
|
|
|
if (billRows.isNotEmpty()) {
|
|
|
sa_salestargetbillid=billRows.get(0).getLong("sa_salestargetbillid");
|
|
|
assessmentindicators=billRows.get(0).getString("assessmentindicators");
|
|
|
statisticaldimension=billRows.get(0).getString("statisticaldimension");
|
|
|
+ sa_accountclassids=billRows.get(0).getString("sa_accountclassids");
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -197,14 +200,23 @@ public class personnelstatistics extends Controller {
|
|
|
Rows actualRows = new Rows();
|
|
|
//开票
|
|
|
if (assessmentindicators .equals("开票")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-开票");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(statisticaldimension.equals("订单审核")){
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='审核'");
|
|
|
+ where1=where1+" and t2.status='审核'";
|
|
|
}else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='提交'");
|
|
|
+ where1=where1+" and t2.status='提交'";
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
@@ -212,47 +224,66 @@ public class personnelstatistics extends Controller {
|
|
|
}
|
|
|
//订单
|
|
|
if (assessmentindicators .equals("订单")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-订单");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(statisticaldimension.equals("订单审核")){
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='审核'");
|
|
|
+ where1=where1+" and t2.status='审核'";
|
|
|
}else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='提交'");
|
|
|
+ where1=where1+" and t2.status='提交'";
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
}
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
//出货
|
|
|
if (assessmentindicators .equals("出货")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-出货");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
- sqlFactory.addParameter("statisticaldimension", statisticaldimension);
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
//收款
|
|
|
if (assessmentindicators .equals("收款")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-收款");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
- if(StringUtils.isBlank(statisticaldimension)){
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
- }else{
|
|
|
+ if(StringUtils.isNotBlank(statisticaldimension)){
|
|
|
if(isJSONArray(statisticaldimension)){
|
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(statisticaldimension);
|
|
|
- String where1="t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult;
|
|
|
+ where1= where1+ " and (t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult+")";
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t1.sa_accountclassid in"+jsonArrayResult;
|
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
- sqlFactory.addParameter_SQL("where1", where1);
|
|
|
- }else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
@@ -313,7 +344,7 @@ public class personnelstatistics extends Controller {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
int year = cal.get(Calendar.YEAR);
|
|
|
|
|
|
- Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators,statisticaldimension FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "' and targettype = '人员目标'");
|
|
|
+ Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators,statisticaldimension,sa_accountclassids FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "' and targettype = '人员目标'");
|
|
|
|
|
|
SQLFactory hrsqlFactory = new SQLFactory(this, "业务员列表查询");
|
|
|
hrsqlFactory.addParameter("siteid", siteid);
|
|
@@ -333,10 +364,13 @@ public class personnelstatistics extends Controller {
|
|
|
String assessmentindicators="";
|
|
|
//统计维度
|
|
|
String statisticaldimension="";
|
|
|
+ //账户
|
|
|
+ String sa_accountclassids="";
|
|
|
if (billRows.isNotEmpty()) {
|
|
|
sa_salestargetbillid=billRows.get(0).getLong("sa_salestargetbillid");
|
|
|
assessmentindicators=billRows.get(0).getString("assessmentindicators");
|
|
|
statisticaldimension=billRows.get(0).getString("statisticaldimension");
|
|
|
+ sa_accountclassids=billRows.get(0).getString("sa_accountclassids");
|
|
|
}
|
|
|
|
|
|
/*
|
|
@@ -401,14 +435,23 @@ public class personnelstatistics extends Controller {
|
|
|
Rows actualRows = new Rows();
|
|
|
//开票
|
|
|
if (assessmentindicators .equals("开票")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-开票");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(statisticaldimension.equals("订单审核")){
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='审核'");
|
|
|
+ where1=where1+" and t2.status='审核'";
|
|
|
}else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='提交'");
|
|
|
+ where1=where1+" and t2.status='提交'";
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
}
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
@@ -416,46 +459,66 @@ public class personnelstatistics extends Controller {
|
|
|
}
|
|
|
//订单
|
|
|
if (assessmentindicators .equals("订单")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-订单");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(statisticaldimension.equals("订单审核")){
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='审核'");
|
|
|
+ where1=where1+" and t2.status='审核'";
|
|
|
}else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='提交'");
|
|
|
+ where1=where1+" and t2.status='提交'";
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
//出货
|
|
|
if (assessmentindicators .equals("出货")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-出货");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
//收款
|
|
|
if (assessmentindicators .equals("收款")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-收款");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
- if(StringUtils.isBlank(statisticaldimension)){
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
- }else{
|
|
|
+ if(StringUtils.isNotBlank(statisticaldimension)){
|
|
|
if(isJSONArray(statisticaldimension)){
|
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(statisticaldimension);
|
|
|
- String where1="t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult;
|
|
|
+ where1= where1+ " and (t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult+")";
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t1.sa_accountclassid in"+jsonArrayResult;
|
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
- sqlFactory.addParameter_SQL("where1", where1);
|
|
|
- }else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
@@ -509,16 +572,19 @@ public class personnelstatistics extends Controller {
|
|
|
public String queryList() throws YosException {
|
|
|
//年份
|
|
|
Long sa_salestargetbillid = content.getLong("sa_salestargetbillid");
|
|
|
- Rows billRows = dbConnect.runSqlQuery("SELECT assessmentindicators,year,statisticaldimension FROM sa_salestargetbill WHERE sa_salestargetbillid=" + sa_salestargetbillid + " AND siteid ='" + siteid + "'");
|
|
|
+ Rows billRows = dbConnect.runSqlQuery("SELECT assessmentindicators,year,statisticaldimension,sa_accountclassids FROM sa_salestargetbill WHERE sa_salestargetbillid=" + sa_salestargetbillid + " AND siteid ='" + siteid + "'");
|
|
|
|
|
|
//考核指标类型
|
|
|
String assessmentindicators = "";
|
|
|
//统计维度
|
|
|
String statisticaldimension="";
|
|
|
+ //账户
|
|
|
+ String sa_accountclassids="";
|
|
|
long year = 2023;
|
|
|
if (billRows.isNotEmpty()) {
|
|
|
assessmentindicators=billRows.get(0).getString("assessmentindicators");
|
|
|
statisticaldimension=billRows.get(0).getString("statisticaldimension");
|
|
|
+ sa_accountclassids=billRows.get(0).getString("sa_accountclassids");
|
|
|
year=billRows.get(0).getLong("year");
|
|
|
}
|
|
|
|
|
@@ -596,14 +662,23 @@ public class personnelstatistics extends Controller {
|
|
|
Rows actualRows = new Rows();
|
|
|
//开票
|
|
|
if (assessmentindicators .equals("开票")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-开票");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(statisticaldimension.equals("订单审核")){
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='审核'");
|
|
|
+ where1=where1+" and t2.status='审核'";
|
|
|
}else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='提交'");
|
|
|
+ where1=where1+" and t2.status='提交'";
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
@@ -611,50 +686,71 @@ public class personnelstatistics extends Controller {
|
|
|
}
|
|
|
//订单
|
|
|
if (assessmentindicators .equals("订单")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-订单");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
if(statisticaldimension.equals("订单审核")){
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='审核'");
|
|
|
+ where1=where1+" and t2.status='审核'";
|
|
|
}else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "t2.status='提交'");
|
|
|
+ where1=where1+" and t2.status='提交'";
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
//出货
|
|
|
if (assessmentindicators .equals("出货")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-出货");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t2.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
//收款
|
|
|
if (assessmentindicators .equals("收款")) {
|
|
|
+ String where1 =" 1=1 ";
|
|
|
sqlFactory = new SQLFactory(this, "人员目标统计-收款");
|
|
|
sqlFactory.addParameter("sa_salestargetbillid", sa_salestargetbillid);
|
|
|
sqlFactory.addParameter_SQL("where", where);
|
|
|
- if(StringUtils.isBlank(statisticaldimension)){
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
- }else{
|
|
|
+ if(StringUtils.isNotBlank(statisticaldimension)){
|
|
|
if(isJSONArray(statisticaldimension)){
|
|
|
JSONArray jsonArrayResult = JSONArray.parseArray(statisticaldimension);
|
|
|
- String where1="t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult;
|
|
|
+ where1= where1+ " and (t1.class in"+jsonArrayResult+" or t1.subclass in"+jsonArrayResult+")";
|
|
|
where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
- sqlFactory.addParameter_SQL("where1", where1);
|
|
|
- }else{
|
|
|
- sqlFactory.addParameter_SQL("where1", "1=1");
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
+ if(StringUtils.isNotBlank(sa_accountclassids)){
|
|
|
+ if(isJSONArray(sa_accountclassids)){
|
|
|
+ JSONArray jsonArrayResult = JSONArray.parseArray(sa_accountclassids);
|
|
|
+ where1=where1+ " and t1.sa_accountclassid in"+jsonArrayResult;
|
|
|
+ where1 = where1.replace("[", "(").replace("]", ")");
|
|
|
+ }
|
|
|
+ }
|
|
|
+ sqlFactory.addParameter_SQL("where1",where1);
|
|
|
sqlFactory.addParameter("siteid", siteid);
|
|
|
sqlFactory.addParameter("year", year);
|
|
|
actualRows = dbConnect.runSqlQuery(sqlFactory);
|
|
|
}
|
|
|
+
|
|
|
if(!saleareas.isEmpty() && saleareas.size()==1){
|
|
|
for (Row row :actualRows) {
|
|
|
if(row.getLong("parentid")==0){
|