Merge remote-tracking branch 'origin/test' into test
# Conflicts: # src/main/java/com/chaozhanggui/system/cashierservice/service/PayService.java
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.StrUtil;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseCountDTO;
|
||||
import com.chaozhanggui.system.cashierservice.entity.dto.ChoseEatModelDTO;
|
||||
@@ -41,9 +42,13 @@ public class ProductController {
|
||||
@RequestHeader("id") String userId,
|
||||
@RequestParam(required = false) String lat,
|
||||
@RequestParam(required = false) String lng,
|
||||
@RequestParam("code") String code
|
||||
@RequestParam(required = false) String code,
|
||||
@RequestParam(required = false) Integer shopId
|
||||
) {
|
||||
return productService.queryShopIdByTableCode(userId, openId, code,lat,lng);
|
||||
if (shopId == null && StrUtil.isBlank(code)) {
|
||||
return Result.fail("参数缺失");
|
||||
}
|
||||
return productService.queryShopIdByTableCode(userId, openId, code,lat,lng, shopId);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user