|
|
@@ -244,7 +244,7 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
|
|
|
@Override
|
|
|
@Transactional
|
|
|
- public int saveFilePath(String accessKey, String requestId,String path, int size, String filename,String sncode,String stepcode) throws Exception {
|
|
|
+ public int saveFilePath(String accessKey, String requestId,String path, int size, String filename,String sncode,String stepcode) {
|
|
|
String AE_MASTER = checkAccessKey(accessKey, requestId);
|
|
|
SpObserver.putSp(AE_MASTER);
|
|
|
int id = baseDao.getSeqId("filepath_seq");
|
|
|
@@ -255,12 +255,12 @@ public class MESDataServiceImpl implements MESDataService {
|
|
|
+ ",'" + accessKey+ "'," + DateUtil.parseDateToOracleString(Constant.YMD_HMS, new Date()) + ",'" + filename
|
|
|
+ "')");
|
|
|
baseDao.execute("insert into DCRFILEDATA (DF_ID ,DF_DATE,DF_INMAN,DF_ATTACH,DF_FILENAME,DF_RESULT,DF_STEPCODE)" +
|
|
|
- " select DCRFILEDATA_seq.nextval,sysdate,?,?,?,? from dual ",accessKey,id,filename,sncode,stepcode);
|
|
|
+ " select DCRFILEDATA_seq.nextval,sysdate,?,?,?,?,? from dual ",accessKey,id,filename,sncode,stepcode);
|
|
|
return id;
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public ApiResult<String> uploadDCRFile(String accessKey, String requestId, MultipartFile file, String sncode,String stepcode) throws IOException {
|
|
|
+ public ApiResult<String> uploadDCRFile(String accessKey, String requestId, MultipartFile file, String sncode,String stepcode) {
|
|
|
try {
|
|
|
String filename = file.getOriginalFilename();
|
|
|
String path = saveFile(file);
|