张延森 4 years ago
parent
commit
a5bf724368

+ 6
- 0
src/main/java/com/huiju/estateagents/interceptor/AccessInterceptor.java View File

51
     private ITaThirdPartyMiniappConfigService taThirdPartyMiniappConfigService;
51
     private ITaThirdPartyMiniappConfigService taThirdPartyMiniappConfigService;
52
     
52
     
53
     private String[] whiteList = {
53
     private String[] whiteList = {
54
+            // swagger
55
+            "/swagger-resources",
56
+            "/webjars",
57
+            "/swagger-ui.html",
58
+            "/v2/api-docs",
59
+
54
             "/wx/chat", // 聊天暂时不鉴权
60
             "/wx/chat", // 聊天暂时不鉴权
55
             "/api/wx/login",
61
             "/api/wx/login",
56
             "/api/wx/tdCity",
62
             "/api/wx/tdCity",

+ 2
- 2
src/main/java/com/huiju/estateagents/property/controller/BuildingTreeController.java View File

30
 	private BuildingTreeServiceI buildingTreeService;
30
 	private BuildingTreeServiceI buildingTreeService;
31
 	
31
 	
32
 	// @ApiOperation(value = "上传楼栋信息接口", notes = "上传楼栋信息接口")
32
 	// @ApiOperation(value = "上传楼栋信息接口", notes = "上传楼栋信息接口")
33
-	@PostMapping(value = "/tree/uploadExcel", consumes = "multipart/*", headers = "content-type=multipart/form-data")
33
+	@PostMapping(value = "/buildingInfo/tree/uploadExcel", consumes = "multipart/*", headers = "content-type=multipart/form-data")
34
 	public ResponseBean uploadExcel(@RequestParam("file") MultipartFile file) {
34
 	public ResponseBean uploadExcel(@RequestParam("file") MultipartFile file) {
35
 		ResponseBean responseBean = new ResponseBean();
35
 		ResponseBean responseBean = new ResponseBean();
36
 		responseBean = buildingTreeService.getExcelData(file);
36
 		responseBean = buildingTreeService.getExcelData(file);
38
 	}
38
 	}
39
 	
39
 	
40
 	// @ApiOperation(value = "上传楼栋信息并入库", notes = "上传楼栋信息并入库")
40
 	// @ApiOperation(value = "上传楼栋信息并入库", notes = "上传楼栋信息并入库")
41
-	@PostMapping(value = "/tree/submitExcel", consumes = "multipart/*", headers = "content-type=multipart/form-data")
41
+	@PostMapping(value = "/buildingInfo/tree/submitExcel", consumes = "multipart/*", headers = "content-type=multipart/form-data")
42
 	public ResponseBean submitExcel(@RequestParam("file") MultipartFile file, HttpServletRequest request) {
42
 	public ResponseBean submitExcel(@RequestParam("file") MultipartFile file, HttpServletRequest request) {
43
 		ResponseBean responseBean = new ResponseBean();
43
 		ResponseBean responseBean = new ResponseBean();
44
 		TaUser userElement = getTaUser(request);
44
 		TaUser userElement = getTaUser(request);