1
This commit is contained in:
parent
9ca5005c77
commit
f40dc61405
@ -7,6 +7,7 @@ import com.ruoyi.common.annotation.Log;
|
|||||||
import com.ruoyi.common.core.controller.BaseController;
|
import com.ruoyi.common.core.controller.BaseController;
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
import com.ruoyi.common.enums.BusinessType;
|
import com.ruoyi.common.enums.BusinessType;
|
||||||
|
import com.ruoyi.common.utils.SecurityUtils;
|
||||||
import com.ruoyi.member.domain.MemberPoints;
|
import com.ruoyi.member.domain.MemberPoints;
|
||||||
import com.ruoyi.member.service.IMemberPointsService;
|
import com.ruoyi.member.service.IMemberPointsService;
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
@ -47,6 +48,19 @@ public class MemberPointsController extends BaseController {
|
|||||||
return success(list);
|
return success(list);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询在途订单
|
||||||
|
* @author PQZ
|
||||||
|
* @date 14:36 2025/4/29
|
||||||
|
* @return com.ruoyi.common.core.domain.AjaxResult
|
||||||
|
**/
|
||||||
|
@GetMapping("/getOnWayOrder")
|
||||||
|
public AjaxResult getOnWayOrder() {
|
||||||
|
Long userId = SecurityUtils.getUserId();
|
||||||
|
List<MemberPoints> list = memberPointsService.getOnWayOrder(userId);
|
||||||
|
return success(list.isEmpty()?null:list);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 新增博主积分变动记录
|
* 新增博主积分变动记录
|
||||||
|
@ -61,4 +61,13 @@ public interface IMemberPointsService extends IService<MemberPoints> {
|
|||||||
* @type type 回调状态(success:成功,其他为失败)
|
* @type type 回调状态(success:成功,其他为失败)
|
||||||
**/
|
**/
|
||||||
void payoutCallback(String orderNo,String type);
|
void payoutCallback(String orderNo,String type);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 查询当前登录用户在途订单
|
||||||
|
* @author PQZ
|
||||||
|
* @date 14:32 2025/4/29
|
||||||
|
* @param userId 用户id
|
||||||
|
* @return java.util.List<com.ruoyi.member.domain.MemberPoints>
|
||||||
|
**/
|
||||||
|
List<MemberPoints> getOnWayOrder(Long userId);
|
||||||
}
|
}
|
||||||
|
@ -183,7 +183,8 @@ public class MemberPointsServiceImpl extends ServiceImpl<MemberPointsMapper, Mem
|
|||||||
* @param userId 用户id
|
* @param userId 用户id
|
||||||
* @return java.util.List<com.ruoyi.member.domain.MemberPoints>
|
* @return java.util.List<com.ruoyi.member.domain.MemberPoints>
|
||||||
**/
|
**/
|
||||||
private List<MemberPoints> getOnWayOrder(Long userId){
|
@Override
|
||||||
|
public List<MemberPoints> getOnWayOrder(Long userId){
|
||||||
LambdaQueryWrapper<MemberPoints> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
LambdaQueryWrapper<MemberPoints> lambdaQueryWrapper = new LambdaQueryWrapper<>();
|
||||||
lambdaQueryWrapper
|
lambdaQueryWrapper
|
||||||
.eq(MemberPoints::getUserId,userId)
|
.eq(MemberPoints::getUserId,userId)
|
||||||
|
Loading…
Reference in New Issue
Block a user