|
|
|
@@ -21,13 +21,11 @@ public class WxMsgLimitServiceImpl implements WxMsgLimitService { |
|
|
|
@Autowired |
|
|
|
private WxMsgLimitMapper wxMsgLimitMapper; |
|
|
|
|
|
|
|
@Override |
|
|
|
public List<WxMsgLimit> findList(WxMsgLimit record) { |
|
|
|
private List<WxMsgLimit> findList(WxMsgLimit record) { |
|
|
|
return wxMsgLimitMapper.findList(record); |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public void add(WxMsgLimit record){ |
|
|
|
private void add(WxMsgLimit record){ |
|
|
|
final IdWorker idWorker = IdWorker.get(); |
|
|
|
// 删除老的, 手机, openId会出现旧数据,删掉 |
|
|
|
if(record.getType().equals(EnumMsgLimitType.SMS_VALID.getCode()) || |
|
|
|
@@ -40,6 +38,7 @@ public class WxMsgLimitServiceImpl implements WxMsgLimitService { |
|
|
|
// 新增,根据类型获取限制条数 |
|
|
|
setLimitNum(record); |
|
|
|
// 保存 |
|
|
|
record.setId(idWorker.nextId()); |
|
|
|
wxMsgLimitMapper.insertSelective(record); |
|
|
|
} |
|
|
|
|
|
|
|
@@ -84,8 +83,7 @@ public class WxMsgLimitServiceImpl implements WxMsgLimitService { |
|
|
|
return record; |
|
|
|
} |
|
|
|
|
|
|
|
@Override |
|
|
|
public int updateLimit(WxMsgLimit record) { |
|
|
|
private int updateLimit(WxMsgLimit record) { |
|
|
|
int ret = wxMsgLimitMapper.updateLimitNum(record); |
|
|
|
return ret; |
|
|
|
} |
|
|
|
|