|
|
|
@ -59,7 +59,7 @@ public class OrdersController {
|
|
|
|
|
* @param ordersUpdReq
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PutMapping("/updateOrders")
|
|
|
|
|
@PostMapping("/updateOrders")
|
|
|
|
|
@Operation(summary = "修改订单", description = "根据ordersid查找订单进行修改")
|
|
|
|
|
Result updateOrders(@Validated @RequestBody OrdersUpdReq ordersUpdReq){
|
|
|
|
|
Result result = orderShowService.updateOrders(ordersUpdReq);
|
|
|
|
@ -73,7 +73,7 @@ public class OrdersController {
|
|
|
|
|
* @param ordersId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PutMapping("/updateByeExist/{ordersId}")
|
|
|
|
|
@PostMapping("/updateByeExist/{ordersId}")
|
|
|
|
|
@Operation(summary = "逻辑删除订单", description = "根据orderid修改exist字段 1->0/(类似回收站)")
|
|
|
|
|
Result updateByeExist (@Validated @PathVariable("ordersId") Integer ordersId){
|
|
|
|
|
return orderShowService.updateByeExist(ordersId);
|
|
|
|
@ -85,7 +85,7 @@ public class OrdersController {
|
|
|
|
|
* @param ordersId
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@PutMapping("/updateByExist/{ordersId}")
|
|
|
|
|
@PostMapping("/updateByExist/{ordersId}")
|
|
|
|
|
@Operation(summary = "逻辑复原订单", description = "根据orderid修改exist字段 0->1")
|
|
|
|
|
Result updateByExist(@Validated @PathVariable("ordersId") Integer ordersId){
|
|
|
|
|
return orderShowService.updateByExist(ordersId);
|
|
|
|
@ -95,7 +95,7 @@ public class OrdersController {
|
|
|
|
|
* 彻底删除(根据orderid删除数据库字段)
|
|
|
|
|
* @return
|
|
|
|
|
*/
|
|
|
|
|
@DeleteMapping("/delByOrderId/{ordersId}")
|
|
|
|
|
@PostMapping("/delByOrderId/{ordersId}")
|
|
|
|
|
@Operation(summary = "彻底删除订单", description = "根据根据orderid删除数据库字段")
|
|
|
|
|
Result delByOrderId(@Validated @PathVariable("ordersId") Integer ordersId){
|
|
|
|
|
return orderShowService.delByOrderId(ordersId);
|
|
|
|
|