| | |
| | | package com.dsh.account.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.dsh.account.entity.UserIntegral; |
| | | import com.dsh.account.entity.UserIntegralChanges; |
| | | import com.dsh.account.model.IntegralListQuery; |
| | | import com.dsh.account.model.SaveUserIntegralChangesVo; |
| | | import com.dsh.account.service.UserIntegralChangesService; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.ArrayList; |
| | | import java.util.List; |
| | | |
| | | /** |
| | | * @author zhibing.pu |
| | |
| | | e.printStackTrace(); |
| | | } |
| | | } |
| | | |
| | | @PostMapping("/userIntegralChanges/list") |
| | | public Page<UserIntegral> list(@RequestBody IntegralListQuery integralListQuery){ |
| | | try { |
| | | Page<UserIntegral> userIntegralPage = new Page<>(integralListQuery.getOffset(), integralListQuery.getLimit()); |
| | | |
| | | Page<UserIntegral> list = userIntegralChangesService.listAll(userIntegralPage,integralListQuery); |
| | | return list; |
| | | }catch (Exception e){ |
| | | e.printStackTrace(); |
| | | return new Page<>(); |
| | | } |
| | | } |
| | | } |