|
|
@@ -1,5 +1,6 @@
|
|
|
package com.sqx.modules.goods.controller;
|
|
|
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.ObjectUtils;
|
|
|
import com.sqx.common.utils.Result;
|
|
|
import com.sqx.modules.datacentre.query.DataCenterQuery;
|
|
|
import com.sqx.modules.goods.entity.GoodsShop;
|
|
|
@@ -121,9 +122,12 @@ public class GoodsShopController {
|
|
|
return goodsShopService.selectGoodsShop(phone,msg);
|
|
|
}
|
|
|
|
|
|
- @ApiOperation("修改商户信息")
|
|
|
+ @ApiOperation("修改商户信息")
|
|
|
@PostMapping("/updateGoodsShop")
|
|
|
public Result updateGoodsShop(@RequestBody GoodsShop goodsShop){
|
|
|
+ if (ObjectUtils.isEmpty(goodsShop.getShopTypeId())) {
|
|
|
+ return Result.error("请选择商铺类型!");
|
|
|
+ }
|
|
|
goodsShop.setStatus(0);
|
|
|
goodsShop.setIsSupplier(1);
|
|
|
// 默认不隐藏
|