gongyingshangxinxi denglu
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd" >
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.base.dao.CoscoSupplierBaseMapper">
|
||||
<mapper namespace="com.chinaunicom.zyhy.ebtp.supplier.base.dao.SupplierBaseMapper">
|
||||
|
||||
<!-- 通用查询映射结果 -->
|
||||
<resultMap id="BaseResultMap" type="com.chinaunicom.zyhy.ebtp.supplier.base.entity.CoscoSupplierBase">
|
@ -36,13 +36,16 @@
|
||||
limit 1
|
||||
</select>
|
||||
|
||||
<select id="selectByMainContactId" resultMap="BaseResultMap">
|
||||
<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
|
||||
where mainc.supplier_base_id =sub.supplier_base_id
|
||||
and mainc.main= '1' and sub.main='0'
|
||||
and mainc.id = #{id}
|
||||
and mainc.acount = #{searchVO.mainContactAccountId}
|
||||
<if test="searchVO.name!=null and searchVO.name!=''">
|
||||
and sub.name like concat('%', #{searchVO.name}, '%')
|
||||
</if>
|
||||
</select>
|
||||
|
||||
</mapper>
|
Reference in New Issue
Block a user