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>