|
@ -44,6 +44,28 @@ public class ImportController { |
|
|
*@Author: wuhuijuan |
|
|
*@Author: wuhuijuan |
|
|
*@date: 2019/10/21 10:04 |
|
|
*@date: 2019/10/21 10:04 |
|
|
*/ |
|
|
*/ |
|
|
|
|
|
@ApiOperation(value = "导入医院基础信息",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx") |
|
|
|
|
|
@ApiImplicitParams({ |
|
|
|
|
|
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file") |
|
|
|
|
|
}) |
|
|
|
|
|
@RequestMapping(value = "/importBase", method = RequestMethod.POST) |
|
|
|
|
|
public JsonResponse importPosition(@RequestParam(required = true) Part file) throws Exception { |
|
|
|
|
|
String allowedExts = "xls,xlsx"; |
|
|
|
|
|
String dir = WebConstant.UPLOAD_PROJECT_WBS + File.separator; |
|
|
|
|
|
String path = UploadFileUtil_Servlet3.uploadFile(file, allowedExts, dir); |
|
|
|
|
|
File excelFile = new File(dir+path); |
|
|
|
|
|
importService.importPosition(excelFile, 0); |
|
|
|
|
|
log.info("导入医院职位完成"); |
|
|
|
|
|
return JsonResponse.newInstance().ok(); |
|
|
|
|
|
} |
|
|
|
|
|
/** |
|
|
|
|
|
*@Description: |
|
|
|
|
|
*@Param: |
|
|
|
|
|
*@return: com.ccsens.ptpro.util.JsonResponse |
|
|
|
|
|
*@Author: wuhuijuan |
|
|
|
|
|
*@date: 2019/10/21 10:04 |
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
|
@ApiOperation(value = "导入医疗项目相关数据",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx") |
|
|
@ApiOperation(value = "导入医疗项目相关数据",notes = "文件大小不能超过20M,支持后缀:.xls|.xlsx") |
|
|
@ApiImplicitParams({ |
|
|
@ApiImplicitParams({ |
|
|
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file") |
|
|
@ApiImplicitParam(name = "file", value = "医疗项目表", required = true, paramType = "form",dataType = "__file") |
|
@ -80,6 +102,8 @@ public class ImportController { |
|
|
return JsonResponse.newInstance().ok(); |
|
|
return JsonResponse.newInstance().ok(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
*@Description: |
|
|
*@Description: |
|
|
*@Param: |
|
|
*@Param: |
|
|