|
@@ -353,10 +353,20 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
String resultMsg = "";
|
|
String resultMsg = "";
|
|
|
int userNo = TsaSession.getInfo().getUserNo();
|
|
int userNo = TsaSession.getInfo().getUserNo();
|
|
|
int wateCnt = orderOcmService.getExtmallOrderExceluploadWateCnt(userNo);
|
|
int wateCnt = orderOcmService.getExtmallOrderExceluploadWateCnt(userNo);
|
|
|
- if( 0 == wateCnt) {
|
|
|
|
|
|
|
+ int uploadTmpCnt = orderOcmService.getExtmallOrderExceluploadTmpCnt(userNo); // 엑셀업로드건수
|
|
|
|
|
+ if( 0 == wateCnt && 0 < uploadTmpCnt) {
|
|
|
|
|
+ // 주문등록 시작된 시간 기록(세션이 살아있는 동안 결과페이지에서 이 시간 기준으로 등록된 데이터 보여주기 위함)
|
|
|
|
|
+ TsaSession.setAttribute("extmallOrdDtTime", GagaDateUtil.getTodayDateTime());
|
|
|
|
|
+
|
|
|
resultMsg = orderOcmService.saveExtmallorder(extmallOrder);
|
|
resultMsg = orderOcmService.saveExtmallorder(extmallOrder);
|
|
|
|
|
+
|
|
|
|
|
+ orderOcmService.deleteExtmallOrderUploadTmpList(userNo);
|
|
|
}else {
|
|
}else {
|
|
|
- resultMsg = "자신이 먼저 업로드한 건이 현재 처리중입니다. 완료 된 후 진행해주세요. (남은 대기건 수: " + wateCnt+")";
|
|
|
|
|
|
|
+ if( 0 == uploadTmpCnt ) {
|
|
|
|
|
+ resultMsg = "엑셀업로드를 먼저 진행해주세요.";
|
|
|
|
|
+ }else {
|
|
|
|
|
+ resultMsg = "자신이 먼저 업로드한 건이 현재 처리중입니다. 완료 된 후 진행해주세요. (남은 대기건 수: " + wateCnt+")";
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
return super.ok(resultMsg);
|
|
return super.ok(resultMsg);
|
|
@@ -375,7 +385,13 @@ public class TsaOcmController extends TsaBaseController {
|
|
|
public Collection<ExtmallOrder> getExtmallOrderUploadSecondList() {
|
|
public Collection<ExtmallOrder> getExtmallOrderUploadSecondList() {
|
|
|
ExtmallOrder extmallOrder = new ExtmallOrder();
|
|
ExtmallOrder extmallOrder = new ExtmallOrder();
|
|
|
extmallOrder.setRegNo(TsaSession.getInfo().getUserNo());
|
|
extmallOrder.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
-
|
|
|
|
|
|
|
+ extmallOrder.setResultDtTime(TsaSession.getAttribute("extmallOrdDtTime")); // 마지막 주문등록된 시작시간
|
|
|
|
|
+
|
|
|
|
|
+ if( StringUtils.isBlank(TsaSession.getAttribute("extmallOrdDtTime"))) {
|
|
|
|
|
+ TsaSession.setAttribute("extmallOrdDtTime", GagaDateUtil.getTodayDateTime()); // 조회안되도록
|
|
|
|
|
+ extmallOrder.setResultDtTime(TsaSession.getAttribute("extmallOrdDtTime"));
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return orderOcmService.getExtmallOrderUploadSecondList(extmallOrder);
|
|
return orderOcmService.getExtmallOrderUploadSecondList(extmallOrder);
|
|
|
}
|
|
}
|
|
|
|
|
|