zrj
2024-10-31 15a3aba3a971501e55400a546560280e46b758ca
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?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.springblade.modules.yw.mapper.FirmInfoMapper">
 
    <!--自定义分页查询-->
    <select id="selectFirmInfoPage" resultType="org.springblade.modules.yw.vo.FirmInfoVO">
        select
        yfi.*,bdb.dict_value as categoryName
         from yw_firm_info yfi
        left join blade_dict_biz bdb on bdb.dict_key = yfi.category and bdb.code = 'industry_category'
        where yfi.is_deleted = 0
        <if test="firmInfo.name!=null and firmInfo.name!=''">
            and yfi.name like concat('%',#{firmInfo.name},'%')
        </if>
    </select>
 
</mapper>