全所统计

This commit is contained in:
zhangqinlin
2021-09-26 18:48:36 +08:00
parent c668d909c6
commit 1f77d2580c
13 changed files with 172 additions and 146 deletions
@@ -16,8 +16,8 @@
SELECT pe.id as id,pt.name as peopleName,pm.company_name as companyName,pt.post as post,pt.phone as phone ,pe.name as name,pm.id as childrenId
from
pay_case_committee pe
left JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)
left JOIN pay_contacts_management pt on (pm.contacts_id = pt.id)
inner JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)
inner JOIN pay_contacts_management pt on (pm.contacts_id = pt.id)
<where>
<if test=" name!=null and name != ''">
AND pt.name LIKE CONCAT('%',#{name},'%')
@@ -29,15 +29,15 @@
AND pe.name LIKE CONCAT('%',#{fenBiaoWeiName},'%')
</if>
</where>
group by pe.id
<!--group by pe.id-->
limit #{pageNo},#{pageSize}
</select>
<select id="list4" resultMap="people">
SELECT pe.id as id,pt.name as peopleName,pm.company_name as companyName,pt.post as post,pt.phone as phone ,pe.name as name,pm.id as childrenId
from
pay_case_committee pe
left JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)
left JOIN pay_contacts_management pt on (pm.contacts_id = pt.id)
inner JOIN pay_case_committee_subitem pm on (pe.id = pm.committee_id)
inner JOIN pay_contacts_management pt on (pm.contacts_id = pt.id)
<where>
<if test=" name!=null and name != ''">
AND pt.name LIKE CONCAT('%',#{name},'%')
@@ -49,7 +49,7 @@
AND pe.name LIKE CONCAT('%',#{fenBiaoWeiName},'%')
</if>
</where>
group by pe.id
<!--group by pe.id-->
</select>
<select id="list2" resultType="com.jero.data.entity.VO.payCaseCommitteeSubitemVO">