|
|
@@ -579,20 +579,21 @@ public class TsfGoodsService {
|
|
|
if (tmtbSqList == null || tmtbSqList.isEmpty()) {
|
|
|
return result;
|
|
|
}
|
|
|
-
|
|
|
+ log.info("[tmtbSqList]={}",tmtbSqList);
|
|
|
+ log.info("[goods]={}",goods);
|
|
|
int rCount = 0; //다다익선 조회수
|
|
|
int tCount = goods.getMaxRownum(); //리턴 잔여수
|
|
|
if (tCount == 0) tCount = 20;
|
|
|
|
|
|
for (Tmtb tmtb: tmtbSqList) {
|
|
|
|
|
|
- tmtb.setTmtbSq(tmtb.getTmtbSq());
|
|
|
+ goods.setTmtbSq(tmtb.getTmtbSq());
|
|
|
Collection<Goods> tmtbGoodsList = goodsDao.getTmtbGoodsList(goods);
|
|
|
if (tmtbGoodsList == null || tmtbGoodsList.isEmpty()) {
|
|
|
continue;
|
|
|
}
|
|
|
|
|
|
- if (tCount == 0) { //잔여수가 없으면 종료
|
|
|
+ if (tCount <= 0) { //잔여수가 없으면 종료
|
|
|
break;
|
|
|
}
|
|
|
|