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