参数 undefined的情况

This commit is contained in:
2024-08-23 10:11:06 +08:00
parent 7b09e827fd
commit 26f455fcd1
3 changed files with 4 additions and 4 deletions

View File

@@ -464,8 +464,8 @@ public class ProductService {
}
public Result queryProductSku(String code, String shopId, String productId, String spec_tag,Integer isVip) {
if (ObjectUtil.isEmpty(shopId) || ObjectUtil.isEmpty(productId) || ObjectUtil.isEmpty(isVip)) {
public Result queryProductSku(String code, String shopId, String productId, String spec_tag,String isVip) {
if (ObjectUtil.isEmpty(shopId) || ObjectUtil.isEmpty(productId) || StringUtils.isEmpty(isVip)|| isVip.equals("undefined") ) {
return Result.fail("参数错误");
}
TbProductSkuWithBLOBs tbProductSkuWithBLOBs = tbProductSkuMapper.selectByShopIdAndProductIdAndSpec(shopId, productId, spec_tag);