liujie
7 天以前 d52d4796208241c1a36b11b4e6c823a10ce4592a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?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.ruoyi.system.mapper.EnterpriseMapper">
    
    <select id="getEnterpriseList" resultType="com.ruoyi.system.api.model.Enterprise">
        select *
        from t_enterprise
        <where>
            <if test="null != req.name and '' != req.name">
                and `name` like CONCAT('%', #{req.name}, '%')
            </if>
            <if test="null != req.businessScope and '' != req.businessScope">
                and business_scope like CONCAT('%', #{req.businessScope}, '%')
            </if>
            <if test="null != req.mailingAddress and '' != req.mailingAddress">
                and mailing_address like CONCAT('%', #{req.mailingAddress}, '%')
            </if>
            <if test="null != req.legalRepresentative and '' != req.legalRepresentative">
                and legal_representative like CONCAT('%', #{req.legalRepresentative}, '%')
            </if>
            <if test="null != req.operationType and '' != req.operationType">
                and operation_type like CONCAT('%', #{req.operationType}, '%')
            </if>
        </where>
    </select>
 
</mapper>