KKSU
2024-01-09 edd5bf1c50327c7da1c18f82b46f8cee64d5bab1
src/main/resources/mapper/CmsAdInfoMapper.xml
@@ -9,6 +9,12 @@
        from cms_ad_info a
        left join cms_group_info b on a.group_id=b.id
        where a.company_id=#{record.companyId}
        <if test="record.name != null and record.name != ''">
            and a.name like concat(concat('%', #{record.name}), '%')
        </if>
    </select>
    <select id="selectByGroupIdAndCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.CmsAdInfoEntity">
        select * from cms_ad_info where group_id=#{groupId} and company_id=#{companyId}
    </select>
</mapper>