Commit 88835644 authored by 陈宏杰's avatar 陈宏杰

字段名定义

parent d2f94560
...@@ -206,9 +206,9 @@ public class ManualToolController { ...@@ -206,9 +206,9 @@ public class ManualToolController {
} }
@RequestMapping("/singleFileDataCheck") @RequestMapping("/singleFileDataCheck")
public String singleFileDataCheck(String type,String collectFileName,String fieldNames){ public String singleFileDataCheck(String type,String singleFileName,String fieldNames){
try { try {
fileReportService.singleFileDataCheck(type,collectFileName,fieldNames); fileReportService.singleFileDataCheck(type,singleFileName,fieldNames);
return "SUCCESS"; return "SUCCESS";
}catch (Exception e){ }catch (Exception e){
return e.getMessage(); return e.getMessage();
......
...@@ -910,7 +910,7 @@ public class BaiHangFileReportService { ...@@ -910,7 +910,7 @@ public class BaiHangFileReportService {
} }
} }
if (!CollectionUtils.isEmpty(checkResult)) { if (!CollectionUtils.isEmpty(checkResult)) {
File file = new File(HOST_PATH + type + "_fileDataCheck_" + DateUtils.formatDate(new Date(),"yyyyMMddHHmmsss") + ".txt"); File file = new File(HOST_PATH + singleFileName.replace("-R.cry","") + "_fileDataCheck_" + DateUtils.formatDate(new Date(),"yyyyMMddHHmmsss") + ".txt");
FileUtils.writeLines(file,checkResult,Boolean.TRUE); FileUtils.writeLines(file,checkResult,Boolean.TRUE);
} }
} catch (Exception e) { } catch (Exception e) {
......
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