|
@@ -3,7 +3,6 @@ package com.rongwei.bsserver.sys.controller;
|
|
|
import com.rongwei.bscommon.sys.service.EquFrockTestRecordService;
|
|
|
import com.rongwei.bscommon.sys.utils.FileCheckUtil;
|
|
|
import com.rongwei.rwcommon.base.R;
|
|
|
-import com.rongwei.rwcommon.utils.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
import org.springframework.web.bind.annotation.RequestParam;
|
|
@@ -26,13 +25,13 @@ public class EquFrockTestRecordController {
|
|
|
@RequestMapping("/importEquFrockTestRecord")
|
|
|
@ResponseBody
|
|
|
public R importEquFrockTestRecord(@RequestParam MultipartFile file, HttpServletRequest request) throws Exception {
|
|
|
- if (file == null){
|
|
|
+ if (file == null) {
|
|
|
return R.error("文件解析失败");
|
|
|
}
|
|
|
- String errorMsg = checkUtil.fileCheckDetail(file,"d55d1e0878874b179a1a8dbbcd507f18");
|
|
|
- if (StringUtils.isNotBlank(errorMsg)){
|
|
|
- return R.error(errorMsg);
|
|
|
- }
|
|
|
+// String errorMsg = checkUtil.fileCheckDetail(file,"d55d1e0878874b179a1a8dbbcd507f18");
|
|
|
+// if (StringUtils.isNotBlank(errorMsg)){
|
|
|
+// return R.error(errorMsg);
|
|
|
+// }
|
|
|
return equFrockTestRecordService.importEquFrockTestRecord(file);
|
|
|
}
|
|
|
}
|