Lius
2024-10-21 316ef1bf39d16a29c27fe26393e704c1d0b963f9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?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="org.jeecg.modules.mdc.mapper.MdcComponentInfoMapper">
 
    <select id="pageList" resultType="org.jeecg.modules.mdc.entity.MdcComponentInfo">
        SELECT
            t1.*,
            t2.production_name productionName
        FROM
            mdc_component_info t1
                LEFT JOIN mdc_production t2 ON t1.production_id = t2.id
        <where>
            <if test="mdcComponentInfo.componentName != null and mdcComponentInfo.componentName != ''">
                AND t1.component_name LIKE '%' + #{mdcComponentInfo.componentName} + '%'
            </if>
        </where>
    </select>
</mapper>