Commit a7970987 authored by wangxl's avatar wangxl

111

parent ebe704ec
......@@ -23,15 +23,16 @@
</select>
<select id="getMemCountById" parameterType="java.lang.String" resultType="com.yiboshi.science.param.dto.ComProjectMembersDTO">
select IFNULL(count(*),0)mem_count,
-- IFNULL(sum(case when b.gb_Code='duty_h' then 1 else 0 end),0)mem_high_count,
-- IFNULL(sum(case when b.gb_Code='duty_m' then 1 else 0 end),0)mem_middle_count,
-- IFNULL(sum(case when b.gb_Code='duty_l' then 1 else 0 end),0)mem_low_count,
IFNULL(sum(case when d.gb_Code='1' then 1 else 0 end),0)mem_high_count,
IFNULL(sum(case when d.gb_Code='2' then 1 else 0 end),0)mem_middle_count,
IFNULL(sum(case when d.gb_Code='3' then 1 else 0 end),0)mem_low_count,
IFNULL(sum(case when c.gb_Code='1' then 1 else 0 end),0)mem_bsh_count,
IFNULL(sum(case when c.gb_Code='2' then 1 else 0 end),0)mem_bs_count,
IFNULL(sum(case when c.gb_Code='3' then 1 else 0 end),0)mem_ss_count,
IFNULL(sum(case when c.gb_Code='4' then 1 else 0 end),0)mem_xs_count
from com_project_members a
-- left join system_parameter b on a.duty=b.id and b.type_id=55
left join system_parameter b on a.title=b.id and and b.type_id=7
left join system_parameter d on b.parent_id=d.id and and d.type_id=6
left join system_parameter c on a.degree=c.id and c.type_id=9
where object_id=#{objectId}
</select>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment