Helius
2022-07-09 e60d92b237750b9b8966d9926ea5022661509e31
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?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.xcong.farmer.cms.modules.system.mapper.CompanyMapper">
 
    <select id="selectAdminBelongInPage" resultType="com.xcong.farmer.cms.modules.system.vo.AdminCompanyVo">
        SELECT
        a.*
        FROM
        t_company a
        <where>
            <if test="record != null" >
                <if test="record.name!=null">
                    and a.name like concat ('%',#{record.name},'%')
                </if>
                <if test="record.id!=null">
                    and a.id = #{record.id}
                </if>
            </if>
        </where>
    </select>
 
</mapper>