ExportController.java 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. package com.rongwei.controller;
  2. import com.bsentity.vo.ComProTempWordVo;
  3. import com.rongwei.bscommon.sys.dao.ExportDao;
  4. import com.rongwei.bscommon.sys.service.ExportService;
  5. import org.slf4j.Logger;
  6. import org.slf4j.LoggerFactory;
  7. import org.springframework.beans.factory.annotation.Autowired;
  8. import org.springframework.web.bind.annotation.PostMapping;
  9. import org.springframework.web.bind.annotation.RequestBody;
  10. import org.springframework.web.bind.annotation.RequestMapping;
  11. import org.springframework.web.bind.annotation.RestController;
  12. import javax.servlet.http.HttpServletResponse;
  13. import java.util.List;
  14. /**
  15. * 导出
  16. * @author Trj
  17. */
  18. @RestController
  19. @RequestMapping("export")
  20. public class ExportController {
  21. private final Logger log = LoggerFactory.getLogger(this.getClass().getName());
  22. @Autowired
  23. private ExportService exportService;
  24. @PostMapping("word/ptar")
  25. public void comProductListTempWord(@RequestBody List<String> ids , HttpServletResponse response){
  26. log.info("客诉单id Word导出 接口入参:{}",ids);
  27. exportService.exportComProductListTempWord(ids,response);
  28. }
  29. }