创建订单修改

This commit is contained in:
2024-09-26 14:21:42 +08:00
parent 225611a07f
commit 34173023bc
2 changed files with 3 additions and 2 deletions

View File

@@ -853,7 +853,7 @@ public class CartService {
// 设置餐位费
TbShopInfo shopInfo = mpShopInfoMapper.selectById(shopId);
if (!shopEatTypeInfoDTO.isTakeout() && shopInfo.getIsTableFee() != null && shopInfo.getIsTableFee() == 0
&& (orderInfo == null || orderInfo.getSeatCount() == null)) {
&& (orderInfo != null && orderInfo.getSeatCount() == null)) {
seatNum = jsonObject.getInteger("dinersNum");
if (seatNum == null) {
MsgException.throwException("dinersNum不能为空");

View File

@@ -1,6 +1,7 @@
package com.chaozhanggui.system.cashierservice.service;
import cn.hutool.core.bean.BeanUtil;
import cn.hutool.core.date.DateUtil;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
@@ -484,7 +485,7 @@ public class OrderService {
groupedByPlaceNum.forEach((k, v) -> {
HashMap<String, Object> item = new HashMap<>();
item.put("placeNum", k);
item.put("placeTime", v.isEmpty() ? null : v.get(0).getCreateTime());
item.put("placeTime", v.isEmpty() ? null : DateUtil.format(v.get(0).getCreateTime(), "yyyy-MM-dd HH:mm:ss"));
item.put("info", v);
BigDecimal totalPrice = BigDecimal.ZERO;
for (TbOrderDetail d : v) {