记得上下班打卡 | git大法好,push需谨慎

Commit 9fae46f9 authored by GaoHu's avatar GaoHu

exit

parent ec80970c
...@@ -152,7 +152,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService { ...@@ -152,7 +152,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
List<GoblinMixDetailsItemVo> itemList = ObjectUtil.goblinMixDetailsItemVo(); List<GoblinMixDetailsItemVo> itemList = ObjectUtil.goblinMixDetailsItemVo();
List<GoblinMixDetailsItemParam> itemParams = param.getItem(); List<GoblinMixDetailsItemParam> itemParams = param.getItem();
//开启预约 判断上架时间必须大于开始时间 //开启预约 判断上架时间必须大于开始时间
if (param.getReserve() != 0 && DateUtil.compareStrDay(param.getShelvesTime(), param.getTimeStart()) > 0) { if (DateUtil.compareStrDay(param.getShelvesTime(), param.getTimeStart()) > 0) {
return ResponseDto.failure("售卖时间不能超过上架时间!"); return ResponseDto.failure("售卖时间不能超过上架时间!");
} }
...@@ -221,7 +221,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService { ...@@ -221,7 +221,7 @@ public class GoblinMixServiceImpl implements IGoblinMixService {
GoblinMixDetailsVo vo = redisUtils.getMixDetails(param.getMixId()); GoblinMixDetailsVo vo = redisUtils.getMixDetails(param.getMixId());
String oldWhiteUrl = vo.getWhiteUrl(); String oldWhiteUrl = vo.getWhiteUrl();
//开启预约 判断上架时间必须大于开始时间 //开启预约 判断上架时间必须大于开始时间
if (param.getReserve() != 0 && DateUtil.compareStrDay(param.getShelvesTime(), vo.getTimeStart()) > 0) { if (DateUtil.compareStrDay(param.getShelvesTime(), vo.getTimeStart()) > 0) {
return ResponseDto.failure("售卖时间不能超过上架时间!"); return ResponseDto.failure("售卖时间不能超过上架时间!");
} }
......
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