|
@@ -2,6 +2,7 @@ package com.style24.admin.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.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.core.env.Environment;
|
|
import org.springframework.core.env.Environment;
|
|
@@ -15,6 +16,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.TsaRendererService;
|
|
import com.style24.admin.biz.service.TsaRendererService;
|
|
|
import com.style24.admin.biz.service.TsaSystemService;
|
|
import com.style24.admin.biz.service.TsaSystemService;
|
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
import com.style24.admin.support.controller.TsaBaseController;
|
|
@@ -61,6 +63,9 @@ public class TsaSystemController extends TsaBaseController {
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private GagaPasswordEncoder passwordEncoder;
|
|
private GagaPasswordEncoder passwordEncoder;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private ObjectMapper mapper;
|
|
|
|
|
+
|
|
|
@Value("${upload.default.target.path}")
|
|
@Value("${upload.default.target.path}")
|
|
|
private String uploadTargetPath;
|
|
private String uploadTargetPath;
|
|
|
|
|
|
|
@@ -95,6 +100,15 @@ public class TsaSystemController extends TsaBaseController {
|
|
|
@PostMapping("/user/list")
|
|
@PostMapping("/user/list")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
public Collection<User> getUserList(@RequestBody User user) {
|
|
public Collection<User> getUserList(@RequestBody User user) {
|
|
|
|
|
+ if (!StringUtils.isBlank(user.getSupplyCompList())) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String[] arrSupplyComp = mapper.readValue(user.getSupplyCompList(), String[].class);
|
|
|
|
|
+ user.setMultiSupplyComp(arrSupplyComp);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
return systemService.getUserList(user);
|
|
return systemService.getUserList(user);
|
|
|
}
|
|
}
|
|
|
|
|
|