|
@@ -54,6 +54,7 @@ import com.style24.persistence.domain.GoodsPriceRes;
|
|
|
import com.style24.persistence.domain.GoodsResSell;
|
|
import com.style24.persistence.domain.GoodsResSell;
|
|
|
import com.style24.persistence.domain.GoodsSafeNo;
|
|
import com.style24.persistence.domain.GoodsSafeNo;
|
|
|
import com.style24.persistence.domain.GoodsSearch;
|
|
import com.style24.persistence.domain.GoodsSearch;
|
|
|
|
|
+import com.style24.persistence.domain.GoodsSupplyPrice;
|
|
|
import com.style24.persistence.domain.GoodsTnmRes;
|
|
import com.style24.persistence.domain.GoodsTnmRes;
|
|
|
import com.style24.persistence.domain.GoodsVideo;
|
|
import com.style24.persistence.domain.GoodsVideo;
|
|
|
import com.style24.persistence.domain.IfIncomelot;
|
|
import com.style24.persistence.domain.IfIncomelot;
|
|
@@ -1562,29 +1563,29 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/supply/price/list")
|
|
@PostMapping("/supply/price/list")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public Collection<GoodsPriceRes> getGoodsSupplyPriceList(@RequestBody GoodsPriceRes goodsPriceRes) {
|
|
|
|
|
|
|
+ public Collection<GoodsSupplyPrice> getGoodsSupplyPriceList(@RequestBody GoodsSupplyPrice goodsSupplyPrice) {
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
|
- if (!StringUtils.isBlank(goodsPriceRes.getBrandList())) {
|
|
|
|
|
|
|
+ if (!StringUtils.isBlank(goodsSupplyPrice.getBrandList())) {
|
|
|
try {
|
|
try {
|
|
|
- String[] arrBrandCd = mapper.readValue(goodsPriceRes.getBrandList(), String[].class);
|
|
|
|
|
- goodsPriceRes.setMultiBrand(arrBrandCd);
|
|
|
|
|
|
|
+ String[] arrBrandCd = mapper.readValue(goodsSupplyPrice.getBrandList(), String[].class);
|
|
|
|
|
+ goodsSupplyPrice.setMultiBrand(arrBrandCd);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- if (!StringUtils.isBlank(goodsPriceRes.getSupplyCompList())) {
|
|
|
|
|
|
|
+ if (!StringUtils.isBlank(goodsSupplyPrice.getSupplyCompList())) {
|
|
|
try {
|
|
try {
|
|
|
- String[] arrSupplyComp = mapper.readValue(goodsPriceRes.getSupplyCompList(), String[].class);
|
|
|
|
|
- goodsPriceRes.setMultiSupplyComp(arrSupplyComp);
|
|
|
|
|
|
|
+ String[] arrSupplyComp = mapper.readValue(goodsSupplyPrice.getSupplyCompList(), String[].class);
|
|
|
|
|
+ goodsSupplyPrice.setMultiSupplyComp(arrSupplyComp);
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- return goodsService.getGoodsSupplyPriceList(goodsPriceRes);
|
|
|
|
|
|
|
+ return goodsService.getGoodsSupplyPriceList(goodsSupplyPrice);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -1597,14 +1598,14 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
*/
|
|
*/
|
|
|
@PostMapping("/supply/price/save")
|
|
@PostMapping("/supply/price/save")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public GagaResponse saveGoodsSupplyPrice(@RequestBody Collection<GoodsPriceRes> goodsPriceResList) {
|
|
|
|
|
|
|
+ public GagaResponse saveGoodsSupplyPrice(@RequestBody Collection<GoodsSupplyPrice> goodsSupplyPriceList) {
|
|
|
|
|
|
|
|
if (!"G001_0000".equals(TsaSession.getInfo().getRoleCd()) && !"G001_A000".equals(TsaSession.getInfo().getRoleCd())
|
|
if (!"G001_0000".equals(TsaSession.getInfo().getRoleCd()) && !"G001_A000".equals(TsaSession.getInfo().getRoleCd())
|
|
|
&& !"G001_A001".equals(TsaSession.getInfo().getRoleCd()) && !"G001_A100".equals(TsaSession.getInfo().getRoleCd())
|
|
&& !"G001_A001".equals(TsaSession.getInfo().getRoleCd()) && !"G001_A100".equals(TsaSession.getInfo().getRoleCd())
|
|
|
&& !"G001_A101".equals(TsaSession.getInfo().getRoleCd())) {
|
|
&& !"G001_A101".equals(TsaSession.getInfo().getRoleCd())) {
|
|
|
throw new IllegalStateException("권한이 없습니다.");
|
|
throw new IllegalStateException("권한이 없습니다.");
|
|
|
}
|
|
}
|
|
|
- goodsService.saveGoodsSupplyPrice(goodsPriceResList);
|
|
|
|
|
|
|
+ goodsService.saveGoodsSupplyPrice(goodsSupplyPriceList);
|
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
return super.ok(message.getMessage("SUCC_0001"));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -2396,8 +2397,8 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
ModelAndView mav = new ModelAndView();
|
|
ModelAndView mav = new ModelAndView();
|
|
|
|
|
|
|
|
// 공급업체
|
|
// 공급업체
|
|
|
- String supplyCompCd = "";
|
|
|
|
|
- mav.addObject("supplyCompList", rendererService.getSupplyCompanyList(supplyCompCd, "Y"));
|
|
|
|
|
|
|
+// String supplyCompCd = "";
|
|
|
|
|
+// mav.addObject("supplyCompList", rendererService.getSupplyCompanyList(supplyCompCd, "Y"));
|
|
|
// 상품상태
|
|
// 상품상태
|
|
|
String[] exceptCds = {"G008_00"};
|
|
String[] exceptCds = {"G008_00"};
|
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
mav.addObject("goodsStatList", rendererService.getCommonCodeList("G008", "Y", exceptCds));
|
|
@@ -2440,6 +2441,25 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
goodsSearch.setMdNo(TsaSession.getInfo().getUserNo().toString());
|
|
goodsSearch.setMdNo(TsaSession.getInfo().getUserNo().toString());
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ if (!StringUtils.isBlank(goodsSearch.getBrandList())) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String[] arrBrandCd = mapper.readValue(goodsSearch.getBrandList(), String[].class);
|
|
|
|
|
+ goodsSearch.setMultiBrand(arrBrandCd);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new IllegalStateException("브랜드코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (!StringUtils.isBlank(goodsSearch.getSupplyCompList())) {
|
|
|
|
|
+ try {
|
|
|
|
|
+ String[] arrSupplyComp = mapper.readValue(goodsSearch.getSupplyCompList(), String[].class);
|
|
|
|
|
+ goodsSearch.setMultiSupplyCompCd(arrSupplyComp);
|
|
|
|
|
+ } catch (Exception e) {
|
|
|
|
|
+ e.printStackTrace();
|
|
|
|
|
+ throw new IllegalStateException("업체코드 검색중 오류로 인해 조회되지 않았습니다.");
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
|
goodsSearch.setPageable(new TscPageRequest(goodsSearch.getPageNo() - 1, goodsSearch.getPageSize()));
|
|
goodsSearch.setPageable(new TscPageRequest(goodsSearch.getPageNo() - 1, goodsSearch.getPageSize()));
|
|
|
goodsSearch.getPageable().setTotalCount(goodsService.getGoodsPriceResCount(goodsSearch));
|
|
goodsSearch.getPageable().setTotalCount(goodsService.getGoodsPriceResCount(goodsSearch));
|