zoujiajian hai 1 ano
pai
achega
d64aa814d7

+ 3 - 3
netflix-web/src/main/java/com/cyksj/web/controller/manage/goods/CmsGoodsDonWholeSaleController.java

@@ -67,7 +67,7 @@ public class CmsGoodsDonWholeSaleController {
 	/**
 	 * 编辑批发平台
 	 */
-	@PostMapping("/update")
+	@PutMapping("/update")
 	public Result<String> updateWholesale(@RequestBody GoodsWholesale wholesale) throws Exception {
 		goodsWholesaleService.saveOrUpdateWholesale(wholesale);
 		return GatewayResponse.SUCCESS.newBuilder().toResult();
@@ -76,7 +76,7 @@ public class CmsGoodsDonWholeSaleController {
 	/**
 	 * 平台批发排序
 	 */
-	@PostMapping("/sorted")
+	@PutMapping("/sorted")
 	public Result<String> sortedWholesale(@RequestBody GoodsWholesale wholesale) throws Exception {
 		Long id = wholesale.getId();
 		Integer sorted = wholesale.getSorted();
@@ -119,7 +119,7 @@ public class CmsGoodsDonWholeSaleController {
 	/**
 	 * 批发平台上下架
 	 */
-	@PutMapping("/updata/status/{id}")
+	@PutMapping("/update/status/{id}")
 	public Result<String> updateStatusById(@PathVariable Long id) {
 		GoodsWholesale byId = goodsWholesaleService.getById(id);
 		if (byId != null) {