订单详情调整

This commit is contained in:
2024-09-26 15:58:25 +08:00
parent 282bdb0292
commit a43aaa3e73

View File

@@ -2,6 +2,7 @@ package com.chaozhanggui.system.cashierservice.controller;
import cn.hutool.core.util.ObjectUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson.JSONObject;
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseEatModelDTO;
@@ -42,8 +43,11 @@ public class ProductController {
@RequestParam(required = false) String lat,
@RequestParam(required = false) String lng,
@RequestParam(required = false) String code,
@RequestParam Integer shopId
@RequestParam(required = false) Integer shopId
) {
if (shopId == null && StrUtil.isNotBlank(code)) {
return Result.fail("参数缺失");
}
return productService.queryShopIdByTableCode(userId, openId, code,lat,lng, shopId);
}