|
@@ -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,6 +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;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (updateChk) return super.error("배송비정책은 업데이트 할 수 없습니다.");
|
|
|
|
|
|
|
|
businessService.saveDeliveryFeePolicyList(delvFeePolicyList);
|
|
businessService.saveDeliveryFeePolicyList(delvFeePolicyList);
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
return super.ok(message.getMessage("SUCC_0001"));
|