diff --git a/bonus-business/src/main/resources/mapper/business/TbPromotionMaterialMapper.xml b/bonus-business/src/main/resources/mapper/business/TbPromotionMaterialMapper.xml index 2027a70..52cfee2 100644 --- a/bonus-business/src/main/resources/mapper/business/TbPromotionMaterialMapper.xml +++ b/bonus-business/src/main/resources/mapper/business/TbPromotionMaterialMapper.xml @@ -28,10 +28,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" select aaa.id, aaa.name, aaa.type_id, aaa.type_name, aaa.image, aaa.version, aaa.description, su.user_name as create_user, aaa.create_time, aaa.update_user, aaa.update_time, aaa.product_name from tb_promotion_material aaa left join sys_user su on su.user_id = aaa.create_user + left join tb_promotion_material_product ccc on ccc.material_id = aaa.id where aaa.del_flag = 0 and aaa.name like concat('%', #{name}, '%') and aaa.type_id = #{typeId} and aaa.type_name like concat('%', #{typeName}, '%') + and ccc.product_id = #{productId}