|
@@ -315,7 +315,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
// 입점업체담당자는 업체코드 설정
|
|
// 입점업체담당자는 업체코드 설정
|
|
|
if ("G001_B000".equals(TsaSession.getInfo().getRoleCd())) {
|
|
if ("G001_B000".equals(TsaSession.getInfo().getRoleCd())) {
|
|
|
goodsSearch.setSupplyCompCd(TsaSession.getInfo().getSupplyCompCd());
|
|
goodsSearch.setSupplyCompCd(TsaSession.getInfo().getSupplyCompCd());
|
|
|
- goodsSearch.setMdId(TsaSession.getInfo().getUserId());
|
|
|
|
|
|
|
+ goodsSearch.setMdId(Integer.toString(TsaSession.getInfo().getUserNo()));
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// multi row 검색관련 처리
|
|
// multi row 검색관련 처리
|
|
@@ -355,7 +355,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
// 입점업체담당자는 업체코드 설정
|
|
// 입점업체담당자는 업체코드 설정
|
|
|
if ("G001_B000".equals(TsaSession.getInfo().getRoleCd())) {
|
|
if ("G001_B000".equals(TsaSession.getInfo().getRoleCd())) {
|
|
|
goodsSearch.setSupplyCompCd(TsaSession.getInfo().getSupplyCompCd());
|
|
goodsSearch.setSupplyCompCd(TsaSession.getInfo().getSupplyCompCd());
|
|
|
- goodsSearch.setMdId(TsaSession.getInfo().getUserId());
|
|
|
|
|
|
|
+ goodsSearch.setMdId(Integer.toString(TsaSession.getInfo().getUserNo()));
|
|
|
}
|
|
}
|
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
goodsSearch.setRegNo(TsaSession.getInfo().getUserNo()); // 엑셀조회시 로그인 사용자의 엑셀 상품조회시 사용
|
|
|
|
|
|
|
@@ -471,7 +471,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
|
- * 엑셀조회용 상품 저장- 상품목록용
|
|
|
|
|
|
|
+ * 엑셀조회용 상품 저장
|
|
|
*
|
|
*
|
|
|
* @param goods
|
|
* @param goods
|
|
|
* @return
|
|
* @return
|
|
@@ -479,9 +479,9 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
* @author eskim
|
|
* @author eskim
|
|
|
* @since 2020. 10. 20
|
|
* @since 2020. 10. 20
|
|
|
*/
|
|
*/
|
|
|
- @PostMapping("/search/goodslist/excelupload/save")
|
|
|
|
|
|
|
+ @PostMapping("/search/excelupload/save")
|
|
|
@ResponseBody
|
|
@ResponseBody
|
|
|
- public GagaResponse saveExceluploadGoodsList(@RequestBody Goods goods) throws Exception {
|
|
|
|
|
|
|
+ public GagaResponse saveExceluploadGoods(@RequestBody Goods goods) throws Exception {
|
|
|
|
|
|
|
|
int cnt = 0;
|
|
int cnt = 0;
|
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
ObjectMapper mapper = new ObjectMapper();
|
|
@@ -489,7 +489,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
String targetPath = GagaFileUtil.getConcatenationPath(env.getProperty("upload.excel.target.path"), "excel");
|
|
String targetPath = GagaFileUtil.getConcatenationPath(env.getProperty("upload.excel.target.path"), "excel");
|
|
|
|
|
|
|
|
// DB 처리 시 사용되는 파라미터명(셀명) 설정
|
|
// DB 처리 시 사용되는 파라미터명(셀명) 설정
|
|
|
- String[] cellName = {"goodsCd", "goodsNum"};
|
|
|
|
|
|
|
+ String[] cellName = {"goodsCd", "supplyGoodsCd"};
|
|
|
|
|
|
|
|
Collection<GagaMap> ecxelGoodsList = GagaExcelUtil.getList(GagaFileUtil.getConcatenationPath(targetPath, goods.getExcelFileNm()), 0, cellName, 0);
|
|
Collection<GagaMap> ecxelGoodsList = GagaExcelUtil.getList(GagaFileUtil.getConcatenationPath(targetPath, goods.getExcelFileNm()), 0, cellName, 0);
|
|
|
|
|
|
|
@@ -502,7 +502,7 @@ public class TsaGoodsController extends TsaBaseController {
|
|
|
cnt++;
|
|
cnt++;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- goodsService.saveExceluploadGoodsList(goodsList, goods.getExcelFileNm());
|
|
|
|
|
|
|
+ goodsService.saveExceluploadGoods(goodsList, goods.getExcelFileNm());
|
|
|
|
|
|
|
|
// 파일 삭제
|
|
// 파일 삭제
|
|
|
GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(targetPath, goods.getExcelFileNm()));
|
|
GagaFileUtil.deleteFile(GagaFileUtil.getConcatenationPath(targetPath, goods.getExcelFileNm()));
|