|
@@ -14,6 +14,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
|
|
|
|
|
+import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import com.style24.admin.biz.service.TsaBusinessService;
|
|
import com.style24.admin.biz.service.TsaBusinessService;
|
|
|
import com.style24.admin.biz.service.TsaRendererService;
|
|
import com.style24.admin.biz.service.TsaRendererService;
|
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
@@ -67,6 +68,9 @@ public class TsaBusinessController extends TsaBaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private TscKcpService coreKcpService;
|
|
private TscKcpService coreKcpService;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ObjectMapper mapper;
|
|
|
|
|
+
|
|
|
/**
|
|
/**
|
|
|
* 공급벤더관리 화면
|
|
* 공급벤더관리 화면
|
|
|
* @return
|
|
* @return
|
|
@@ -235,6 +239,15 @@ public class TsaBusinessController extends TsaBaseController {
|
|
|
@PostMapping("/supply/company/delvloc/list")
|
|
@PostMapping("/supply/company/delvloc/list")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Collection<DeliveryLoc> getDeliveryLocList(@RequestBody DeliveryLoc delvLoc) {
|
|
public Collection<DeliveryLoc> getDeliveryLocList(@RequestBody DeliveryLoc delvLoc) {
|
|
|
|
|
+ if (!StringUtils.isBlank(delvLoc.getSupplyCompList())) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String[] arrSupplyComp = mapper.readValue(delvLoc.getSupplyCompList(), String[].class);
|
|
|
|
|
+ delvLoc.setMultiSupplyComp(arrSupplyComp);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return businessService.getDeliveryLocList(delvLoc);
|
|
return businessService.getDeliveryLocList(delvLoc);
|
|
|
}
|
|
}
|
|
|
|
|
|