Commit e4f4097a by 徐高华

Merge branch 'feature/xgh/202507迭代' into 'developer'

Feature/xgh/202507迭代

See merge request !3098
parents ada2a47a d2d89d86
......@@ -70,7 +70,7 @@ public class HaobanTaskNoticeApiServiceImpl implements HaobanTaskNoticeApiServic
@Autowired
private HaobanCommonMQApiService haobanCommonMQApiService ;
int maxNum = 1 ;
int maxNum = 3 ;
@Override
public ServiceResponse<Void> save(HaobanTaskNoticeDTO notice) {
Date start = DateUtil.getStartTimeOfDay() ;
......@@ -82,7 +82,7 @@ public class HaobanTaskNoticeApiServiceImpl implements HaobanTaskNoticeApiServic
String key ="hbNotice"+ notice.getPlanId() ;
RedisUtil.lock(key, 3L);
try {
if(num + 1 >= maxNum) {
if(num + 1 > maxNum) {
return ServiceResponse.failure("9999", "一天最多提醒"+maxNum+"次");
}
TabHaobanTaskNotice entity = EntityUtil.changeEntityByJSON(TabHaobanTaskNotice.class, notice) ;
......
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