|
|
@ -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.UpdateGroup; |
|
|
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.commons.tools.validator.group.DefaultGroup; |
|
|
|
|
|
import com.elink.esua.epdc.dao.AcitveProductExchangeDao; |
|
|
import com.elink.esua.epdc.dto.AcitveProductExchangeDTO; |
|
|
import com.elink.esua.epdc.dto.AcitveProductExchangeDTO; |
|
|
import com.elink.esua.epdc.excel.AcitveProductExchangeExcel; |
|
|
import com.elink.esua.epdc.excel.AcitveProductExchangeExcel; |
|
|
import com.elink.esua.epdc.service.AcitveProductExchangeService; |
|
|
import com.elink.esua.epdc.service.AcitveProductExchangeService; |
|
|
@ -49,6 +50,9 @@ public class AcitveProductExchangeController { |
|
|
@Autowired |
|
|
@Autowired |
|
|
private AcitveProductExchangeService acitveProductExchangeService; |
|
|
private AcitveProductExchangeService acitveProductExchangeService; |
|
|
|
|
|
|
|
|
|
|
|
@Autowired |
|
|
|
|
|
private AcitveProductExchangeDao acitveProductExchangeDao; |
|
|
|
|
|
|
|
|
@GetMapping("page") |
|
|
@GetMapping("page") |
|
|
public Result<PageData<AcitveProductExchangeDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
public Result<PageData<AcitveProductExchangeDTO>> page(@RequestParam Map<String, Object> params){ |
|
|
// PageData<AcitveProductExchangeDTO> page = acitveProductExchangeService.page(params);
|
|
|
// PageData<AcitveProductExchangeDTO> page = acitveProductExchangeService.page(params);
|
|
|
@ -88,7 +92,8 @@ public class AcitveProductExchangeController { |
|
|
|
|
|
|
|
|
@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<AcitveProductExchangeDTO> list = acitveProductExchangeService.list(params); |
|
|
// List<AcitveProductExchangeDTO> list = acitveProductExchangeService.list(params);
|
|
|
|
|
|
List<AcitveProductExchangeDTO> list = acitveProductExchangeDao.getPhrasePage(params); |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, AcitveProductExchangeExcel.class); |
|
|
ExcelUtils.exportExcelToTarget(response, null, list, AcitveProductExchangeExcel.class); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|