Commit f9e0f08a by lili

加上去重

parent 28e5dd2f
...@@ -243,6 +243,10 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz { ...@@ -243,6 +243,10 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz {
} }
String newUrl = ""; String newUrl = "";
if(!StringUtil.isEmpty(weixinQrcodeVO.getWeixinGroupId())){ if(!StringUtil.isEmpty(weixinQrcodeVO.getWeixinGroupId())){
Boolean isExist = weixinQrcodeDao.checkExist(weixinQrcodeVO.getWeixinGroupId());
if (isExist){
return;
}
newUrl = QrcodeUtils.create(weixinQrcodeVO.getQrcodeUrl()); newUrl = QrcodeUtils.create(weixinQrcodeVO.getQrcodeUrl());
GroupRobotDTO groupRobotDTO = wechatGroupConsr.getRobotInfoByWxUserId(weixinQrcodeVO.getRobotWxId()); GroupRobotDTO groupRobotDTO = wechatGroupConsr.getRobotInfoByWxUserId(weixinQrcodeVO.getRobotWxId());
if(groupRobotDTO != null){ if(groupRobotDTO != null){
......
...@@ -115,7 +115,7 @@ ...@@ -115,7 +115,7 @@
from from
weixin_qrcode weixin_qrcode
where where
use_state in (0,1) use_state in (0,1) AND update_state!=2
<if test="ids==null"> <if test="ids==null">
AND update_state = 3 AND update_state = 3
</if> </if>
......
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