gongyingshangxinxi yewuyuan
This commit is contained in:
@ -38,13 +38,13 @@
|
||||
|
||||
<select id="selectByMainContactId" resultType="com.chinaunicom.zyhy.ebtp.supplier.base.dto.ContactDTO">
|
||||
select
|
||||
sub.id, sub.name, sub.phone, sub.email, sub.acount, sub.main, sub.status, sub.supplier_base_id
|
||||
from cosco_supplier_contact mainc,cosco_supplier_base sub
|
||||
sub.id, sub.`name`,sub.phone,sub.email, sub.`account`, sub.main, sub.`status`, sub.supplier_base_id
|
||||
from cosco_supplier_contact mainc,cosco_supplier_contact sub
|
||||
where mainc.supplier_base_id =sub.supplier_base_id
|
||||
and mainc.main= '1' and sub.main='0'
|
||||
and mainc.acount = #{searchVO.mainContactAccountId}
|
||||
and mainc.`account` = #{searchVO.mainContactAccountId}
|
||||
<if test="searchVO.name!=null and searchVO.name!=''">
|
||||
and sub.name like concat('%', #{searchVO.name}, '%')
|
||||
and sub.`name` like concat('%', #{searchVO.name}, '%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
|
Reference in New Issue
Block a user