Commit 2d0d6f9f by sunxiwang

欢迎语bug修改

1 parent 3769af7c
package com.linkwechat.wecom.service.impl;
import java.util.Date;
import java.util.List;
import java.util.stream.Collectors;
......@@ -65,7 +66,7 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
public int insertWeMsgTlp(WeMsgTlp weMsgTlp)
{
weMsgTlp.setCreateBy(SecurityUtils.getUsername());
weMsgTlp.setCreateTime(new Date());
return weMsgTlpMapper.insertWeMsgTlp(weMsgTlp);
......@@ -112,7 +113,6 @@ public class WeMsgTlpServiceImpl implements IWeMsgTlpService
// }
//
// }
return weMsgTlpMapper.updateWeMsgTlp(weMsgTlp);
}
......
......@@ -34,6 +34,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
INNER JOIN we_material wm ON wmt.media_id=wm.id
<where>
<if test="welcomeMsg != null and welcomeMsg != ''"> and wmt.welcome_msg like CONCAT('%',#{welcomeMsg,jdbcType=VARCHAR},'%') </if>
<if test="welcomeMsgTplType !=null "> and wmt.welcome_msg_tpl_type = #{welcomeMsgTplType}</if>
and wmt.del_flag = 0
</where>
</select>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!