main
黄海 2 years ago
parent 85e8146e72
commit a8167a5c7d

@ -1045,7 +1045,7 @@ public class CollectModel {
else if (fill_type_id == 2) kv.set("fill_type_id_2", 1);
else if (fill_type_id == 3) kv.set("fill_type_id_3", 1);
SqlPara sqlPara = Db.getSqlPara("Collect.listFilledJob", kv);
SqlPara sqlPara = Db.getSqlPara("Collect.viewJob", kv);
Page<Record> pageRecord = Db.paginate(page, limit, sqlPara);
for (Record record : pageRecord.getList()) {
if (record.getStr("telephone") == null || record.getStr("telephone").trim().equals("-1"))

@ -66,11 +66,15 @@
order by t1.job_id desc
#end
-- 任务发布者,查看发布的任务填充情况
#sql("listFilledJob")
#sql("viewJob")
select t1.*,t2.org_name as bureau_name,
t3.person_name as person_name,
t3.telephone as telephone,
t3.email as email
t3.email as email,
(select count(1) from t_collect_job_target as t2 inner join t_collect_job as t3 on t2.job_id=t3.job_id where t2.bureau_id=t1.bureau_id and t3.parent_id=t1.job_id)
as forward_count, -- 县区教育局转发给了多少个单位
(select count(1) from t_collect_job_target as t2 inner join t_collect_job as t3 on t2.job_id=t3.job_id where t2.bureau_id=t1.bureau_id and t3.parent_id=t1.job_id and t2.is_finish=1)
as forward_fill_count -- 县区教育局转发给的单位完成了多少个填报工作
from t_collect_job_target as t1
inner join t_base_organization as t2 on t1.bureau_id=t2.org_id
left join v_collect_xbgs as t3 on t1.bureau_id=t3.bureau_id

Loading…
Cancel
Save