|
|
@@ -927,8 +927,24 @@ public class TssGoodsController extends TssBaseController {
|
|
|
if (goodsInfo == null || goodsInfo.getGoodsCd().isEmpty()) {
|
|
|
deleteErrorFileList(errorFileList);
|
|
|
deleteErrorFileList(errorFileDextList);
|
|
|
- throw new IllegalStateException(goodsImg.getSysImgNm() + "의" + comGoodsCd + " 상품코드가 존재하지 않습니다.");
|
|
|
+ throw new IllegalStateException(goodsImg.getSysImgNm() + " 의" + comGoodsCd + " 상품코드가 존재하지 않습니다.");
|
|
|
}
|
|
|
+
|
|
|
+ //촬영업체
|
|
|
+ if ("G001_E000".equals(TssSession.getInfo().getRoleCd())) {
|
|
|
+ if (!"Y".equals(goodsInfo.getSelfGoodsYn())) {
|
|
|
+ deleteErrorFileList(errorFileList);
|
|
|
+ deleteErrorFileList(errorFileDextList);
|
|
|
+ throw new IllegalStateException(goodsImg.getSysImgNm() + " 의" + comGoodsCd + " 상품코드를 확인해주세요.(자사상품만 등록 가능)");
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ if (!"N".equals(goodsInfo.getSelfGoodsYn())) {
|
|
|
+ deleteErrorFileList(errorFileList);
|
|
|
+ deleteErrorFileList(errorFileDextList);
|
|
|
+ throw new IllegalStateException(goodsImg.getSysImgNm() + " 의" + comGoodsCd + " 상품코드를 확인해주세요.(입점상품만 등록 가능)");
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
strBrandNo = String.valueOf(goodsInfo.getBrandNo());
|
|
|
brandDir = GagaStringUtil.getLPadding(strBrandNo, 10, "0");
|