店铺udesk设置支持
This commit is contained in:
		
							parent
							
								
									520c09b801
								
							
						
					
					
						commit
						036ad6defb
					
				@ -113,4 +113,11 @@ public interface StoreDetailService extends IService<StoreDetail> {
 | 
			
		||||
     * @param store 店铺信息
 | 
			
		||||
     */
 | 
			
		||||
    void updateStoreGoodsInfo(Store store);
 | 
			
		||||
 | 
			
		||||
    /**
 | 
			
		||||
     * 修改店铺udesk字段设置
 | 
			
		||||
     *
 | 
			
		||||
     * @param merchantEuid 店铺客服信息
 | 
			
		||||
     */
 | 
			
		||||
    Boolean editMerchantEuid(String merchantEuid);
 | 
			
		||||
}
 | 
			
		||||
@ -7,11 +7,8 @@ import cn.lili.common.security.AuthUser;
 | 
			
		||||
import cn.lili.common.security.context.UserContext;
 | 
			
		||||
import cn.lili.common.utils.BeanUtil;
 | 
			
		||||
import cn.lili.modules.goods.entity.dos.Category;
 | 
			
		||||
import cn.lili.modules.goods.entity.dos.Goods;
 | 
			
		||||
import cn.lili.modules.goods.entity.dos.GoodsSku;
 | 
			
		||||
import cn.lili.modules.goods.service.CategoryService;
 | 
			
		||||
import cn.lili.modules.goods.service.GoodsService;
 | 
			
		||||
import cn.lili.modules.goods.service.GoodsSkuService;
 | 
			
		||||
import cn.lili.modules.search.utils.EsIndexUtil;
 | 
			
		||||
import cn.lili.modules.store.entity.dos.Store;
 | 
			
		||||
import cn.lili.modules.store.entity.dos.StoreDetail;
 | 
			
		||||
@ -113,6 +110,14 @@ public class StoreDetailServiceImpl extends ServiceImpl<StoreDetailMapper, Store
 | 
			
		||||
        rocketMQTemplate.asyncSend(destination, JSONUtil.toJsonStr(updateIndexFieldsMap), RocketmqSendCallbackBuilder.commonCallback());
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public Boolean editMerchantEuid(String merchantEuid) {
 | 
			
		||||
        AuthUser tokenUser = Objects.requireNonNull(UserContext.getCurrentUser());
 | 
			
		||||
        Store store = storeService.getById(tokenUser.getStoreId());
 | 
			
		||||
        store.setMerchantEuid(merchantEuid);
 | 
			
		||||
        return storeService.updateById(store);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @Override
 | 
			
		||||
    public StoreBasicInfoVO getStoreBasicInfoDTO(String storeId) {
 | 
			
		||||
        return this.baseMapper.getStoreBasicInfoDTO(storeId);
 | 
			
		||||
 | 
			
		||||
@ -56,6 +56,14 @@ public class StoreSettingsController {
 | 
			
		||||
        return ResultUtil.data(result);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @ApiOperation(value = "修改商家设置")
 | 
			
		||||
    @PutMapping("/merchantEuid")
 | 
			
		||||
    public ResultMessage<Object> edit(String merchantEuid) {
 | 
			
		||||
        //修改UDESK设置
 | 
			
		||||
        Boolean result = storeDetailService.editMerchantEuid(merchantEuid);
 | 
			
		||||
        return ResultUtil.data(result);
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    @ApiOperation(value = "修改店铺库存预警数量")
 | 
			
		||||
    @ApiImplicitParam(name = "stockWarning", value = "库存预警数量", required = true, dataType = "Integer", paramType = "query")
 | 
			
		||||
    @PutMapping("/updateStockWarning")
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user