|
|
@@ -73,6 +73,21 @@ public class CmsGoodsDonWholeSaleController {
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 平台批发排序
|
|
|
+ */
|
|
|
+ @PostMapping("/sorted")
|
|
|
+ public Result<String> sortedWholesale(@RequestBody GoodsWholesale wholesale) throws Exception {
|
|
|
+ Long id = wholesale.getId();
|
|
|
+ Integer sorted = wholesale.getSorted();
|
|
|
+ GoodsWholesale byId = goodsWholesaleService.getById(id);
|
|
|
+ if (byId != null) {
|
|
|
+ byId.setSorted(sorted);
|
|
|
+ goodsWholesaleService.updateById(byId);
|
|
|
+ }
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult();
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* 删除批发平台
|
|
|
*/
|