|
@ -25,6 +25,7 @@ import com.elink.esua.epdc.commons.tools.validator.ValidatorUtils; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.AddGroup; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|
|
import com.elink.esua.epdc.commons.tools.validator.group.UpdateGroup; |
|
|
|
|
|
import com.elink.esua.epdc.dao.PointsLogsDao; |
|
|
import com.elink.esua.epdc.dto.EpdcAdjustUserPointsDTO; |
|
|
import com.elink.esua.epdc.dto.EpdcAdjustUserPointsDTO; |
|
|
import com.elink.esua.epdc.dto.PointsLogsDTO; |
|
|
import com.elink.esua.epdc.dto.PointsLogsDTO; |
|
|
import com.elink.esua.epdc.dto.UserDTO; |
|
|
import com.elink.esua.epdc.dto.UserDTO; |
|
@ -53,12 +54,21 @@ public class PointsLogsController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private PointsLogsService pointsLogsService; |
|
|
private PointsLogsService pointsLogsService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private PointsLogsDao pointsLogsDao; |
|
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
@GetMapping("page") |
|
|
public Result<PageData<PointsLogsDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
public Result<PageData<PointsLogsDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
PageData<PointsLogsDTO> page = pointsLogsService.page(params); |
|
|
PageData<PointsLogsDTO> page = pointsLogsService.page(params); |
|
|
return new Result<PageData<PointsLogsDTO>>().ok(page); |
|
|
return new Result<PageData<PointsLogsDTO>>().ok(page); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
@GetMapping("logpage") |
|
|
|
|
|
public Result<PageData<PointsLogsDTO>> logpage(@RequestParam Map<String, Object> params){ |
|
|
|
|
|
PageData<PointsLogsDTO> page = pointsLogsService.logpage(params); |
|
|
|
|
|
return new Result<PageData<PointsLogsDTO>>().ok(page); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@GetMapping("{id}") |
|
|
@GetMapping("{id}") |
|
|
public Result<PointsLogsDTO> get(@PathVariable("id") String id){ |
|
|
public Result<PointsLogsDTO> get(@PathVariable("id") String id){ |
|
|
PointsLogsDTO data = pointsLogsService.get(id); |
|
|
PointsLogsDTO data = pointsLogsService.get(id); |
|
@ -95,7 +105,7 @@ public class PointsLogsController { |
|
|
|
|
|
|
|
|
@GetMapping("export") |
|
|
@GetMapping("export") |
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
List<PointsLogsDTO> list = pointsLogsService.list(params); |
|
|
List<PointsLogsDTO> list = pointsLogsDao.selectListVolunteerPointsLogPage(params); |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, PointsLogsExcel.class); |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, PointsLogsExcel.class); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|