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

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

转赠倒计时

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