|
@@ -113,7 +113,7 @@ public class personnelstatistics extends Controller {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
int year = cal.get(Calendar.YEAR);
|
|
|
|
|
|
- Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "'");
|
|
|
+ Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "' and targettype = '人员目标'");
|
|
|
|
|
|
SQLFactory hrsqlFactory = new SQLFactory(this, "业务员列表查询");
|
|
|
hrsqlFactory.addParameter("siteid", siteid);
|
|
@@ -282,7 +282,7 @@ public class personnelstatistics extends Controller {
|
|
|
Calendar cal = Calendar.getInstance();
|
|
|
int year = cal.get(Calendar.YEAR);
|
|
|
|
|
|
- Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "'");
|
|
|
+ Rows billRows = dbConnect.runSqlQuery("SELECT sa_salestargetbillid,assessmentindicators FROM sa_salestargetbill WHERE year="+year+" AND siteid ='" + siteid + "' and targettype = '人员目标'");
|
|
|
|
|
|
SQLFactory hrsqlFactory = new SQLFactory(this, "业务员列表查询");
|
|
|
hrsqlFactory.addParameter("siteid", siteid);
|