全所统计
This commit is contained in:
+6
-6
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user