main
黄海 2 years ago
parent 06c1f83b07
commit b2e27e5f48

@ -694,7 +694,7 @@ public class CollectController extends Controller {
@Before({GET.class})
@IsLoginInterface({})
@LayUiPageInfoInterface({"page", "limit"})
public void getBureauList(int org_type_id, String org_name, int page, int limit, int query_type_id) {
public void getBureauList(int org_type_id, String org_name, int page, int limit, int query_type_id, int exclude_self) {
//操作人员
String person_id = SessionKit.get(getRequest(), getResponse(), "person_id");
//根据人员ID获取人员所在的单位ID
@ -704,10 +704,10 @@ public class CollectController extends Controller {
if (query_type_id == 2) {//查登录人员所在县区
BaseModel bm = new BaseModel();
String area_id = bm.getOrgInfoById(bureau_id).getStr("area_id");
Page<Record> list = cm.getBureauList(area_id, org_type_id, org_name, page, limit);
Page<Record> list = cm.getBureauList(area_id, org_type_id, org_name, exclude_self,bureau_id,page, limit);
renderJson(CommonUtil.renderJsonForLayUI(list));
} else if (query_type_id == 1 || query_type_id==0) {//查全市
Page<Record> list = cm.getBureauList(org_type_id, org_name, page, limit);
} else if (query_type_id == 1 || query_type_id == 0) {//查全市
Page<Record> list = cm.getBureauList(org_type_id, org_name,exclude_self,bureau_id, page, limit);
renderJson(CommonUtil.renderJsonForLayUI(list));
}
}

@ -788,7 +788,7 @@ public class CollectModel {
* @param org_type_id
* @return
*/
public Page<Record> getBureauList(String area_id, int org_type_id, String org_name, int page, int limit) {
public Page<Record> getBureauList(String area_id, int org_type_id, String org_name, int exclude_self, String bureau_id, int page, int limit) {
Kv kv = Kv.create();
if (org_type_id != -1) kv.set("org_type_id", org_type_id);
if (StrKit.isBlank(area_id)) {
@ -798,14 +798,15 @@ public class CollectModel {
} else {
kv.set("area_id", area_id);
}
if (exclude_self == 1) kv.set("bureau_id", bureau_id);
if (!StrKit.isBlank(org_name)) kv.set("org_name", org_name);
SqlPara sqlPara = Db.getSqlPara("Collect.getBureauList", kv);
Page<Record> pageRecord = Db.paginate(page, limit, sqlPara);
return pageRecord;
}
public Page<Record> getBureauList(int org_type_id, String org_name, int page, int limit) {
return getBureauList(null, org_type_id, org_name, page, limit);
public Page<Record> getBureauList(int org_type_id, String org_name, int exclude_self, String bureau_id, int page, int limit) {
return getBureauList(null, org_type_id, org_name, exclude_self, bureau_id, page, limit);
}
/**
@ -985,13 +986,13 @@ public class CollectModel {
/**
*
*
* @param bureau_id ID
* @param is_finish
* @param keyword
* @param is_finish 0:1-1
* @param fill_type_id 123
* @param limit
* @param page
* @param bureau_id ID
* @param is_finish
* @param keyword
* @param is_finish 0:1-1
* @param fill_type_id 123
* @param limit
* @param page
* @param forward_progress
*/
public Page<Record> viewJobList(String bureau_id, String keyword, int is_finish, int page, int limit, int fill_type_id, int forward_progress) {
@ -1474,9 +1475,9 @@ public class CollectModel {
record.set("job_id", child_job_id);
record.set("bureau_id", s);
record.set("is_finish", 0);
record.set("fill_type_id",1);
record.set("parent_id",job_id);
record.set("forward_progress",1);//已转发
record.set("fill_type_id", 1);
record.set("parent_id", job_id);
record.set("forward_progress", 1);//已转发
list.add(record);
}
Db.batchSave("t_collect_job_target", list, 100);

@ -39,6 +39,9 @@
#if(area_id)
and area_id=#para(area_id)
#end
#if(bureau_id)
and org_id<>#para(bureau_id)
#end
order by org_name
#end
-- 任务列表

Loading…
Cancel
Save