订单详情调整
This commit is contained in:
@@ -2,6 +2,7 @@ package com.chaozhanggui.system.cashierservice.controller;
|
|||||||
|
|
||||||
|
|
||||||
import cn.hutool.core.util.ObjectUtil;
|
import cn.hutool.core.util.ObjectUtil;
|
||||||
|
import cn.hutool.core.util.StrUtil;
|
||||||
import com.alibaba.fastjson.JSONObject;
|
import com.alibaba.fastjson.JSONObject;
|
||||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
|
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
|
||||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseEatModelDTO;
|
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseEatModelDTO;
|
||||||
@@ -42,8 +43,11 @@ public class ProductController {
|
|||||||
@RequestParam(required = false) String lat,
|
@RequestParam(required = false) String lat,
|
||||||
@RequestParam(required = false) String lng,
|
@RequestParam(required = false) String lng,
|
||||||
@RequestParam(required = false) String code,
|
@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);
|
return productService.queryShopIdByTableCode(userId, openId, code,lat,lng, shopId);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user