34 lines
1.5 KiB
XML
34 lines
1.5 KiB
XML
|
|
<?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="cn.iocoder.yudao.module.company.mapper.CompanyMapper">
|
||
|
|
<select id="selectListPage" resultType="cn.iocoder.yudao.module.company.entity.Company">
|
||
|
|
SELECT
|
||
|
|
bc.*
|
||
|
|
FROM
|
||
|
|
base_company bc
|
||
|
|
WHERE deleted = '0'
|
||
|
|
<if test="map.registDateArray.length>0">
|
||
|
|
AND (bc.regist_date BETWEEN #{map.registDateArray[0]} AND #{map.registDateArray[1]})
|
||
|
|
</if>
|
||
|
|
<if test="map.corpName!='' and map.corpName!=null">
|
||
|
|
AND (bc.corp_name LIKE CONCAT('%',#{map.corpName},'%'))
|
||
|
|
</if>
|
||
|
|
<if test="map.orgCard!='' and map.orgCard!=null">
|
||
|
|
AND (bc.org_card LIKE CONCAT('%',#{map.orgCard},'%'))
|
||
|
|
</if>
|
||
|
|
<if test="map.legalName!='' and map.legalName!=null">
|
||
|
|
AND (bc.legal_name LIKE CONCAT('%',#{map.legalName},'%'))
|
||
|
|
</if>
|
||
|
|
<if test="map.legalCard!='' and map.legalCard!=null">
|
||
|
|
AND (bc.legal_card LIKE CONCAT('%',#{map.legalCard},'%'))
|
||
|
|
</if>
|
||
|
|
<if test="map.contactName!='' and map.contactName!=null">
|
||
|
|
AND (bc.contact_name LIKE CONCAT('%',#{map.contactName},'%'))
|
||
|
|
</if>
|
||
|
|
<if test="map.mobilePhone!='' and map.mobilePhone!=null">
|
||
|
|
AND (bc.mobile_phone LIKE CONCAT('%',#{map.mobilePhone},'%'))
|
||
|
|
</if>
|
||
|
|
ORDER BY bc.create_time DESC
|
||
|
|
</select>
|
||
|
|
</mapper>
|