|
@@ -2,6 +2,7 @@ package com.style24.scm.biz.web;
|
|
|
|
|
|
|
|
import java.util.Collection;
|
|
import java.util.Collection;
|
|
|
|
|
|
|
|
|
|
+import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
import org.springframework.stereotype.Controller;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
@@ -183,9 +184,17 @@ public class TssBusinessController extends TssBaseController {
|
|
|
if (delvFeePolicyList == null || delvFeePolicyList.isEmpty()) {
|
|
if (delvFeePolicyList == null || delvFeePolicyList.isEmpty()) {
|
|
|
throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
throw new IllegalStateException(message.getMessage("FAIL_1001"));
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ boolean updateChk=false;
|
|
|
|
|
+
|
|
|
|
|
+ for (DelvFeePolicy delvFeePolicy : delvFeePolicyList) {
|
|
|
|
|
+ if (!StringUtils.isEmpty(delvFeePolicy.getDelvFeeCd())) {
|
|
|
|
|
+ updateChk=true;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
|
|
|
businessService.saveDeliveryFeePolicyList(delvFeePolicyList);
|
|
businessService.saveDeliveryFeePolicyList(delvFeePolicyList);
|
|
|
- return super.ok(message.getMessage("SUCC_0001"));
|
|
|
|
|
|
|
+ return updateChk? super.ok("신규 배송비 정책은 저장 되나, 기존 베송비 정책은 업데이트 할 수 없습니다."): super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|