Helius
2022-08-31 39a322c380ac88874760b4b9a28def18c0b7753a
src/main/resources/mapper/CmsFriendlyLinkMapper.xml
@@ -8,7 +8,16 @@
         b.name groupName
        from cms_friendly_link a
            left join cms_group_info b on a.group_id=b.id
        where a.company_id=#{record.companyId}
        <where>
            a.company_id=#{record.companyId}
            <if test="record.name != null and record.name != ''">
                and a.name like concat(concat('%', #{record.name}), '%')
            </if>
        </where>
    </select>
    <select id="selectByGroupIdAndCompanyId" resultType="com.xcong.farmer.cms.modules.system.entity.CmsFriendlyLinkEntity">
        select * from cms_friendly_link
        where group_id=#{groupId} and company_id=#{companyId}
    </select>
</mapper>