mirror of
https://gitee.com/hhyykk/ipms-sjy.git
synced 2025-08-12 01:01:53 +08:00
code review:订单统计
This commit is contained in:
@@ -131,7 +131,7 @@ public class TradeOrderController {
|
||||
@Parameter(name = "id", description = "交易订单编号")
|
||||
@PreAuthorize("@ss.hasPermission('trade:order:pick-up')")
|
||||
public CommonResult<Boolean> pickUpOrderById(@RequestParam("id") Long id) {
|
||||
tradeOrderUpdateService.pickUpOrderByMember(id);
|
||||
tradeOrderUpdateService.pickUpOrderByAdmin(id);
|
||||
return success(true);
|
||||
}
|
||||
|
||||
|
@@ -122,7 +122,7 @@ public interface TradeOrderUpdateService {
|
||||
*
|
||||
* @param id 订单编号
|
||||
*/
|
||||
void pickUpOrderByMember(Long id);
|
||||
void pickUpOrderByAdmin(Long id);
|
||||
|
||||
/**
|
||||
* 【管理员】核销订单
|
||||
|
@@ -669,8 +669,8 @@ public class TradeOrderUpdateServiceImpl implements TradeOrderUpdateService {
|
||||
}
|
||||
|
||||
@Override
|
||||
@TradeOrderLog(operateType = TradeOrderOperateTypeEnum.MEMBER_PICK_UP_RECEIVE)
|
||||
public void pickUpOrderByMember(Long id) {
|
||||
@TradeOrderLog(operateType = TradeOrderOperateTypeEnum.ADMIN_PICK_UP_RECEIVE)
|
||||
public void pickUpOrderByAdmin(Long id) {
|
||||
getSelf().pickUpOrder(tradeOrderMapper.selectById(id));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user