|
|
@@ -1580,14 +1580,12 @@ public class TsfOrderService {
|
|
|
sb.append("\t\t\t</optionItem>\n");
|
|
|
}
|
|
|
|
|
|
- sb.append("\t\t</option>\n");
|
|
|
-
|
|
|
// 세트 구성상품 모든 옵션 경우의 수 조회 > 상품코드 오름차순, OPTCD 오름차순으로 정확히 보낼것 > 주문요청된 manageCode가 같아야함.
|
|
|
for (Goods comps1 : compsInfoList) {
|
|
|
if(comps1.getRnum() == 1) {
|
|
|
// 구성상품별 옵션 정보
|
|
|
String[] goods1optCds = comps1.getOptCd().split(",");
|
|
|
- String[] goods1addPrices = comps1.getItemStockQty().split(",");
|
|
|
+ String[] goods1addPrices = comps1.getItemPrices().split(",");
|
|
|
String[] goods1stockQty = comps1.getItemStockQty().split(",");
|
|
|
|
|
|
for(int g1 = 0 ; g1 < goods1optCds.length ; g1++) {
|
|
|
@@ -1601,7 +1599,7 @@ public class TsfOrderService {
|
|
|
if(comps2.getRnum() == 2) {
|
|
|
// 구성상품별 옵션 정보
|
|
|
String[] goods2optCds = comps2.getOptCd().split(",");
|
|
|
- String[] goods2addPrices = comps2.getItemStockQty().split(",");
|
|
|
+ String[] goods2addPrices = comps2.getItemPrices().split(",");
|
|
|
String[] goods2stockQty = comps2.getItemStockQty().split(",");
|
|
|
|
|
|
// 기존 정보 저장 (다시 돌아올 경우 이전 번호까지의 정보로 리셋하기 위함)
|
|
|
@@ -1622,7 +1620,7 @@ public class TsfOrderService {
|
|
|
if (comps3.getRnum() == 3) {
|
|
|
// 구성상품별 옵션 정보
|
|
|
String[] goods3optCds = comps3.getOptCd().split(",");
|
|
|
- String[] goods3addPrices = comps3.getItemStockQty().split(",");
|
|
|
+ String[] goods3addPrices = comps3.getItemPrices().split(",");
|
|
|
String[] goods3stockQty = comps3.getItemStockQty().split(",");
|
|
|
|
|
|
// 기존 정보 저장 (다시 돌아올 경우 이전 번호까지의 정보로 리셋하기 위함)
|
|
|
@@ -1643,7 +1641,7 @@ public class TsfOrderService {
|
|
|
if (comps4.getRnum() == 4) {
|
|
|
// 구성상품별 옵션 정보
|
|
|
String[] goods4optCds = comps4.getOptCd().split(",");
|
|
|
- String[] goods4addPrices = comps4.getItemStockQty().split(",");
|
|
|
+ String[] goods4addPrices = comps4.getItemPrices().split(",");
|
|
|
String[] goods4stockQty = comps4.getItemStockQty().split(",");
|
|
|
|
|
|
// 기존 정보 저장 (다시 돌아올 경우 이전 번호까지의 정보로 리셋하기 위함)
|
|
|
@@ -1662,7 +1660,7 @@ public class TsfOrderService {
|
|
|
if (comps5.getRnum() == 5) {
|
|
|
// 구성상품별 옵션 정보
|
|
|
String[] goods5optCds = comps5.getOptCd().split(",");
|
|
|
- String[] goods5addPrices = comps5.getItemStockQty().split(",");
|
|
|
+ String[] goods5addPrices = comps5.getItemPrices().split(",");
|
|
|
String[] goods5stockQty = comps5.getItemStockQty().split(",");
|
|
|
|
|
|
// 기존 정보 저장 (다시 돌아올 경우 이전 번호까지의 정보로 리셋하기 위함)
|
|
|
@@ -1706,6 +1704,8 @@ public class TsfOrderService {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ sb.append("\t\t</option>\n");
|
|
|
+
|
|
|
// 10. 배송정보조회
|
|
|
// 5.2.1 업체별 기본배송비, 무료배송비
|
|
|
String delvFeeCd = "";
|
|
|
@@ -1805,22 +1805,18 @@ public class TsfOrderService {
|
|
|
sb.append("\t\t<option>\n");
|
|
|
|
|
|
// 상품 옵션 전체 정보 조회
|
|
|
- Collection<GoodsStock> optList = goodsDao.getGoodsOptionInfoList(opt);
|
|
|
+ List<GoodsStock> optList = (ArrayList<GoodsStock>) goodsDao.getGoodsOptionInfoList(opt);
|
|
|
|
|
|
String[] colorNmList = new String[optList.size()];
|
|
|
- String[] colorList = new String[optList.size()];
|
|
|
String[] sizeList = new String[optList.size()];
|
|
|
int count = 0;
|
|
|
|
|
|
// 중복제거
|
|
|
for(GoodsStock optInfo : optList) {
|
|
|
- colorNmList[count] = optInfo.getColorNm();
|
|
|
- colorList[count] = optInfo.getOptCd1();
|
|
|
- sizeList[count] = optInfo.getOptCd2();
|
|
|
- count++;
|
|
|
+ colorNmList[count] = optInfo.getOptCd1() + "/" + optInfo.getColorNm();
|
|
|
+ sizeList[count++] = optInfo.getOptCd2();
|
|
|
}
|
|
|
colorNmList = new HashSet<String>(Arrays.asList(colorNmList)).toArray(new String[0]);
|
|
|
- colorList = new HashSet<String>(Arrays.asList(colorList)).toArray(new String[0]);
|
|
|
sizeList = new HashSet<String>(Arrays.asList(sizeList)).toArray(new String[0]);
|
|
|
|
|
|
if("Y".equals(goods.getSelfGoodsYn())) {
|
|
|
@@ -1829,11 +1825,11 @@ public class TsfOrderService {
|
|
|
sb.append("\t\t\t<optionItem>\n");
|
|
|
sb.append("\t\t\t\t<type>SELECT</type>\n");
|
|
|
sb.append("\t\t\t\t<name>색상</name>\n");
|
|
|
- int j = 0;
|
|
|
- for (String color : colorList) {
|
|
|
+ for (String color : colorNmList) {
|
|
|
+ String[] optCd1Info = color.split("/");
|
|
|
sb.append("\t\t\t\t<value>\n");
|
|
|
- sb.append("\t\t\t\t\t<id>").append(color).append("</id>\n");
|
|
|
- sb.append("\t\t\t\t\t<text>").append(colorNmList[j++]).append("</text>\n");
|
|
|
+ sb.append("\t\t\t\t\t<id>").append(optCd1Info[0]).append("</id>\n");
|
|
|
+ sb.append("\t\t\t\t\t<text>").append(optCd1Info[1]).append("</text>\n");
|
|
|
sb.append("\t\t\t\t</value>\n");
|
|
|
}
|
|
|
sb.append("\t\t\t</optionItem>\n");
|