bug修改

This commit is contained in:
方亮 2025-09-17 10:21:23 +08:00
parent ce9082e56f
commit 9ea1f94ea1
2 changed files with 13 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import java.util.stream.IntStream;
/** /**
* 宣传物料信息对象 tb_promotion_material * 宣传物料信息对象 tb_promotion_material
* *
* @author 黑子 * @author 黑子
* @date 2025-09-10 * @date 2025-09-10
*/ */
@ -76,6 +76,12 @@ public class TbPromotionMaterial extends BaseEntity
/** 文件地址 */ /** 文件地址 */
private String filePath; private String filePath;
private String fileDownloadPath;
private String imageName;
private String fileName;
/** 文件 */ /** 文件 */
private List<TbPromotionMaterialFiles> files; private List<TbPromotionMaterialFiles> files;

View File

@ -5,7 +5,6 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<mapper namespace="com.bonus.business.mapper.MaterialScreenMapper"> <mapper namespace="com.bonus.business.mapper.MaterialScreenMapper">
<select id="getMaterialList" resultType="com.bonus.business.domain.TbPromotionMaterial"> <select id="getMaterialList" resultType="com.bonus.business.domain.TbPromotionMaterial">
select select
aaa.name, aaa.name,
aaa.image, aaa.image,
@ -14,9 +13,13 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
aaa.type_id, aaa.type_id,
aaa.type_name, aaa.type_name,
bbb.file_type, bbb.file_type,
bbb.file_path bbb.file_path,
ccc.original_name as imageName,
bbb.original_name as fileName,
bbb.file_path as fileDownloadPath
from tb_promotion_material aaa from tb_promotion_material aaa
left join tb_promotion_material_files bbb on aaa.id = bbb.material_id and bbb.type_id = '2' and bbb.del_flag = '0' left join tb_promotion_material_files bbb on aaa.id = bbb.material_id and bbb.type_id = '2' and bbb.del_flag = '0'
left join tb_promotion_material_files ccc on aaa.id = ccc.material_id and ccc.type_id = '1' and ccc.del_flag = '0'
where aaa.del_flag = '0' where aaa.del_flag = '0'
<if test="name != null and name != ''"> <if test="name != null and name != ''">
and aaa.name like concat('%',#{name},'%') and aaa.name like concat('%',#{name},'%')
@ -31,4 +34,4 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</select> </select>
</mapper> </mapper>