|
|
|
@ -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.UpdateGroup; |
|
|
|
import com.elink.esua.epdc.commons.tools.validator.group.DefaultGroup; |
|
|
|
import com.elink.esua.epdc.dao.ActivePointLogDao; |
|
|
|
import com.elink.esua.epdc.dto.ActivePointLogDTO; |
|
|
|
import com.elink.esua.epdc.dto.form.PointLogFormDTO; |
|
|
|
import com.elink.esua.epdc.excel.ActivePointLogExcel; |
|
|
|
@ -50,6 +51,9 @@ public class ActivePointLogController { |
|
|
|
@Autowired |
|
|
|
private ActivePointLogService activePointLogService; |
|
|
|
|
|
|
|
@Autowired |
|
|
|
private ActivePointLogDao activePointLogDao; |
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
|
public Result<PageData<ActivePointLogDTO>> page(@RequestParam Map<String, Object> params) { |
|
|
|
// PageData<ActivePointLogDTO> page = activePointLogService.page(params);
|
|
|
|
@ -89,7 +93,8 @@ public class ActivePointLogController { |
|
|
|
|
|
|
|
@GetMapping("export") |
|
|
|
public void export(@RequestParam Map<String, Object> params, HttpServletResponse response) throws Exception { |
|
|
|
List<ActivePointLogDTO> list = activePointLogService.list(params); |
|
|
|
// List<ActivePointLogDTO> list = activePointLogService.list(params);
|
|
|
|
List<ActivePointLogDTO> list = activePointLogDao.getPhrasePage(params); |
|
|
|
ExcelUtils.exportExcelToTarget(response, null, list, ActivePointLogExcel.class); |
|
|
|
} |
|
|
|
|
|
|
|
|