Bladeren bron

去掉校验

DLC 1 jaar geleden
bovenliggende
commit
a44944ec08

+ 5 - 6
cx-equipment/cx-equipment-server/src/main/java/com/rongwei/bsserver/sys/controller/EquFrockTestRecordController.java

@@ -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);
     }
 }