dev2
parent
f4e61343da
commit
722c9f7c5c
|
@ -0,0 +1,6 @@
|
|||
<component name="InspectionProjectProfileManager">
|
||||
<profile version="1.0">
|
||||
<option name="myName" value="Project Default" />
|
||||
<inspection_tool class="AliAccessStaticViaInstance" enabled="true" level="WARNING" enabled_by_default="true" />
|
||||
</profile>
|
||||
</component>
|
|
@ -141,6 +141,13 @@ public class OrdersController {
|
|||
excelUtil.exportExcel(response,list,"订单信息选中导出");
|
||||
}
|
||||
|
||||
|
||||
@GetMapping("/delByOrderId/{ordersName}")
|
||||
@Operation(summary = "彻订单", description = "根据根据orderid删除数据库字段")
|
||||
Result delByOrderName(@Validated @PathVariable("ordersName") Integer ordersName){
|
||||
return orderShowService.delByOrderId(ordersName);
|
||||
}
|
||||
|
||||
/**
|
||||
* 订单修改支付状态1已付款后,更改该商品的销量
|
||||
* (0待支付,1已付款,2未付款,3.售后(申请退款) 4.已退款)
|
||||
|
@ -155,11 +162,9 @@ public class OrdersController {
|
|||
@PostMapping("/updateByordersState2/{ordersId}")
|
||||
@Operation(summary = "订单修改支付状态=2", description = "根据orderid修改数据库字段支付状态为2")
|
||||
Result updateByordersState2(@Validated @PathVariable("ordersId") Integer ordersId) {
|
||||
try {
|
||||
|
||||
return orderShowService.updateByordersState2(ordersId);
|
||||
} catch (Exception e) {
|
||||
return Result.error("更新订单状态失败:" + e.getMessage());
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -86,31 +86,31 @@
|
|||
*/-->
|
||||
<update id="updateByordersState1">
|
||||
UPDATE `orders`
|
||||
SET `orders_state` = 1,
|
||||
WHERE `orders_id` = #{ordersId}
|
||||
SET `orders`.`orders_state` = 1
|
||||
WHERE `orders`.`orders_id` = #{ordersId}
|
||||
</update>
|
||||
<update id="updateByproductSales">
|
||||
UPDATE `product`
|
||||
SET `product_sales` = product_sales + 1
|
||||
WHERE `product_id` = #{productId}
|
||||
SET `product`.`product_sales` = `product`.`product_sales` + 1
|
||||
WHERE `product`.`product_id` = #{productId}
|
||||
</update>
|
||||
|
||||
|
||||
|
||||
<update id="updateByordersState2">
|
||||
UPDATE `orders`
|
||||
SET `orders_state`= 2
|
||||
WHERE `orders_id`= #{ordersId}
|
||||
SET `orders`.`orders_state`= 2
|
||||
WHERE `orders`.`orders_id`= #{ordersId}
|
||||
</update>
|
||||
<update id="updateByordersState3">
|
||||
UPDATE `orders`
|
||||
SET `orders_state`= 3
|
||||
WHERE `orders_id`= #{ordersId}
|
||||
SET `orders`.`orders_state`= 3
|
||||
WHERE `orders`.`orders_id`= #{ordersId}
|
||||
</update>
|
||||
<update id="updateByordersState4">
|
||||
UPDATE `orders`
|
||||
SET `orders_state`= 4
|
||||
WHERE `orders_id`= #{ordersId}
|
||||
SET `orders`.`orders_state`= 4
|
||||
WHERE `orders`.`orders_id`= #{ordersId}
|
||||
</update>
|
||||
|
||||
<!-- 彻底删除(根据orderid删除数据库字段)-->
|
||||
|
|
Loading…
Reference in New Issue