|
@@ -359,7 +359,7 @@ public class coursewaretesthead extends Controller {
|
|
|
return getSucReturnObject().toString();
|
|
return getSucReturnObject().toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- @API(title = "员工列表查询", apiversion = R.ID20240325110702.v1.class)
|
|
|
|
|
|
|
+ @API(title = "选择员工列表", apiversion = R.ID20240325110702.v1.class)
|
|
|
public String query_hrList() throws YosException {
|
|
public String query_hrList() throws YosException {
|
|
|
/*
|
|
/*
|
|
|
过滤条件设置
|
|
过滤条件设置
|
|
@@ -400,7 +400,7 @@ public class coursewaretesthead extends Controller {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
- @API(title = "营销区域查询经销商", apiversion = R.ID20240325130602.v1.class)
|
|
|
|
|
|
|
+ @API(title = "选择营销区域查询经销商成员", apiversion = R.ID20240325130602.v1.class)
|
|
|
public String query_agent() throws YosException, IOException {
|
|
public String query_agent() throws YosException, IOException {
|
|
|
/*
|
|
/*
|
|
|
过滤条件设置
|
|
过滤条件设置
|
|
@@ -461,5 +461,49 @@ public class coursewaretesthead extends Controller {
|
|
|
return getSucReturnObject().setData(rows).toString();
|
|
return getSucReturnObject().setData(rows).toString();
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @API(title = "(部门)人员列表", apiversion = R.ID20240325134302.v1.class)
|
|
|
|
|
+ public String queryhrList() throws YosException {
|
|
|
|
|
+
|
|
|
|
|
+ Long sat_courseware_testheadid = content.getLongValue("sat_courseware_testheadid");
|
|
|
|
|
+ QuerySQL querySQL=SQLFactory.createQuerySQL(this,"sys_hr",
|
|
|
|
|
+ "hrid","hrcode","name","phonenumber","position","userid")
|
|
|
|
|
+ .setTableAlias("t1");
|
|
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left,"sys_department","t2","t1.siteid = t2.siteid and t1.departmentid = t2.departmentid",
|
|
|
|
|
+ "depname","depfullname");
|
|
|
|
|
+ querySQL.setWhere(" exists(select 1 from sat_courseware_test where userid = t1.userid and sat_courseware_testheadid=" + sat_courseware_testheadid + " and siteid='" + siteid + "' )");
|
|
|
|
|
+ Rows rows = querySQL.query();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ @API(title = "(区域)人员列表", apiversion = R.ID20240325135402.v1.class)
|
|
|
|
|
+ public String queryagent() throws YosException, IOException {
|
|
|
|
|
+
|
|
|
|
|
+ Long sat_courseware_testheadid = content.getLongValue("sat_courseware_testheadid");
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ QuerySQL querySQL = SQLFactory.createQuerySQL(this, "sys_enterprise_hr",
|
|
|
|
|
+ "userid","name","position")
|
|
|
|
|
+ .setTableAlias("t1");
|
|
|
|
|
+ querySQL.addJoinTable(JOINTYPE.inner, "sys_enterprise", "t2", "t1.siteid = t2.siteid and t1.sys_enterpriseid = t2.sys_enterpriseid",
|
|
|
|
|
+ "enterprisename");
|
|
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sa_agents", "t3", "t3.sys_enterpriseid=t1.sys_enterpriseid and t3.siteid=t1.siteid",
|
|
|
|
|
+ "agentnum");
|
|
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sys_enterprise_tradefield", "t4", "t4.sys_enterpriseid=t1.sys_enterpriseid and t3.siteid=t1.siteid");
|
|
|
|
|
+ querySQL.addJoinTable(JOINTYPE.left, "sa_salearea", "t5", "t5.sa_saleareaid=t4.sa_saleareaid and t5.siteid=t4.siteid",
|
|
|
|
|
+ "areaname");
|
|
|
|
|
+ querySQL.setWhere("t1.siteid", siteid);
|
|
|
|
|
+ querySQL.setWhere(" exists(select 1 from sat_courseware_test where userid = t1.userid and sat_courseware_testheadid=" + sat_courseware_testheadid + " and siteid='" + siteid + "' )");
|
|
|
|
|
+ querySQL.setOrderBy(pageSorting);
|
|
|
|
|
+ querySQL.setPage(pageSize, pageNumber);
|
|
|
|
|
+ Rows rows = querySQL.query();
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ return getSucReturnObject().setData(rows).toString();
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
}
|
|
}
|