|
@@ -4043,13 +4043,7 @@ public class TsaGoodsService {
|
|
|
throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- GoodsSearch search = new GoodsSearch();
|
|
|
|
|
- search.setConditionList(goods.getArrGoodsCd());
|
|
|
|
|
- search.setSearch("searchGoodsCd");
|
|
|
|
|
- int cnt = getGoodsListCount(search);
|
|
|
|
|
- if (cnt < goods.getArrGoodsCd().length) {
|
|
|
|
|
- throw new IllegalStateException("상품코드를 확인해주세요.");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
goods.setRegNo(TsaSession.getInfo().getUserNo());
|
|
goods.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
goods.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
goods.setUpdNo(TsaSession.getInfo().getUserNo());
|
|
@@ -4101,18 +4095,12 @@ public class TsaGoodsService {
|
|
|
throw new IllegalStateException("엑셀 파일의 건수를 " + EXCEL_ROW_COUNT + "건 이하로 사용하세요.");
|
|
throw new IllegalStateException("엑셀 파일의 건수를 " + EXCEL_ROW_COUNT + "건 이하로 사용하세요.");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- // 검증
|
|
|
|
|
- GoodsSearch search = new GoodsSearch();
|
|
|
|
|
- search.setSearch("searchGoodsCd");
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
int index = 0;
|
|
int index = 0;
|
|
|
for (Goods goods : goodsList) {
|
|
for (Goods goods : goodsList) {
|
|
|
|
|
|
|
|
- search.setGoodsCd(goods.getGoodsCd());
|
|
|
|
|
- int cnt = getGoodsListCount(search);
|
|
|
|
|
- if (cnt == 0) {
|
|
|
|
|
- throw new IllegalStateException("상품코드를 확인해주세요.");
|
|
|
|
|
- }
|
|
|
|
|
|
|
+
|
|
|
|
|
|
|
|
goods.setRegNo(TsaSession.getInfo().getUserNo());
|
|
goods.setRegNo(TsaSession.getInfo().getUserNo());
|
|
|
|
|
|