@@ -241,8 +249,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
(select count(1) from t_user u where u.village in (select re.relation_id from t_task_relation_info re where re.task_id = t.id and re.type = '1')),
(select count(1) from t_user u WHERE u.task_type = t.task_type and u.village in (select re.relation_id from t_task_relation_info re where re.task_id = t.id and re.type = '1'))
)
when 3 then (select count(1) from t_industry)
else (select count(1) from t_business)
when 3 then (select count(1) from t_industry ind where ind.task_type = t.check_type)
else (select count(1) from t_business busi where busi.task_type = t.business_type)
end)as totalInspectNum
FROM
t_task t
...
...
@@ -254,9 +262,14 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"