Commit 9bad345c authored by kongfm's avatar kongfm

还原

parent d04ae2e0
package com.yeejoin.amos.boot.module.tzs.api.service; //package com.yeejoin.amos.boot.module.tzs.api.service;
//
import org.springframework.cloud.openfeign.FeignClient; //import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping; //import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod; //import org.springframework.web.bind.annotation.RequestMethod;
import org.typroject.tyboot.core.restful.utils.ResponseModel; //import org.typroject.tyboot.core.restful.utils.ResponseModel;
//
//
/** ///**
* 装备服务feign // * 装备服务feign
* // *
* @author Dell // * @author Dell
*/ // */
@FeignClient(name = "AMOS-EQUIPMANAGE", path = "equip") //@FeignClient(name = "AMOS-EQUIPMANAGE", path = "equip")
//@FeignClient(name = "AMOS-AUTOSYS", url = "http://172.16.10.66:8085", path = "fireAutoSys") ////@FeignClient(name = "AMOS-AUTOSYS", url = "http://172.16.10.66:8085", path = "fireAutoSys")
public interface EquipFeignService { //public interface EquipFeignService {
//
/** // /**
* 获取消防建筑树 // * 获取消防建筑树
* // *
* @return // * @return
*/ // */
@RequestMapping(value = "/building/BuildingtreeAndEquip", method = RequestMethod.GET) // @RequestMapping(value = "/building/BuildingtreeAndEquip", method = RequestMethod.GET)
ResponseModel<Object> getBuildingTreeAndEquip(); // ResponseModel<Object> getBuildingTreeAndEquip();
} //}
...@@ -97,6 +97,21 @@ public class ExcelController extends BaseController { ...@@ -97,6 +97,21 @@ public class ExcelController extends BaseController {
} }
} }
@TycloudOperation(needAuth = false, ApiLevel = UserType.AGENCY)
@ApiOperation(value = "上传文件数据-2")
@PostMapping("/upload2")
public void upload2(@RequestPart("file") MultipartFile multipartFile,
@RequestParam(required = false) String fileName,
@RequestParam(required = false) String sheetName,
@RequestParam String type) {
try {
excelService.commonUpload(multipartFile, new ExcelDto(fileName, sheetName, type));
} catch (Exception e) {
e.printStackTrace();
throw new RuntimeException("系统异常!");
}
}
/** /**
* 导出值班模板 * 导出值班模板
* *
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment