zrj
2024-10-30 1f3835b24d77a899a2e2e55c846a575dc4db825d
src/main/java/org/springblade/modules/yw/mapper/FirmInfoMapper.xml
@@ -4,7 +4,14 @@
    <!--自定义分页查询-->
    <select id="selectFirmInfoPage" resultType="org.springblade.modules.yw.vo.FirmInfoVO">
        select * from yw_firm_info where is_deleted = 0
        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>