dev2
parent
d512b6f1a0
commit
960c1cbf53
|
@ -148,13 +148,13 @@ public class OrdersController {
|
||||||
//订单修改支付状
|
//订单修改支付状
|
||||||
@GetMapping("/updateByordersState1")
|
@GetMapping("/updateByordersState1")
|
||||||
@Operation(summary = "订单修改支付状态=1,更改该商品的销量", description = "根据orderid修改数据库字段支付状态为1,根据productId修改数据库销量")
|
@Operation(summary = "订单修改支付状态=1,更改该商品的销量", description = "根据orderid修改数据库字段支付状态为1,根据productId修改数据库销量")
|
||||||
Result updateByordersState1ANDproductSales(@RequestParam("ordersId")Integer ordersId,@RequestParam("productId")Integer productId){
|
public Result updateByordersState1ANDproductSales(@RequestParam("ordersId")Integer ordersId,@RequestParam("productId")Integer productId){
|
||||||
return orderShowService.updateByordersState1ANDproductSales(ordersId, productId);
|
return orderShowService.updateByordersState1ANDproductSales(ordersId, productId);
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/updateByordersState2/{ordersId}")
|
@PostMapping("/updateByordersState2/{ordersId}")
|
||||||
@Operation(summary = "订单修改支付状态=2", description = "根据orderid修改数据库字段支付状态为2")
|
@Operation(summary = "订单修改支付状态=2", description = "根据orderid修改数据库字段支付状态为2")
|
||||||
Result updateByordersState2(@Validated @PathVariable("ordersId") Integer ordersId) {
|
public Result updateByordersState2(@Validated @PathVariable("ordersId") Integer ordersId) {
|
||||||
try {
|
try {
|
||||||
return orderShowService.updateByordersState2(ordersId);
|
return orderShowService.updateByordersState2(ordersId);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
|
|
Loading…
Reference in New Issue