Commit bd853a6d by 徐高华

群发

parent e57e335d
......@@ -20,7 +20,7 @@ public interface TabMaterialContentMapper {
public int updateByPrimaryKey(TabMaterialContent entity);
public TabMaterialContent selectByUrl(@Param("wxEnterpriseId") String wxEnterpriesId,
@Param("urlMd5") String urlMd5);
@Param("urlMd5") String urlMd5 , @Param("mediaType")int mediaType);
public TabMaterialContent selectById(String id) ;
......
......@@ -127,7 +127,7 @@ public class QywxSendServiceImpl implements QywxSendService {
String imageUrl = dto.getImgUrl();
int type = dto.getMaterialType();
String md5 = Md5Util.MD5(imageUrl);
TabMaterialContent tab = this.tabMaterialContentMapper.selectByUrl(wxEnterpriseId, md5);
TabMaterialContent tab = this.tabMaterialContentMapper.selectByUrl(wxEnterpriseId, md5,mediaType);
if (null != tab) {
materialIdList.add(tab.getMaterialId());
} else {
......
......@@ -80,7 +80,7 @@
<select id="selectByUrl" resultMap="result-map-tabHaobanMaterialContent">
SELECT
<include refid="Base_Column_List"/>
FROM tab_haoban_material_content WHERE wx_enterprise_id=#{wxEnterpriseId} and url_md5=#{urlMd5} and status_flag = 1
FROM tab_haoban_material_content WHERE wx_enterprise_id=#{wxEnterpriseId} and url_md5=#{urlMd5} and media_type = #{mediaType} and status_flag = 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