|
@@ -5,7 +5,9 @@ import com.cyksj.dto.Result;
|
|
|
import com.cyksj.enums.GatewayResponse;
|
|
import com.cyksj.enums.GatewayResponse;
|
|
|
import com.cyksj.model.entity.YhShopGoodsRate;
|
|
import com.cyksj.model.entity.YhShopGoodsRate;
|
|
|
import com.cyksj.model.request.GoodsDonShopRateReq;
|
|
import com.cyksj.model.request.GoodsDonShopRateReq;
|
|
|
|
|
+import com.cyksj.model.request.ShopGeneralGoodsRate;
|
|
|
import com.cyksj.model.views.YhShopGoodsRateView;
|
|
import com.cyksj.model.views.YhShopGoodsRateView;
|
|
|
|
|
+import com.cyksj.service.mange.CmsYhShopCommonService;
|
|
|
import com.cyksj.service.mange.CmsYhShopGoodsRateService;
|
|
import com.cyksj.service.mange.CmsYhShopGoodsRateService;
|
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
import com.ejlchina.searcher.BeanSearcher;
|
|
|
import com.ejlchina.searcher.SearchResult;
|
|
import com.ejlchina.searcher.SearchResult;
|
|
@@ -14,6 +16,8 @@ import lombok.RequiredArgsConstructor;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
|
|
|
|
|
|
|
+import java.util.List;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* @author zwhui
|
|
* @author zwhui
|
|
@@ -29,6 +33,8 @@ public class CmsYhShopGoodsController {
|
|
|
|
|
|
|
|
private final CmsYhShopGoodsRateService yhShopGoodsRateService;
|
|
private final CmsYhShopGoodsRateService yhShopGoodsRateService;
|
|
|
|
|
|
|
|
|
|
+ private final CmsYhShopCommonService cmsYhShopCommonService;
|
|
|
|
|
+
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
* 获取店铺平台价格
|
|
* 获取店铺平台价格
|
|
@@ -54,4 +60,13 @@ public class CmsYhShopGoodsController {
|
|
|
}
|
|
}
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 店铺通用平台分销比例配置
|
|
|
|
|
+ */
|
|
|
|
|
+ @PutMapping("/set/general/goods/rate")
|
|
|
|
|
+ public Result<String> setGeneralGoodsRate(@RequestBody List<ShopGeneralGoodsRate> rates) {
|
|
|
|
|
+ cmsYhShopCommonService.setGeneralGoodsRate(rates);
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|