|
|
|
|
@ -23,6 +23,8 @@ import org.springblade.modules.business.vo.BlacklistVO; |
|
|
|
|
import org.springblade.modules.business.wrapper.BlacklistWrapper; |
|
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
import java.util.Date; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 控制器 |
|
|
|
|
* |
|
|
|
|
@ -89,14 +91,16 @@ public class BlacklistController extends BladeController { |
|
|
|
|
|
|
|
|
|
Blacklist blacklist = blacklistService.getLatelyRecord(cupCardNo); |
|
|
|
|
int blacklistOutdate = DictBizCache.getDictValueWithOffset(BusinessConstant.DICT_KEY_BLACKLIST_OUTDATE); |
|
|
|
|
if (Func.isNotEmpty(blacklist) && CommonDateUtil.daysBetween(blacklist.getCreateTime(), DateUtil.now()) < blacklistOutdate) { |
|
|
|
|
int days = CommonDateUtil.daysBetween(blacklist.getCreateTime(), DateUtil.now()); |
|
|
|
|
|
|
|
|
|
if (Func.isNotEmpty(blacklist) && CommonDateUtil.daysBetweenWithoutStartDay(blacklist.getCreateTime(), DateUtil.now()) < blacklistOutdate) { |
|
|
|
|
// 更新提示信息为
|
|
|
|
|
// int days = CommonDateUtil.daysBetweenWithoutStartDay(blacklist.getCreateTime(), DateUtil.now());
|
|
|
|
|
// return R.data("由于您未及时进行报到,已被拉黑请于" + (blacklistOutdate - days) + "日后再次进行预约");
|
|
|
|
|
Date date1 = DateUtil.plusDays(blacklist.getCreateTime(), blacklistOutdate + 1); |
|
|
|
|
|
|
|
|
|
return R.data("由于您未及时进行报到,已被拉黑请于" + (blacklistOutdate - days) + "日后再次进行预约"); |
|
|
|
|
return R.data("由于您未及时进行报到,已被拉黑请于" + DateUtil.format(date1, DateUtil.PATTERN_DATE) + "日后再次进行预约"); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return R.data(""); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|