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

Commit 2fe793f7 authored by 胡佳晨's avatar 胡佳晨

转赠倒计时

parent aa10c4b4
...@@ -196,10 +196,11 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService { ...@@ -196,10 +196,11 @@ public class KylinOrderTicketsServiceImpl implements IKylinOrderTicketsService {
vo.setRestTime(0L); vo.setRestTime(0L);
} }
//计算 转正倒计时 //计算 转正倒计时
if (orderTicketVo.getTransferTime() != null) { if (orderTicketVo.getTransferTime() != null && (orderTicketVo.getTransferStatus().equals(1) || orderTicketVo.getTransferStatus().equals(4))) {
vo.setRestTransferTime(DateUtil.intervalSeconds( vo.setRestTransferTime(DateUtil.intervalSeconds(
DateUtil.parse(orderTicketVo.getTransferTime(), "yyyy-MM-dd HH:mm:ss"), DateUtil.parse(DateUtil.Formatter.yyyyMMddHHmmss.format(LocalDateTime.parse(orderTicketVo.getTransferTime(), DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss")).plusMinutes(120)),
nowDate "yyyy-MM-dd HH:mm:ss"),
nowDate
)); ));
if (vo.getRestTransferTime() <= 0L) { if (vo.getRestTransferTime() <= 0L) {
vo.setRestTransferTime(0L); vo.setRestTransferTime(0L);
......
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