| | |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | | import jodd.util.StringUtil; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.beans.factory.annotation.Value; |
| | |
| | | @Autowired |
| | | private ITjDwGroupingService tjDwGroupingService; |
| | | |
| | | @Value("${path.filePath}") |
| | | private String value; |
| | | // @Value("${path.filePath}") |
| | | // private String value; |
| | | |
| | | @PostMapping("/importTemplate") |
| | | @ApiOperation(value = "导出excel表模板") |
| | | public void importTemplate(HttpServletResponse response) { |
| | | //原来的下载模板调用接口 |
| | | try { |
| | | String value = configService.selectConfigByKey("path_filePath"); |
| | | String base64String = PDFBinaryUtil.getPDFBinary(value + File.separator + "西安路泰机电科技有限公司.xls"); |
| | | if (null != base64String) { |
| | | PDFBinaryUtil.base64StringToPDF(base64String, FileUtil.mkdir(value).getPath() + File.separator + "团体预约Excel模版.xls"); |
| | |
| | | @ApiOperation(value = "查询体检预约列表接口(默认)") |
| | | public TableDataInfo list(TjReservation tjReservation) { |
| | | startPage(); |
| | | tjReservation.setIsExpire(2); |
| | | if(tjReservation.getIsExpire()==null) tjReservation.setIsExpire(2); |
| | | List<TjReservation> list = tjReservationService.selectTjReservationList(tjReservation); |
| | | // if(null !=list && list.size()>0){ |
| | | // for (TjReservation reservation : list) { |