Commit 0c5e15f7 authored by unset's avatar unset

添加通知信息

parent 8ca5178e
......@@ -112,8 +112,6 @@ public class ImageInfoRelationBiz extends BaseBiz<ImageInfoRelationMapper,ImageI
if (arr == null) {
return new ArrayList<>();
}
Example example = new Example(ImageInfoRelation.class);
example.createCriteria().andIn("id", Arrays.asList(arr));
return mapper.selectByExample(example);
return mapper.getListByIds(Arrays.asList(arr));
}
}
\ No newline at end of file
......@@ -3,6 +3,8 @@ package com.upyuns.platform.rs.website.mapper;
import com.upyuns.platform.rs.website.entity.ImageInfoRelation;
import tk.mybatis.mapper.common.Mapper;
import java.util.List;
/**
* 影像图库上传图片关联信息
*
......@@ -11,5 +13,5 @@ import tk.mybatis.mapper.common.Mapper;
* @date 2020-12-04 14:38:23
*/
public interface ImageInfoRelationMapper extends Mapper<ImageInfoRelation> {
List<ImageInfoRelation> getListByIds(List<String> list);
}
......@@ -3,4 +3,14 @@
<mapper namespace="com.upyuns.platform.rs.website.mapper.ImageInfoRelationMapper">
<select id="getListByIds" resultType="com.upyuns.platform.rs.website.entity.ImageInfoRelation">
select iir.* from image_info_relation iir
LEFT JOIN image_img_storage iis on iir.relation_id = iis.id
where iir.id in
<foreach collection="list" item="emp" index="index" open="(" close=")" separator=",">
#{emp}
</foreach>
and iis.`status` = 1
</select>
</mapper>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment