排队取号时间格式修改

This commit is contained in:
2024-09-18 11:09:32 +08:00
parent 116ced92cb
commit e9fa13fdd8
2 changed files with 20 additions and 12 deletions

View File

@@ -178,7 +178,7 @@ public class TbCallServiceImpl implements TbCallService {
callQueue.setCreateDay(DateUtil.today());
callQueue.setCallNum(getCallNumber(takeNumberDTO.getShopId(), callTable));
callQueue.setCreateTime(DateUtil.date().toInstant());
callQueue.setCreateTime(DateUtil.date());
callQueue.setShopId(shopInfo.getId());
callQueue.setShopName(shopInfo.getShopName());
@@ -209,7 +209,7 @@ public class TbCallServiceImpl implements TbCallService {
callQueue.setState((byte) 1);
callQueue.setCallCount(callQueue.getCallCount() + 1);
callQueue.setCallTime(DateUtil.date().toInstant());
callQueue.setCallTime(DateUtil.date());
// 发送模板消息通知用户
@@ -270,7 +270,7 @@ public class TbCallServiceImpl implements TbCallService {
switch (updateCallQueueDTO.getState()) {
case -1:
callQueue.setCancelTime(DateUtil.date().toInstant());
callQueue.setCancelTime(DateUtil.date());
break;
case 0:
callQueue.setState((byte) 0);
@@ -281,13 +281,13 @@ public class TbCallServiceImpl implements TbCallService {
}
callQueue.setState((byte) 1);
callQueue.setCallCount(callQueue.getCallCount() + 1);
callQueue.setCallTime(DateUtil.date().toInstant());
callQueue.setCallTime(DateUtil.date());
break;
case 2:
callQueue.setConfirmTime(DateUtil.date().toInstant());
callQueue.setConfirmTime(DateUtil.date());
break;
case 3:
callQueue.setPassTime(DateUtil.date().toInstant());
callQueue.setPassTime(DateUtil.date());
break;
default:
throw new BadRequestException("错误类型");