|
@@ -307,7 +307,12 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
int userNo = TsaSession.getInfo().getUserNo();
|
|
int userNo = TsaSession.getInfo().getUserNo();
|
|
|
- orderOcmService.createExtmallOrderExcelupload(ecxelGoodsList, extmallOrder.getExcelFileNm(), userNo);
|
|
|
|
|
|
|
+ int wateCnt = orderOcmService.getExtmallOrderExceluploadWateCnt(userNo);
|
|
|
|
|
+ if( 0 == wateCnt) {
|
|
|
|
|
+ orderOcmService.createExtmallOrderExcelupload(ecxelGoodsList, extmallOrder.getExcelFileNm(), userNo);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ throw new IllegalStateException("자신이 먼저 업로드한 건이 현재 처리중입니다. 완료 된 후 진행해주세요. (남은 대기건 수: " + wateCnt+")");
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
// 파일 삭제
|
|
// 파일 삭제
|
|
|
GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(targetPath, extmallOrder.getExcelFileNm()));
|
|
GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(targetPath, extmallOrder.getExcelFileNm()));
|
|
@@ -345,7 +350,15 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
extmallOrder.setRegNo(TsaSession.getInfo().getUserNo());
|
|
extmallOrder.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
extmallOrder.setVendorId(TscConstants.VendorId.SHOPLINKER.value());
|
|
extmallOrder.setVendorId(TscConstants.VendorId.SHOPLINKER.value());
|
|
|
|
|
|
|
|
- String resultMsg = orderOcmService.saveExtmallorder(extmallOrder);
|
|
|
|
|
|
|
+ String resultMsg = "";
|
|
|
|
|
+ int userNo = TsaSession.getInfo().getUserNo();
|
|
|
|
|
+ int wateCnt = orderOcmService.getExtmallOrderExceluploadWateCnt(userNo);
|
|
|
|
|
+ if( 0 == wateCnt) {
|
|
|
|
|
+ resultMsg = orderOcmService.saveExtmallorder(extmallOrder);
|
|
|
|
|
+ }else {
|
|
|
|
|
+ resultMsg = "자신이 먼저 업로드한 건이 현재 처리중입니다. 완료 된 후 진행해주세요. (남은 대기건 수: " + wateCnt+")";
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return super.ok(resultMsg);
|
|
return super.ok(resultMsg);
|
|
|
}
|
|
}
|
|
|
|
|
|