main
黄海 2 years ago
parent a22b71209c
commit fb154b0bdc

@ -1,5 +0,0 @@
# 按任务发起人分类
### 面向单位的任务
### 一、市级XXX装备管理干事
#### 1、

@ -2025,26 +2025,30 @@ public class CollectModel {
//写任务分派表
List<Record> list = new ArrayList<>();
int fill_type_id;
int fill_type_id = 1;
/**
--
:
(1)->-> fill_type_id=1
(2)->-> fill_type_id=2
(3)-> fill_type_id=1
fill_type_id:123+
123+
(1) + target_type_id=2
1.1 fill_type_id=2
1.2 fill_type_id=1
(2) + target_type_id=1
2.1 fill_type_id=1
(3) +
fill_type_id=1
(4) +
fill_type_id=1
*/
if (publish_role_id == 268) {//县区教育局办公室干事
if (target_type_id == 1) {//单位
fill_type_id = 1;
} else {//人员
fill_type_id = 2;
}
} else fill_type_id = 1;
if (forPerson) fill_type_id = 1;
//县区教育局办公室干事+面向人员填报的任务+下一级不是人员(下一级是单位)
if (publish_role_id == 268 && target_type_id == 2 && !forPerson) {
fill_type_id = 2;
}
for (String s : targetSet) {
Record record = new Record();

@ -7,7 +7,8 @@
(select count(1) from t_collect_job_sheet as t2 where t2.job_id=t1.job_id and t2.is_check=1) as already_check_sheet,
(select count(1) from t_collect_job_sheet as t2 where t2.job_id=t1.job_id) as all_sheet,
(select count(1) from t_collect_job_target as t2 where t2.job_id=t1.job_id and t2.fill_type_id in (2,3)) as forward_count, --
(select count(1) from t_collect_job_target as t2 where t2.job_id=t1.job_id and t2.forward_progress_xiaji=2) as forward_finish_count --
(select count(1) from t_collect_job_target as t2 where t2.job_id=t1.job_id and
((t2.forward_progress_xiaji=2) or(t2.forward_progress_bendanwei=2))) as forward_finish_count --
from t_collect_job as t1
where t1.publish_role_id = #para(publish_role_id) and t1.parent_id=-1 and t1.bureau_id=#para(bureau_id)
#if(job_name)

Loading…
Cancel
Save