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

Commit 93884d37 authored by 胡佳晨's avatar 胡佳晨

正在下单活动

parent 9d6f36d7
...@@ -102,6 +102,9 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService { ...@@ -102,6 +102,9 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService {
LocalDateTime nt = LocalDateTime.now(); LocalDateTime nt = LocalDateTime.now();
LocalDateTime st = LocalDateTime.parse(vo.getTimeStart(), DTF_YMD_HMS); LocalDateTime st = LocalDateTime.parse(vo.getTimeStart(), DTF_YMD_HMS);
LocalDateTime et = LocalDateTime.parse(vo.getTimeEnd(), DTF_YMD_HMS); LocalDateTime et = LocalDateTime.parse(vo.getTimeEnd(), DTF_YMD_HMS);
if (baseVo.getStatus() == 7) {
vo.setStatus(7);
} else {
if (nt.isBefore(st)) { if (nt.isBefore(st)) {
vo.setStatus(9); vo.setStatus(9);
} else if (nt.isAfter(et)) { } else if (nt.isAfter(et)) {
...@@ -110,6 +113,7 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService { ...@@ -110,6 +113,7 @@ public class GoblinMixAppServiceImpl implements IGoblinMixAppService {
vo.setStatus(6); vo.setStatus(6);
} }
} }
}
return ResponseDto.success(vo); return ResponseDto.success(vo);
} }
......
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