Explorar o código

[CS개선][클레임] 환불컨펌 사유 변경 기능 추가

jsh77b %!s(int64=4) %!d(string=hai) anos
pai
achega
5efb006598

+ 5 - 3
src/main/java/com/style24/admin/biz/service/TsaWithdrawService.java

@@ -212,10 +212,12 @@ public class TsaWithdrawService {
 	 */
 	public Collection<WmsWithdraw> getOptionInfo(Collection<WmsWithdraw> wmsWithdrawList) {
 		
-		for(WmsWithdraw data : wmsWithdrawList) {
-			
+		for (WmsWithdraw data : wmsWithdrawList) {
 			WmsWithdraw optionInfo = withdrawDao.getOptionInfo(data);
-			data.setGoodsCd(optionInfo.getGoodsCd());
+			// 2021.11.16 null 처리
+			if (optionInfo != null) {
+				data.setGoodsCd(optionInfo.getGoodsCd());
+			}
 		}
 		return wmsWithdrawList; 
 	}