| | |
| | | @RestController |
| | | @RequestMapping("/villagemanager/") |
| | | public class VillageApi extends BaseController { |
| | | private String excelConvenientUrl = "http://panzhihua.nhys.cdnhxx.com/web/实有房屋导入模板.xlsx"; |
| | | // private String excelConvenientUrl = "http://panzhihua.nhys.cdnhxx.com/web/实有房屋导入模板.xlsx"; |
| | | @Value("${excel.excelConvenientUrl}") |
| | | private String excelConvenientUrl; |
| | | @Resource |
| | | private CommunityService communityService; |
| | | |
| | |
| | | |
| | | @ApiOperation(value = "下载模板-实有房屋") |
| | | @GetMapping(value = "/serve/download/template") |
| | | public R downloadTemplate(HttpServletResponse response) throws IOException, SftpException { |
| | | return R.ok(excelConvenientUrl); |
| | | public R downloadTemplate(HttpServletResponse response){ |
| | | return R.ok(excelConvenientUrl + "实有房屋导入模板.xlsx"); |
| | | } |
| | | |
| | | @ApiOperation(value = "excel导入实有房屋") |