|
|
@@ -382,7 +382,23 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- private String saveFile(MultipartFile file) throws IOException {
|
|
|
+ @Override
|
|
|
+ public ApiResult<String> DCRLogExcel(String accessKey, String requestId, String data) {
|
|
|
+ try {
|
|
|
+ String AE_MASTER = checkAccessKey(accessKey, requestId);
|
|
|
+ SpObserver.putSp(AE_MASTER);
|
|
|
+ Map<Object, Object> store = BaseUtil.parseFormStoreToMap(data);
|
|
|
+ store.put("dle_id",baseDao.getSeqId("dcrlogexcel_seq"));
|
|
|
+ String formSql = SqlUtil.getInsertSqlByMap(store, "DCRLogExcel");
|
|
|
+ baseDao.execute(formSql);
|
|
|
+ return ApiResponse.successRsp("0", "Success", requestId, "传输成功!");
|
|
|
+ }catch (Exception e) {
|
|
|
+ e.printStackTrace();
|
|
|
+ return ApiResponse.failRsp( "10020","传输失败"+(e.getMessage().length()>400 ? e.getMessage().substring(0,400):e.getMessage()));
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ private String saveFile(MultipartFile file) throws IOException {
|
|
|
String path = "/dcr";
|
|
|
File filep = new File(path);
|
|
|
String fileName = file.getOriginalFilename();
|