@@ -184,7 +184,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
COUNT(p.id) AS isjian,
</if>
CASE t.type
WHEN 1 THEN (SELECT COUNT(us.id) FROM t_user us WHERE us.task_type = t.task_type)
WHEN 1 THEN (SELECT COUNT(us.id) FROM t_user us WHERE us.task_type = t.task_type and us.village in (SELECT re.relation_id FROM t_task_relation_info re WHERE re.task_id = t.id and re.type = '1' ))
WHEN 2 THEN (SELECT COUNT(id) FROM t_business)
ELSE (SELECT COUNT(id) FROM t_industry)
END AS allnum
...
...
@@ -259,7 +259,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
@@ -75,7 +75,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<iftest="community != null "> and c.id = #{community}</if>
<iftest="position != null and position != ''"> and u.position = #{position}</if>
<iftest="taskType != null and taskType != ''"> and u.task_type = #{taskType}</if>
<iftest="userInfo != null and userInfo != ''"> and (u.username like concat('%', #{userInfo}, '%') or u.usernum like concat('%', #{userInfo}, '%') or u.address like concat('%', #{userInfo}, '%'))</if>
<iftest="userInfo != null and userInfo != ''"> and (u.username like concat('%', #{userInfo}, '%') or u.meternum like concat('%', #{userInfo}, '%') or u.address like concat('%', #{userInfo}, '%'))</if>
<iftest="meterCompany != null and meterCompany != ''"> and u.meter_company = #{meterCompany}</if>
<iftest="meterType != null and meterType != ''"> and u.meter_type = #{meterType}</if>
<iftest="meternum != null and meternum != ''"> and u.meternum = #{meternum}</if>