bug-分标委企业添加待审核
This commit is contained in:
+5
-4
@@ -18,12 +18,13 @@
|
||||
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)
|
||||
left join pay_company_management pcm on(pm.company_id=pcm.id)
|
||||
<where>
|
||||
<if test=" name!=null and name != ''">
|
||||
AND pt.name LIKE CONCAT('%',#{name},'%')
|
||||
</if>
|
||||
<if test=" companyName!=null and companyName != ''">
|
||||
AND pm.company_name LIKE CONCAT('%',#{companyName},'%')
|
||||
AND pcm.company_name LIKE CONCAT('%',#{companyName},'%')
|
||||
</if>
|
||||
<if test=" fenBiaoWeiName!=null and fenBiaoWeiName != ''">
|
||||
AND pe.name LIKE CONCAT('%',#{fenBiaoWeiName},'%')
|
||||
@@ -33,14 +34,14 @@
|
||||
order by pe.create_time desc
|
||||
</select>
|
||||
<select id="listForChildren" resultType="com.jero.data.entity.ChildrenFindByName">
|
||||
SELECT pt.name as peopleName,pm.company_name as companyName,pt.post as post,pt.phone as phone ,pm.id as childrenId
|
||||
SELECT pt.name as peopleName,if(pcm.status=1,pcm.company_name,CONCAT(pcm.company_name,'(待审核)')) as companyName,pt.post as post,pt.phone as phone ,pm.id as childrenId
|
||||
from
|
||||
pay_case_committee_subitem pm
|
||||
left JOIN pay_contacts_management pt on (pm.contacts_id = pt.id)
|
||||
left JOIN pay_contacts_management pt on (pm.contacts_id = pt.id) left join pay_company_management pcm on(pm.company_id=pcm.id)
|
||||
<where>
|
||||
pm.committee_id = #{pid}
|
||||
<if test=" companyName!=null and companyName != ''">
|
||||
AND pm.company_name LIKE CONCAT('%',#{companyName},'%')
|
||||
AND pcm.company_name LIKE CONCAT('%',#{companyName},'%')
|
||||
</if>
|
||||
<if test=" tname!=null and tname != ''">
|
||||
AND pt.name LIKE CONCAT('%',#{tname},'%')
|
||||
|
||||
Reference in New Issue
Block a user