退单
This commit is contained in:
@@ -55,7 +55,7 @@ public class TransactionDetailsController {
|
||||
BuyOrder buyOrder = buyOrderService.getOne(new LambdaQueryWrapper<BuyOrder>()
|
||||
.eq(BuyOrder::getOrderSn,orderSn));
|
||||
if (buyOrder!=null){
|
||||
if ("购买商品".equals(detail.getOrderType())){
|
||||
if ("购买商品".equals(detail.getOrderType())||"订单退款".equals(detail.getOrderType())){
|
||||
List<BuyOrderProduct> products = buyOrderProductService.list(new LambdaQueryWrapper<BuyOrderProduct>()
|
||||
.eq(BuyOrderProduct::getOrderId,buyOrder.getOrderId()));
|
||||
for (BuyOrderProduct buyOrderProduct : products) {
|
||||
|
||||
@@ -2,6 +2,7 @@ package com.peanut.modules.common.dao;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.peanut.modules.common.entity.UserCourseBuyEntity;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
@@ -18,4 +19,7 @@ public interface UserCourseBuyDao extends MPJBaseMapper<UserCourseBuyEntity> {
|
||||
List<Map<String,Object>> getIncome(@Param("date") String date);
|
||||
|
||||
List<Map<String,Object>> getCoursePurchaseDetails(int courseId,int catalogueId,Integer limit,Integer offset);
|
||||
|
||||
@Delete("DELETE FROM user_course_buy WHERE id = #{userCourseBuyId}")
|
||||
int realDeleteById(int userCourseBuyId);
|
||||
}
|
||||
|
||||
@@ -2,8 +2,11 @@ package com.peanut.modules.common.dao;
|
||||
|
||||
import com.github.yulichang.base.MPJBaseMapper;
|
||||
import com.peanut.modules.common.entity.UserCourseBuyLog;
|
||||
import org.apache.ibatis.annotations.Delete;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
|
||||
@Mapper
|
||||
public interface UserCourseBuyLogDao extends MPJBaseMapper<UserCourseBuyLog> {
|
||||
@Delete("DELETE FROM user_course_buy_log WHERE id = #{userCourseBuyLogId}")
|
||||
int realDeleteById(int userCourseBuyLogId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user