|
@@ -2047,6 +2047,10 @@ public class TsaGoodsService {
|
|
|
goodsPriceRes.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
goodsPriceRes.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
|
goodsPriceRes.setRegNo(TsaSession.getInfo().getUserNo());
|
|
goodsPriceRes.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
|
|
|
|
|
+ //예약일시 시분 설정
|
|
|
|
|
+ goodsPriceRes.setApplyStdt(goodsPriceRes.getApplyStdt() + "0000");
|
|
|
|
|
+ goodsPriceRes.setApplyEddt(goodsPriceRes.getApplyEddt() + "5959");
|
|
|
|
|
+
|
|
|
// 엑셀조회를 위한 SEARCH 테이블 생성
|
|
// 엑셀조회를 위한 SEARCH 테이블 생성
|
|
|
SearchData searchData = new SearchData();
|
|
SearchData searchData = new SearchData();
|
|
|
searchData.setRegNo(goodsPriceRes.getRegNo());
|
|
searchData.setRegNo(goodsPriceRes.getRegNo());
|
|
@@ -2082,22 +2086,22 @@ public class TsaGoodsService {
|
|
|
return (cnt + 2) + "행의 예약가격을 확인해주세요.";
|
|
return (cnt + 2) + "행의 예약가격을 확인해주세요.";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- String nowDate = GagaDateUtil.getToday(); //yyyyMMdd
|
|
|
|
|
- SimpleDateFormat dateFormatParser = new SimpleDateFormat("yyyyMMdd");
|
|
|
|
|
|
|
+ String nowDate = GagaDateUtil.getToday(); //yyyyMMddHH
|
|
|
|
|
+ SimpleDateFormat dateFormatParser = new SimpleDateFormat("yyyyMMddHH");
|
|
|
dateFormatParser.setLenient(false);
|
|
dateFormatParser.setLenient(false);
|
|
|
try {
|
|
try {
|
|
|
dateFormatParser.parse(goodsPriceRes.getApplyStdt() );
|
|
dateFormatParser.parse(goodsPriceRes.getApplyStdt() );
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- return (cnt + 2) + "행의 예약시작일을 확인해주세요.";
|
|
|
|
|
|
|
+ return (cnt + 2) + "행의 예약시작일시을 확인해주세요.";
|
|
|
}
|
|
}
|
|
|
try {
|
|
try {
|
|
|
dateFormatParser.parse(goodsPriceRes.getApplyEddt() );
|
|
dateFormatParser.parse(goodsPriceRes.getApplyEddt() );
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
- return (cnt + 2) + "행의 예약종료일을 확인해주세요.";
|
|
|
|
|
|
|
+ return (cnt + 2) + "행의 예약종료일시을 확인해주세요.";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (Integer.parseInt(goodsPriceRes.getApplyStdt()) > Integer.parseInt(goodsPriceRes.getApplyEddt())) {
|
|
if (Integer.parseInt(goodsPriceRes.getApplyStdt()) > Integer.parseInt(goodsPriceRes.getApplyEddt())) {
|
|
|
- return (cnt + 2) + "행의 예약 시작일은 종료일보다 보다 클 수 없습니다.";
|
|
|
|
|
|
|
+ return (cnt + 2) + "행의 예약 시작일시은 종료일시보다 보다 클 수 없습니다.";
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (Integer.parseInt(goodsPriceRes.getApplyStdt()) <= Integer.parseInt(nowDate)) {
|
|
if (Integer.parseInt(goodsPriceRes.getApplyStdt()) <= Integer.parseInt(nowDate)) {
|