|
|
|
@ -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 1:填报,2:转发,3:即填报又转发
|
|
|
|
|
* @param limit 每页多少个
|
|
|
|
|
* @param page 第几页
|
|
|
|
|
* @param bureau_id 单位ID
|
|
|
|
|
* @param is_finish 是不是已完成
|
|
|
|
|
* @param keyword 搜索关键字
|
|
|
|
|
* @param is_finish 0:未填报,1:已填报,-1:全部
|
|
|
|
|
* @param fill_type_id 1:填报,2:转发,3:即填报又转发
|
|
|
|
|
* @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);
|
|
|
|
|