초기소스
This commit is contained in:
@@ -0,0 +1,59 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.adscript.controller;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.adscript.service.BOAdScriptService;
|
||||
import com.wb.domainserver.domain.gcone.setup.adscript.vo.BOAdScriptVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.stereotype.Controller;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
@Slf4j
|
||||
@Controller
|
||||
@RequestMapping("/gcone/setup/adscript")
|
||||
public class BOAdScriptController {
|
||||
|
||||
@Autowired
|
||||
private BOAdScriptService service;
|
||||
|
||||
/**
|
||||
* 광고 스크립트 목록 조회
|
||||
* @param
|
||||
* @return ResponseEntity<?> 조회 결과
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/selectBOAdScriptList")
|
||||
public ResponseEntity<?> selectBOAdScriptList(@RequestBody BOAdScriptVO vo) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
|
||||
|
||||
//광고 스크립트 목록조회
|
||||
List<DataMap> selectAdScriptList = service.selectBOAdScriptList(vo);
|
||||
|
||||
//배송그룹 목록조회 결과 설정
|
||||
content.put("BOAdScriptVO", vo);
|
||||
content.put("selectAdScriptList", selectAdScriptList);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.adscript.mapper;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.adscript.vo.BOAdScriptVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BOAdScriptMapper {
|
||||
|
||||
|
||||
//광고스크립트 목록 조회
|
||||
public List<DataMap> selectBOAdScriptList(BOAdScriptVO vo);
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.adscript.service;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.adscript.mapper.BOAdScriptMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.adscript.vo.BOAdScriptVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.RequiredArgsConstructor;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Service
|
||||
@Slf4j
|
||||
@RequiredArgsConstructor
|
||||
public class BOAdScriptService {
|
||||
|
||||
@Autowired
|
||||
private BOAdScriptMapper mapper;
|
||||
|
||||
|
||||
/**
|
||||
* 광고스크립트 목록 조회
|
||||
* @param vo
|
||||
* @return List<DataMap> 광고스크립트 목록 조회
|
||||
*/
|
||||
public List<DataMap> selectBOAdScriptList(BOAdScriptVO vo) {
|
||||
List<DataMap> result = new ArrayList<>();
|
||||
|
||||
result = mapper.selectBOAdScriptList(vo);
|
||||
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.adscript.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOAdScriptVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String sopmalCd;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,172 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.dlvygrp.controller;
|
||||
|
||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.service.BODlvygrpService;
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* Dlvygrp Controller Class
|
||||
* @author 전일찬
|
||||
* @since 2023-11-27
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-11-27 전일찬 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/dlvygrp")
|
||||
public class BODlvygrpController {
|
||||
|
||||
@Autowired
|
||||
private BODlvygrpService service;
|
||||
@Autowired
|
||||
private PaginationProperties paginationProperties;
|
||||
|
||||
|
||||
/**
|
||||
* 배송그룹 목록조회
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return ResponseEntity<?> 목록조회 결과
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/selectBODlvyGroupList")
|
||||
public ResponseEntity<?> selectBODlvyGroupList(@RequestBody BODlvygrpVO dlvyGroup) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
dlvyGroup.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
//페이징 처리를 위한 pagination 객체 생성
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(dlvyGroup.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(dlvyGroup.getPageUnit());
|
||||
paginationInfo.setPageSize(paginationProperties.getPageSize());
|
||||
dlvyGroup.setPaginationInfo(paginationInfo);
|
||||
|
||||
//페이징 처리를 위한 값 설정
|
||||
dlvyGroup.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
dlvyGroup.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
dlvyGroup.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
//배송그룹 목록조회
|
||||
List<BODlvygrpVO> dlvyGroupList = service.selectBODlvyGroupList(dlvyGroup);
|
||||
log.debug("selectBODlvyGroupList's dlvyGroupList : {}", dlvyGroupList);
|
||||
|
||||
//배송그룹 목록조회 결과 설정
|
||||
content.put("BODlvygrpVO", dlvyGroup);
|
||||
content.put("paginationInfo", dlvyGroup.getPaginationInfo());
|
||||
content.put("dlvyGroupList", dlvyGroupList);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 등록
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return ResponseEntity<?> 등록 결과
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/insertBODlvyGroup")
|
||||
public ResponseEntity<?> insertBODlvyGroup(@RequestBody BODlvygrpVO dlvyGroup) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
dlvyGroup.setRegusr(user.getUserInnb());
|
||||
dlvyGroup.setUpdusr(user.getUserInnb());
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
dlvyGroup.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
//배송그릅 등록 처리
|
||||
Map<String, Object> message = service.insertBODlvyGroup(dlvyGroup);
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 정보 상세조회
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return ResponseEntity<?> 조회 결과
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/selectBODlvyGroupDtlForm")
|
||||
public ResponseEntity<?> selectBODlvyGroupDtlForm(@RequestBody BODlvygrpVO dlvyGroup) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
dlvyGroup.setUpdusr(user.getUserInnb());
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
dlvyGroup.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
dlvyGroup = service.selectBODlvyGroupDtlForm(dlvyGroup);
|
||||
content.put("dlvyGroup", dlvyGroup);
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 수정
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return ResponseEntity<?> 수정 결과
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/updateBODlvyGroupDtl")
|
||||
public ResponseEntity<?> updateBODlvyGroupDtl(@RequestBody BODlvygrpVO dlvyGroup) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
dlvyGroup.setUpdusr(user.getUserInnb());
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
dlvyGroup.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> message = service.updateBODlvyGroupDtl(dlvyGroup);
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 삭제
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return 배송그룹 삭제 결과
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/deleteBODlvyGroup")
|
||||
public ResponseEntity<?> deleteBODlvyGroup(@RequestBody BODlvygrpVO dlvyGroup) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
dlvyGroup.setUpdusr(user.getUserInnb());
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
dlvyGroup.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, String> message = service.deleteBODlvyGroup(dlvyGroup);
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.dlvygrp.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO;
|
||||
|
||||
/**
|
||||
*
|
||||
* Dlvygrp Mapper Class
|
||||
* @author 전일찬
|
||||
* @since 2023-11-27
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-11-27 전일찬 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BODlvygrpMapper {
|
||||
|
||||
/**
|
||||
* 배송그룹 총 갯수
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public Integer selectDlvyListCnt(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 목록
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public List<BODlvygrpVO> selectBODlvyGroupList(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 목록
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public List<BODlvygrpVO> selectBODlvyGroupAllList(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 등록
|
||||
* @return
|
||||
*/
|
||||
public int insertBODlvyGroup(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 정보 조회
|
||||
* @return
|
||||
*/
|
||||
public BODlvygrpVO selectBODlvyGroupDtlForm(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 수정
|
||||
* @return
|
||||
*/
|
||||
public int updateBODlvyGroupDtl(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 삭제
|
||||
* @return
|
||||
*/
|
||||
public int deleteBODlvyGroup(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 포함되어 있는 상품 검색
|
||||
* @param dlvyGroupInnb
|
||||
* @return
|
||||
*/
|
||||
public int isIncludeGoods(BODlvygrpVO dlvyGroup);
|
||||
|
||||
|
||||
/**
|
||||
* 배송그룹 반송지 업데이트
|
||||
* @param dlvyGroup
|
||||
*/
|
||||
void updateBODlvyGroupRtnlc(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 반송지 등록
|
||||
* @param dlvyGroup
|
||||
*/
|
||||
void insertBODlvyGroupAddress(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송그룹 반송지 삭제 (Y -> N)
|
||||
* @param dlvyGroup
|
||||
*/
|
||||
void deleteBODlvyGroupRtnlc(BODlvygrpVO dlvyGroup);
|
||||
|
||||
/**
|
||||
* 배송 반송지 조회
|
||||
* @param dataMap
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOReturnAddressInqire(BOOrdrVO vo);
|
||||
}
|
||||
@@ -0,0 +1,170 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.dlvygrp.service;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.mapper.BODlvygrpMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.dlvygrp.vo.BODlvygrpVO;
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 배송그룹 관리를 위한 service
|
||||
*
|
||||
* @author 전일찬
|
||||
* @since 2023-11-27
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-11-27 전일찬 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BODlvygrpService {
|
||||
|
||||
@Autowired
|
||||
private BODlvygrpMapper mapper;
|
||||
|
||||
/**
|
||||
* 배송그릅 건수 및 목록조회
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return List<BODlvygrpVO> 배송그룹 리스트
|
||||
*/
|
||||
public List<BODlvygrpVO> selectBODlvyGroupList(BODlvygrpVO dlvyGroup) {
|
||||
|
||||
List<BODlvygrpVO> dlvyGroupList = null;
|
||||
//배송그룹 건수 조회
|
||||
dlvyGroup.getPaginationInfo().setTotalRecordCount(mapper.selectDlvyListCnt(dlvyGroup));
|
||||
if(dlvyGroup.getPaginationInfo().getTotalRecordCount() > 0) {
|
||||
//배송그룹 건수가 0일 경우 배송그룹 목록조회를 실시하지 않음
|
||||
//배송그릅 목록조회
|
||||
dlvyGroupList = mapper.selectBODlvyGroupList(dlvyGroup);
|
||||
}
|
||||
return dlvyGroupList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그릅 목록조회
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return List<BODlvygrpVO> 배송그룹 리스트
|
||||
*/
|
||||
public List<BODlvygrpVO> selectBODlvyGroupAllList(BODlvygrpVO dlvyGroup) {
|
||||
|
||||
List<BODlvygrpVO> dlvyGroupList = mapper.selectBODlvyGroupAllList(dlvyGroup);
|
||||
return dlvyGroupList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 등록
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return Map<String, Object> 등록 결과
|
||||
*/
|
||||
@Transactional
|
||||
public Map<String, Object> insertBODlvyGroup(BODlvygrpVO dlvyGroup) {
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
try {
|
||||
|
||||
|
||||
mapper.insertBODlvyGroupAddress(dlvyGroup);
|
||||
mapper.insertBODlvyGroup(dlvyGroup);
|
||||
message.put("dlvyGroupInnb", dlvyGroup.getDlvyGroupInnb());
|
||||
message.put("result", "success");
|
||||
} catch (WnbtRestException wre){
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
message.put("result", "fail");
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 정보 조회
|
||||
* @param dlvyGroupInnb 파라미터VO
|
||||
* @return 배송그룹 정보 결과
|
||||
*/
|
||||
public BODlvygrpVO selectBODlvyGroupDtlForm(BODlvygrpVO dlvyGroup) {
|
||||
|
||||
dlvyGroup = mapper.selectBODlvyGroupDtlForm(dlvyGroup);
|
||||
return dlvyGroup;
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 수정
|
||||
* @param dlvyGroup 파라미터VO
|
||||
* @return Map<String, Object> 수정 결과
|
||||
*/
|
||||
@Transactional
|
||||
public Map<String, Object> updateBODlvyGroupDtl(BODlvygrpVO dlvyGroup) {
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
try {
|
||||
|
||||
mapper.updateBODlvyGroupRtnlc(dlvyGroup);
|
||||
int result = mapper.updateBODlvyGroupDtl(dlvyGroup);
|
||||
message.put("result", "success");
|
||||
message.put("dlvyGroupInnb", dlvyGroup.getDlvyGroupInnb());
|
||||
} catch (WnbtRestException wre){
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
message.put("result", "fail");
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 배송그룹 삭제
|
||||
* @param dlvyGroupInnb 파라미터VO
|
||||
* @return Map<String, Object> 삭제 결과
|
||||
*/
|
||||
@Transactional
|
||||
public Map<String, String> deleteBODlvyGroup(BODlvygrpVO dlvyGroup) {
|
||||
Map<String, String> message = new HashMap<>();
|
||||
// TODO FM_SHOP_GOODS 테이블 개선 작업 필요
|
||||
int goodsEa = mapper.isIncludeGoods(dlvyGroup);
|
||||
if(goodsEa < 1) {
|
||||
try {
|
||||
|
||||
int result = mapper.deleteBODlvyGroup(dlvyGroup);
|
||||
message.put("result", "success");
|
||||
} catch (WnbtRestException wre){
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
message.put("result", "fail");
|
||||
}
|
||||
}
|
||||
else {
|
||||
message.put("result", "includeGoods");
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 배송 반송지 조회
|
||||
* @param dlvyGroup
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOReturnAddressInqire(BOOrdrVO ordrVO) {
|
||||
DataMap dataMap = new DataMap();
|
||||
|
||||
dataMap = mapper.selectBOReturnAddressInqire(ordrVO);
|
||||
|
||||
return dataMap;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,79 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.dlvygrp.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BODlvygrpVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 배송그룹 고유번호 */
|
||||
private Integer dlvyGroupInnb;
|
||||
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
/** 배송그룹 구분 */
|
||||
private String dlvyGroupDvCd;
|
||||
|
||||
/** 배송그룹 이름 */
|
||||
private String dlvyGroupNm;
|
||||
|
||||
/** 기본배송비 */
|
||||
private String dftDlvyAmt;
|
||||
|
||||
/** 금액조건 */
|
||||
private String amtCndUseAt;
|
||||
|
||||
/** 금액조건 추가금액 */
|
||||
private String amtCndAditAmt;
|
||||
|
||||
/** 개수조건 */
|
||||
private String cntCndUseAt ;
|
||||
|
||||
/** 개수조건 추가금액 */
|
||||
private String cntCndAditAmt ;
|
||||
|
||||
/** 배송지역추가여부 */
|
||||
private String dlvyAreaAditAt;
|
||||
|
||||
/** 지역추가배송비 */
|
||||
private String areaAditDlvyAmt;
|
||||
|
||||
/** 묶음배송 사용여부 */
|
||||
private String bundleDlvyUseAt;
|
||||
|
||||
/** 묶음배송 조건금액 */
|
||||
private String bundleDlvyCndAmt;
|
||||
|
||||
|
||||
|
||||
/** 반송지 고유번호 */
|
||||
private Integer rtnlcInnb;
|
||||
|
||||
/** 반송지 우편번호 */
|
||||
private String rtnlcZip;
|
||||
|
||||
/** 반송지 주소 */
|
||||
private String rtnlcAdres;
|
||||
|
||||
/** 반송지 상세주소 */
|
||||
private String rtnlcDtlAdres;
|
||||
|
||||
/** 반송지 전화번호 */
|
||||
private String rtnlcTelnb;
|
||||
|
||||
|
||||
/*반품배송비왕복금액적용여부*/
|
||||
private String returnDlvyApplcAt;
|
||||
|
||||
/*반품배송비금액*/
|
||||
private String returnDlvyAmt;
|
||||
|
||||
/*왕복배송비금액*/
|
||||
private String exchngDlvyAmt;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.dlvygrp.vo;
|
||||
|
||||
public enum DlvyGroupDv {
|
||||
|
||||
ConditionFreeDlvy("무료배송(조건부)"), FreeDlvy("무료배송"), PayDlvy("유료배송");
|
||||
|
||||
private String krName;
|
||||
|
||||
DlvyGroupDv(String KrName) { this.krName = KrName; }
|
||||
|
||||
public String getKrName() { return krName; }
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.dlvygrp.vo;
|
||||
|
||||
public enum UseAt {
|
||||
Y,N
|
||||
}
|
||||
@@ -0,0 +1,200 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.gradbnef.controller;
|
||||
|
||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||
import com.wb.domainserver.domain.admin.store.mbrgrad.service.BOMaMbrgradService;
|
||||
import com.wb.domainserver.domain.admin.store.mbrgrad.vo.BOMaMbrgradVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.gradbnef.service.BOGradbnefService;
|
||||
import com.wb.domainserver.domain.gcone.setup.gradbnef.vo.BOGradbnefVO;
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import com.wb.domainserver.util.string.StringUtil;
|
||||
import lombok.Data;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
/**
|
||||
*
|
||||
* 회원 등급 혜택 설정 BO Service
|
||||
* @author 김혜인
|
||||
* @since 2023-12-26
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-26 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/gradbnef")
|
||||
public class BOGradbnefController {
|
||||
|
||||
@Autowired
|
||||
private BOGradbnefService service;
|
||||
@Autowired
|
||||
private BOMaMbrgradService maMbrgradService;
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
@Autowired
|
||||
private PaginationProperties paginationProperties;
|
||||
|
||||
|
||||
/**
|
||||
* 회원 등급 목록 조회
|
||||
* @param BOGradbnefVO
|
||||
* @return ResponseEntity<?>
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping (value = "/selectBOMbrGradFormInqire")
|
||||
public ResponseEntity<?> selectBOMbrGradFormInqire(@RequestBody BOGradbnefVO paramVO) {
|
||||
if(StringUtil.isEmpty(paramVO.getSopmalCd())){
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
paramVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
}
|
||||
|
||||
//페이징 정보 set
|
||||
Map<String, Object> reulstMap = new HashMap<>();
|
||||
reulstMap.put("paramVO", paramVO);
|
||||
return ApiResponse.of(reulstMap).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 회원 등급 목록 조회
|
||||
* @param BOGradbnefVO
|
||||
* @return ResponseEntity<?>
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping (value = "/selectBOMbrGradListInqire")
|
||||
public ResponseEntity<?> selectBOMbrGradListInqire(@RequestBody BOGradbnefVO paramVO) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
paramVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
//페이징 정보 set
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(paramVO.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(paramVO.getPageUnit());
|
||||
paginationInfo.setPageSize(paginationProperties.getPageSize());
|
||||
|
||||
paramVO.setPaginationInfo(paginationInfo);
|
||||
paramVO.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
paramVO.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
paramVO.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
//회원 등급 목록 조회
|
||||
List<DataMap> resultList = service.selectBOMbrGradListInqire(paramVO);
|
||||
|
||||
//회원 등급 산정 기간 조회(사용자)
|
||||
Map<String, Object> gradGroup = new HashMap<>();
|
||||
if("sopmal".equals(paramVO.getServerDv())){
|
||||
BOMaMbrgradVO maMbrgradVO = new BOMaMbrgradVO();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
maMbrgradVO.setSopmalCd(paramVO.getSopmalCd());
|
||||
}
|
||||
maMbrgradVO.setServerDv(paramVO.getServerDv());
|
||||
gradGroup = maMbrgradService.selectBOMbrGradUpdtForm(maMbrgradVO);
|
||||
}
|
||||
|
||||
//회원 등급 목록 조회 결과 및 페이징정보 넣기
|
||||
content.put("paramVO", paramVO);
|
||||
content.put("resultList", resultList);
|
||||
content.put("gradGroup", gradGroup);
|
||||
content.put("paginationInfo", paramVO.getPaginationInfo());
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 상세 조회
|
||||
* @param BOGradbnefVO
|
||||
* @return ResponseEntity<?>
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping (value = "/selectBOGradBnefRegistInqire")
|
||||
public ResponseEntity<?> selectBOGradBnefRegistInqire(@RequestBody BOGradbnefVO paramVO) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
paramVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
|
||||
Map<String, Object> gradDtl = service.selectBOGradBnefRegistInqire(paramVO);
|
||||
|
||||
//회원 등급 상세, 권한 그룹, vo
|
||||
content.put("gradDtl", gradDtl);
|
||||
content.put("vo", paramVO);
|
||||
|
||||
//회원 등급 상세 조회 결과 및 페이징정보 넣기
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 수정 및 추가
|
||||
* @param BOGradbnefVO
|
||||
* @return ResponseEntity
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping(value = "/updateBOGradBnefUpdt")
|
||||
public ResponseEntity<?> updateBOGradBnefUpdt(@RequestBody BOGradbnefVO paramVO) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
paramVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
//등록자 수정자 set
|
||||
paramVO.setRegusr(user.getUserInnb());
|
||||
paramVO.setUpdusr(user.getUserInnb());
|
||||
|
||||
//회원 등급 혜택 설정 저장
|
||||
service.updateBOGradBnefUpdt(paramVO);
|
||||
return ApiResponse.of("").ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 회원 등급 목록 조회
|
||||
* @param BOGradbnefVO
|
||||
* @return ResponseEntity<?>
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping (value = "/selectBOMbrGradListInqireWithoutPaging")
|
||||
public ResponseEntity<?> selectBOMbrGradListInqireWithoutPaging(@RequestBody BOGradbnefVO paramVO) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
paramVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content.put("paramVO", paramVO);
|
||||
//회원 등급 목록 조회
|
||||
List<DataMap> resultList = service.selectBOMbrGradListInqireWithoutPaging(paramVO);
|
||||
//회원 등급 목록 조회 결과 및 페이징정보 넣기
|
||||
content.put("resultList", resultList);
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,54 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.gradbnef.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.gradbnef.vo.BOGradbnefVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* 회원 등급 혜택 설정 BO mapper
|
||||
* @author 김혜인
|
||||
* @since 2023-12-26
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-26 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BOGradbnefMapper {
|
||||
/** 회원 등급 총 개수 */
|
||||
public Integer selectBOMbrGradListInqireTotCnt(BOGradbnefVO vo);
|
||||
/** 회원 등급 목록 */
|
||||
public List<DataMap> selectBOMbrGradListInqire(BOGradbnefVO vo);
|
||||
/** 회원 등급 상세 */
|
||||
public DataMap selectBOGradBnefRegistInqire(BOGradbnefVO vo);
|
||||
/** 회원 등급 혜택 수정 혹은 등록 */
|
||||
public Integer updateBOGradBnefUpdt(BOGradbnefVO vo);
|
||||
|
||||
|
||||
/** 회원 등급 목록 without pagination */
|
||||
public List<DataMap> selectBOMbrGradListInqireWithoutPaging(BOGradbnefVO vo);
|
||||
|
||||
/*회원 등급 수정*/
|
||||
public Integer updateBOMbrGradMapingUpdt(BOMbrVO vo);
|
||||
|
||||
/**
|
||||
* 회원 등급 수정전 등급명 수정 후 등급명 조회
|
||||
* @param mbrVO
|
||||
*/
|
||||
public DataMap selectMbrChngGradNm(BOMbrVO vo);
|
||||
}
|
||||
@@ -0,0 +1,141 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.gradbnef.service;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.mbr.mbr.vo.BOMbrVO;
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.vo.BOMaComncdVO;
|
||||
import com.wb.domainserver.domain.gcone.promtn.coupon.mapper.BOCouponMapper;
|
||||
import com.wb.domainserver.domain.gcone.promtn.coupon.vo.BOCupnpkVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.gradbnef.mapper.BOGradbnefMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.gradbnef.vo.BOGradbnefVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
/**
|
||||
*
|
||||
* 회원 등급 혜택 설정 BO Service
|
||||
* @author 김혜인
|
||||
* @since 2023-12-26
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-26 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BOGradbnefService {
|
||||
@Autowired
|
||||
private BOGradbnefMapper mapper;
|
||||
|
||||
@Autowired
|
||||
private BOCouponMapper cupnpkMapper;
|
||||
|
||||
@Autowired
|
||||
private BOMaComncdService bOMaComncdService;
|
||||
/**
|
||||
* 회원 등급 목록 조회
|
||||
* @param BOGradbnefVO
|
||||
* @return List<DataMap>
|
||||
*/
|
||||
public List<DataMap> selectBOMbrGradListInqire(BOGradbnefVO vo){
|
||||
List<DataMap> resultList = null;
|
||||
// 건수 조회
|
||||
Integer totCnt = mapper.selectBOMbrGradListInqireTotCnt(vo);
|
||||
// 건수 갯수 페이징vo에 set
|
||||
vo.getPaginationInfo().setTotalRecordCount(totCnt);
|
||||
// 건수 > 0 일시 자주쓰는 배송지 목록 조회
|
||||
if(totCnt > 0) {
|
||||
resultList = mapper.selectBOMbrGradListInqire(vo);
|
||||
}
|
||||
return resultList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 상세 조회
|
||||
* @param BOGradbnefVO
|
||||
* @return List<DataMap>
|
||||
*/
|
||||
public Map<String, Object> selectBOGradBnefRegistInqire(BOGradbnefVO vo) {
|
||||
Map<String, Object> resultMap = new HashMap<String, Object>();
|
||||
DataMap gradDtl = new DataMap();
|
||||
gradDtl = mapper.selectBOGradBnefRegistInqire(vo);
|
||||
|
||||
/**적립 단위 구분*/
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
bOMaComncdVO.setGroupCd("MLG_ACCML_UNIT_DV");
|
||||
List<?> accmlUnitDv = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
resultMap.put("gradDtl", gradDtl);
|
||||
resultMap.put("accmlUnitDv", accmlUnitDv);
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 설정 수정
|
||||
* @param vo
|
||||
*/
|
||||
public void updateBOGradBnefUpdt(BOGradbnefVO vo) {
|
||||
try {
|
||||
//service 호출
|
||||
mapper.updateBOGradBnefUpdt(vo);
|
||||
} catch (WnbtRestException wre) {
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 목록 조회 without pagination
|
||||
* @param vo
|
||||
* @return List<DataMap>
|
||||
*/
|
||||
public List<DataMap> selectBOMbrGradListInqireWithoutPaging(BOGradbnefVO vo){
|
||||
List<DataMap> resultList = null;
|
||||
|
||||
resultList = mapper.selectBOMbrGradListInqireWithoutPaging(vo);
|
||||
|
||||
return resultList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 수정
|
||||
* @param mbrVO
|
||||
*/
|
||||
public Integer updateBOMbrGradMapingUpdt(BOMbrVO mbrVO) {
|
||||
Integer result = 0;
|
||||
try {
|
||||
result = mapper.updateBOMbrGradMapingUpdt(mbrVO);
|
||||
} catch (WnbtRestException wre) {
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
/**
|
||||
* 회원 등급 수정전 등급명 수정 후 등급명 조회
|
||||
* @param mbrVO
|
||||
*/
|
||||
public DataMap selectMbrChngGradNm(BOMbrVO mbrVO) {
|
||||
DataMap message = new DataMap();
|
||||
message = mapper.selectMbrChngGradNm(mbrVO);
|
||||
return message;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.gradbnef.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 회원 등급 설정 VO
|
||||
*
|
||||
* @author 김혜인
|
||||
* @since 2023-12-26
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-26 김혜인 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOGradbnefVO extends AbstractVO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/** 쇼핑몰코드 */
|
||||
private String sopmalCd;
|
||||
/** 회원등급 고유번호 */
|
||||
private String mbrGradInnb;
|
||||
/** 회원등급 고유번호 */
|
||||
private String mbrGradGroupInnb;
|
||||
/** 등급조정조건코드*/
|
||||
private String gradMdatCndCd;
|
||||
/** 등급조정조건코드명 */
|
||||
private String gradMdatCndCdNm;
|
||||
/** 등급명 */
|
||||
private String gradNm;
|
||||
/** 마일리지적립금액 */
|
||||
private String mlgAccmlAmt;
|
||||
/** 마일리지최대적립금액 */
|
||||
private String mlgMxmmAccmlAmt;
|
||||
/** 마일리지 유효 월 수 */
|
||||
private String mlgValidMtCnt;
|
||||
/** 구매건수 */
|
||||
private String purchsCnt;
|
||||
/** 실결제금액 */
|
||||
private String rlSetleAmt;
|
||||
/** 마일리지 지급여부 */
|
||||
private String mlgPymnt;
|
||||
/** 마일리지 적립구분 */
|
||||
private String mlgAccmlUnitDvCd;
|
||||
/** 마일리지최대적립금액 설정 안함 여부 체크 */
|
||||
private String mlgMxmmAccmlmnyAmtChk;
|
||||
/** 마일리지 지금 유효기간 설정 안함 여부 체크*/
|
||||
private String validPdChk;
|
||||
/** 검색 회원명 */
|
||||
private String searchGradNm;
|
||||
/*권한그룹id*/
|
||||
private List<String> authorIdArr;
|
||||
|
||||
/*서버구분*/
|
||||
private String serverDv;
|
||||
}
|
||||
@@ -0,0 +1,135 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.mngr.controller;
|
||||
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.vo.BOMaComncdVO;
|
||||
import com.wb.domainserver.domain.admin.user.mngr.service.BOJobUserService;
|
||||
import com.wb.domainserver.domain.admin.user.mngr.vo.BOJobUserVO;
|
||||
import com.wb.domainserver.domain.gcone.common.service.BOCommonService;
|
||||
import com.wb.domainserver.domain.gcone.common.vo.BOCommonVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.mngr.sevice.BOMngrInfoService;
|
||||
import com.wb.domainserver.domain.gcone.setup.mngr.vo.BOMngrInfoVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/mngrInfo")
|
||||
public class BOMngrInfoController {
|
||||
@Autowired
|
||||
private BOMngrInfoService service;
|
||||
|
||||
@Autowired
|
||||
private BOJobUserService jobUserService;
|
||||
|
||||
@Autowired
|
||||
private BOMaComncdService bOMaComncdService;
|
||||
|
||||
@Autowired
|
||||
private BOCommonService boCommonService;
|
||||
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
|
||||
@Autowired
|
||||
private BOCommonService commonService;
|
||||
|
||||
/**
|
||||
* 관리자 정보 수정 폼
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping(value = "/selectBOMngrInfoUpdtForm")
|
||||
public ResponseEntity<?> selectBOMngrInfoUpdtForm(@RequestBody BOJobUserVO vo) {
|
||||
// 작성자 정보 추출
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
vo.setMngrInnb(BigInteger.valueOf(user.getUserInnb()));
|
||||
// if("01".equals(user.getSysDvCd())){
|
||||
// vo.setSopmalCd(user.getSopmalCd());
|
||||
// }
|
||||
|
||||
DataMap result = new DataMap();
|
||||
|
||||
String secretKey = commonService.selectSecretkey();
|
||||
vo.setSecretKey(secretKey);
|
||||
List<DataMap> detail = new ArrayList<>();
|
||||
detail = jobUserService.selectBOJobUserDetail(vo);
|
||||
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
bOMaComncdVO.setGroupCd("EMAIL_ADRES");
|
||||
List<?> emailCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
bOMaComncdVO.setGroupCd("MNGR_DV");
|
||||
List<?> mngrDvCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
List<DataMap> managerCodeList = new ArrayList<>();
|
||||
managerCodeList = jobUserService.managerCode();
|
||||
|
||||
result.put("detail", detail);
|
||||
result.put("mngrDvCdList", mngrDvCdList);
|
||||
result.put("emailCdList", emailCdList);
|
||||
|
||||
return ApiResponse.of(result).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 관리자 정보 수정
|
||||
*
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/updateBOMngrInfoUpdt")
|
||||
public ResponseEntity<?> updateBOMngrInfoUpdt(@RequestBody BOMngrInfoVO vo) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
vo.setUpdusr(user.getUserInnb());
|
||||
// if("01".equals(user.getSysDvCd())){
|
||||
// vo.setSopmalCd(user.getSopmalCd());
|
||||
// }
|
||||
|
||||
String secretKey = boCommonService.selectSecretkey();
|
||||
vo.setSecretKey(secretKey);
|
||||
|
||||
DataMap resultInfo = new DataMap();
|
||||
|
||||
/*비밀번호 인증 수정*/
|
||||
if("Y".equals(vo.getPwChngAt())){
|
||||
/* 암호화 필수값
|
||||
pass(사용자입력 비밀번호)
|
||||
encptKeyDvCd(암호화키구분코드) => 01(회원),02(관리자), 03(매장)
|
||||
idntfcInnb(식별고유번호) => 회원/관리자/매장관리자 고유번호*/
|
||||
BOCommonVO commVO = new BOCommonVO();
|
||||
commVO.setPass(vo.getChngPw());
|
||||
commVO.setEncptKeyDvCd("02");
|
||||
commVO.setIdntfcInnb(String.valueOf(vo.getMngrInnb()));
|
||||
String encptyPw = boCommonService.generateKey(commVO);
|
||||
vo.setPassword(encptyPw);
|
||||
resultInfo.put("chngePwAt","Y");
|
||||
}else{
|
||||
resultInfo.put("chngePwAt","N");
|
||||
}
|
||||
|
||||
/*관리자 정보 수정*/
|
||||
int result = service.updateBOMngrInfoUpdt(vo);
|
||||
|
||||
return ApiResponse.of(resultInfo).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.mngr.mapper;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.mngr.vo.BOMngrInfoVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BOMngrInfoMapper {
|
||||
public int updateBOMngrInfoUpdt(BOMngrInfoVO vo);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.mngr.sevice;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.mngr.mapper.BOMngrInfoMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.mngr.vo.BOMngrInfoVO;
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BOMngrInfoService {
|
||||
@Autowired
|
||||
private BOMngrInfoMapper mapper;
|
||||
|
||||
/**
|
||||
* 관리자 정보 수정
|
||||
*
|
||||
* @param vo
|
||||
*/
|
||||
public int updateBOMngrInfoUpdt(BOMngrInfoVO vo){
|
||||
int result = 0;
|
||||
try {
|
||||
result = mapper.updateBOMngrInfoUpdt(vo);
|
||||
} catch (WnbtRestException wre) {
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
return result;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,47 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.mngr.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigInteger;
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOMngrInfoVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
// 업무 사용자 정보 (FM_MANAGER)
|
||||
/** 업무사용자 고유번호 */
|
||||
private BigInteger mngrInnb;
|
||||
|
||||
/** 사용자명(관리자명) */
|
||||
private String mngrNm;
|
||||
|
||||
/** 사용자비밀번호(관리자) */
|
||||
/*현재비밀번호*/
|
||||
private String password;
|
||||
/*변경된 비밀번호*/
|
||||
private String chngPw;
|
||||
/*변경된 비밀번호 확인*/
|
||||
private String cnfirmChngPw;
|
||||
/*현재비밀번호*/
|
||||
private String pwChngAt;
|
||||
|
||||
/** 이메일 */
|
||||
private String email;
|
||||
|
||||
/** 전화번호 */
|
||||
private String telnb;
|
||||
|
||||
/** 휴대전화번호 */
|
||||
private String mbtlnb;
|
||||
|
||||
/** 암호화키 */
|
||||
public String secretKey;
|
||||
|
||||
// 데이터 처리
|
||||
private String email1;
|
||||
|
||||
private String email2;
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.controller;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.service.BONbkkService;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.vo.BOSetupNbkkVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
/**
|
||||
*
|
||||
* 주문 BO controller
|
||||
* @author 김혜인
|
||||
* @since 2023-11-28
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-12 개발자명을 입력하세요. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/nbkk")
|
||||
public class BONbkkController {
|
||||
@Autowired
|
||||
private BONbkkService service;
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
|
||||
/**
|
||||
* 무통장 설정 값 조회
|
||||
* @param BOSetupNbkkVO
|
||||
* @return ResponseEntity.jsp
|
||||
* @throws JsonProcessingException
|
||||
* @throws JsonMappingException
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping(value = "/selectBONbkkSetupList")
|
||||
public ResponseEntity<?> selectBONbkkSetupList(@RequestBody BOSetupNbkkVO boNbkkVO) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
boNbkkVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
Map<String, Object> nbkkList = new HashMap<>();
|
||||
nbkkList.put("nbkkList",service.selectBOSopmalSetupList(boNbkkVO));
|
||||
//주문 목록 조회 정보 전달
|
||||
return ApiResponse.of(nbkkList).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 무통장 저장 및 수정
|
||||
* @param BOSetupNbkkVO
|
||||
* @return ResponseEntity
|
||||
*/
|
||||
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping(value = "/updateBOPNbkkSetup")
|
||||
public ResponseEntity<?> updateBOPNbkkSetup(@RequestBody BOSetupNbkkVO boNbkkVO) {
|
||||
//등록자 수정자 set
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
boNbkkVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
boNbkkVO.setRegusr(user.getUserInnb());
|
||||
boNbkkVO.setUpdusr(user.getUserInnb());
|
||||
//무통장 설정 저장
|
||||
service.updateBOPNbkkSetup(boNbkkVO);
|
||||
return ApiResponse.of("").ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.mapper;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrSrchVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.vo.BOSetupNbkkVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.vo.NbkkInfoVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
/**
|
||||
*
|
||||
* 무통장 BO Serivce
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-15 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BONbkkMapper {
|
||||
/** 무통장 계좌 조회*/
|
||||
public List<DataMap> selectBOAcntSetup(BOSetupNbkkVO boNbkkVO);
|
||||
/** 환불 계좌 조회*/
|
||||
public List<DataMap> selectBORefundAcntSetup(BOSetupNbkkVO boNbkkVO);
|
||||
/** 무통장 계좌 삭제*/
|
||||
public Integer deleteBOSopmalAcnt(BOSetupNbkkVO boNbkkVO);
|
||||
/** 무통장 계좌 등록*/
|
||||
public Integer insertBOSopmalAcnt(NbkkInfoVO boNbkkVO);
|
||||
|
||||
/**
|
||||
* 쇼핑몰 무통장자동입금 사용 여부 반환
|
||||
* @return
|
||||
*/
|
||||
public Integer selectBOAcntUseAtInqire(BOOrdrSrchVO ordrSrchVO);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,131 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.service;
|
||||
|
||||
import com.wb.domainserver.domain.admin.store.sopmal.service.BOMaSopmalService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.vo.BOMaComncdVO;
|
||||
import com.wb.domainserver.domain.gcone.ordr.ordr.vo.BOOrdrSrchVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.mapper.BONbkkMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.vo.BOSetupNbkkVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.nbkk.vo.NbkkInfoVO;
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
/**
|
||||
*
|
||||
* 무통장 설정 BO Serivce
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-15 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BONbkkService {
|
||||
@Autowired
|
||||
private BOMaSopmalService service;
|
||||
@Autowired
|
||||
private BOMaComncdService bOMaComncdService;
|
||||
@Autowired
|
||||
private BONbkkMapper mapper;
|
||||
|
||||
/**
|
||||
* 무통장 공통 코드 조회
|
||||
* @param BOSetupNbkkVO
|
||||
* @return Map
|
||||
*/
|
||||
public Map<String, Object> selectBOSopmalSetupList(BOSetupNbkkVO boNbkkVO) {
|
||||
/** 설정 정보 및, 은행 구분, 은행 코드 조회 */
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
|
||||
/** 은행 구분, 은행 코드 이름, 계좌 구분 조회*/
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
bOMaComncdVO.setGroupCd("BANK_NM_DV");
|
||||
List<?> bankCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
bOMaComncdVO.setGroupCd("ACNT_DV");
|
||||
List<?> acntDv = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
bOMaComncdVO.setGroupCd("ACNT_DTL_DV");
|
||||
List<?> acntDtlDv = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
/*무통장 입금 계좌 조회*/
|
||||
List<DataMap> acntSetup = new ArrayList<>();
|
||||
acntSetup = mapper.selectBOAcntSetup(boNbkkVO);
|
||||
|
||||
/*환불 입금 계좌 조회*/
|
||||
List<DataMap> refundAcntSetup = new ArrayList<>();
|
||||
refundAcntSetup = mapper.selectBORefundAcntSetup(boNbkkVO);
|
||||
|
||||
|
||||
/*map객체에 넣기*/
|
||||
resultMap.put("bankCdList", bankCdList);
|
||||
resultMap.put("acntDv", acntDv);
|
||||
resultMap.put("acntDtlDv", acntDtlDv);
|
||||
resultMap.put("acntSetup", acntSetup);
|
||||
resultMap.put("refundAcntSetup", refundAcntSetup);
|
||||
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 무통장 설정 저장 및 등록
|
||||
* @param BOSetupNbkkVO
|
||||
*/
|
||||
public Map<String,Object> updateBOPNbkkSetup(BOSetupNbkkVO boNbkkVO) {
|
||||
Map<String,Object> message = new HashMap<>();
|
||||
try {
|
||||
Integer regResult = 0;
|
||||
mapper.deleteBOSopmalAcnt(boNbkkVO); //
|
||||
List<NbkkInfoVO> nbkkInfo = new ArrayList<>();
|
||||
nbkkInfo = boNbkkVO.getNbkkInfo();
|
||||
if (!nbkkInfo.isEmpty()) {
|
||||
for (NbkkInfoVO vo : nbkkInfo) {
|
||||
vo.setSopmalCd(boNbkkVO.getSopmalCd());
|
||||
vo.setRegusr(boNbkkVO.getRegusr());
|
||||
vo.setUpdusr(boNbkkVO.getUpdusr());
|
||||
regResult = mapper.insertBOSopmalAcnt(vo);
|
||||
}
|
||||
}
|
||||
if(regResult > 0){
|
||||
message.put("result","success");
|
||||
}
|
||||
} catch (WnbtRestException wre) {
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 쇼핑몰 무통장자동입금 사용 여부 반환
|
||||
* @return
|
||||
*/
|
||||
public String selectBOAcntUseAtInqire(BOOrdrSrchVO ordrSrchVO) {
|
||||
String useAt = "";
|
||||
|
||||
Integer result = mapper.selectBOAcntUseAtInqire(ordrSrchVO);
|
||||
if (result > 0) {
|
||||
useAt = "Y";
|
||||
} else {
|
||||
useAt = "N";
|
||||
}
|
||||
|
||||
return useAt;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,37 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.vo;
|
||||
|
||||
import lombok.Data;
|
||||
/**
|
||||
* 무통장 설정 무통장 입금 수단 VO
|
||||
*
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-16 김혜인 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
public class BOSetupNbkDpstVO {
|
||||
// 무통장 입금 수단 내용 => AbstractVO extends 안함
|
||||
/** 무통장구분 */
|
||||
private String nbkkDv;
|
||||
/** 무통장은행코드 */
|
||||
private String nbkkBankCd;
|
||||
/** 무통장은행명 */
|
||||
private String nbkkBankNm;
|
||||
/** 무통장예금주명 */
|
||||
private String nbkkDpstrNm;
|
||||
/** 무통장 계좌번호 */
|
||||
private String Acntnb;
|
||||
/** 사용여부 */
|
||||
private String nbkkUseAt;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.vo;
|
||||
|
||||
import lombok.Data;
|
||||
/**
|
||||
* 무통장 설정 반품 배송비 입금 계좌 VO
|
||||
*
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-16 김혜인 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
public class BOSetupNbkRtnVO {
|
||||
// 반품 배송비 내용 => AbstractVO extends 안함
|
||||
/** 반품배송비무통장구분 */
|
||||
private String rtngudDlvyAmtNbkkDv;
|
||||
/** 반품배송비무통장은행코드 */
|
||||
private String rtngudDlvyAmtNbkkBankCd;
|
||||
/** 반품배송비무통장은행명 */
|
||||
private String rtngudDlvyAmtNbkkBankNm;
|
||||
/** 반품배송비무통장예금주명 */
|
||||
private String rtngudDlvyAmtNbkkDpstrNm;
|
||||
/** 반품배송비무통장 계좌번호 */
|
||||
private String rtngudDlvyAmtAcntnb;
|
||||
/** 반품배송비 무통장 사용여부 */
|
||||
private String rtngudNbkkUseAt;
|
||||
}
|
||||
@@ -0,0 +1,48 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.vo;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.List;
|
||||
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 무통장 설정 VO
|
||||
*
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-16 김혜인 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
public class BOSetupNbkkVO extends AbstractVO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
/*계좌구분*/
|
||||
private String acntDvCd;
|
||||
/*계좌상세구분*/
|
||||
private String acntDtlDvCd;
|
||||
/*은행코드*/
|
||||
private String bankCd;
|
||||
/*예금주명*/
|
||||
private String dpstrNm;
|
||||
/*계좌번호*/
|
||||
private String acntnb;
|
||||
/*사용여부*/
|
||||
private String useAt;
|
||||
|
||||
private List<NbkkInfoVO> nbkkInfo;
|
||||
/*무통장설정 고유번호*/
|
||||
private BigInteger acntSetupInnb;
|
||||
}
|
||||
@@ -0,0 +1,46 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.nbkk.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.math.BigInteger;
|
||||
|
||||
/**
|
||||
* 무통장 설정 무통장 입금 수단 VO
|
||||
*
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-16 김혜인 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class NbkkInfoVO extends AbstractVO {
|
||||
private static final long serialVersionUID = 1L;
|
||||
/*고유번호*/
|
||||
private BigInteger acntSetupInnb;
|
||||
/*쇼핑몰 코드*/
|
||||
private String sopmalCd;
|
||||
/*계좌구분*/
|
||||
private String acntDvCd;
|
||||
/*계좌상세구분*/
|
||||
private String acntDtlDvCd;
|
||||
/*은행코드*/
|
||||
private String bankCd;
|
||||
/*예금주명*/
|
||||
private String dpstrNm;
|
||||
/*계좌번호*/
|
||||
private String acntnb;
|
||||
/*사용여부*/
|
||||
private String useAt;
|
||||
}
|
||||
@@ -0,0 +1,92 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.ordrmngr.controller;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.service.BOOrdrMngrService;
|
||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.vo.BOSetupOrdrVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* 주문 BO controller
|
||||
* @author 김혜인
|
||||
* @since 2023-11-28
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-12 개발자명을 입력하세요. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/ordrmngr")
|
||||
public class BOOOrdrMngrController {
|
||||
@Autowired
|
||||
private BOOrdrMngrService service;
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
|
||||
/**
|
||||
* 주문 설정 값 조회
|
||||
* @param boOrdrVO
|
||||
* @return ResponseEntity.jsp
|
||||
* @throws JsonProcessingException
|
||||
* @throws JsonMappingException
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping(value = "/selectBOOrdrSetupList")
|
||||
public ResponseEntity<?> selectBOOrdrSetupList(@RequestBody BOSetupOrdrVO boOrdrVO) throws JsonMappingException, JsonProcessingException {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
boOrdrVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
//주문 목록 조회 정보 전달
|
||||
return ApiResponse.of(service.selectBOOrdrSetupList(boOrdrVO)).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
/**
|
||||
* 주문 저장 및 수정
|
||||
* @param boOrdrVO
|
||||
* @return ResponseEntity
|
||||
*/
|
||||
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping(value = "/updateBOOrdrSetup")
|
||||
public ResponseEntity<?> updateBOOrdrSetup(@RequestBody BOSetupOrdrVO boOrdrVO) {
|
||||
//등록자 수정자 set
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
boOrdrVO.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
boOrdrVO.setRegusr(user.getUserInnb());
|
||||
boOrdrVO.setUpdusr(user.getUserInnb());
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
//주문 설정 저장
|
||||
result = service.updateBOOrdrSetup(boOrdrVO);
|
||||
return ApiResponse.of(result).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.ordrmngr.mapper;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.goods.goods.vo.BOGoodsVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.vo.BOSetupOrdrVO;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 주문 BO Mapper
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-15 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BOOrdrMngrMapper {
|
||||
// 주문 설정 조회
|
||||
public DataMap selectBOOrdrSetup(BOSetupOrdrVO boOrdrVO);
|
||||
|
||||
// 주문 설정 수정
|
||||
public Integer updateBOOrdrSetup(BOSetupOrdrVO boOrdrVO);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.ordrmngr.service;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.fasterxml.jackson.core.JsonProcessingException;
|
||||
import com.fasterxml.jackson.databind.JsonMappingException;
|
||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import com.wb.domainserver.domain.admin.store.sopmal.service.BOMaSopmalService;
|
||||
import com.wb.domainserver.domain.admin.store.sopmal.vo.BOShopSetupVO;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.vo.BOMaComncdVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.mapper.BOOrdrMngrMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.ordrmngr.vo.BOSetupOrdrVO;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
/**
|
||||
*
|
||||
* 주문 설정 BO Serivce
|
||||
* @author 김혜인
|
||||
* @since 2023-12-15
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-15 김혜인. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BOOrdrMngrService {
|
||||
@Autowired
|
||||
private BOMaSopmalService service;
|
||||
@Autowired
|
||||
private BOMaComncdService bOMaComncdService;
|
||||
@Autowired
|
||||
private BOOrdrMngrMapper mapper;
|
||||
|
||||
/**
|
||||
* 주문 설정 값 조회
|
||||
* @param SetupOrdrVO
|
||||
*/
|
||||
public Map<String, Object> selectBOOrdrSetupList(BOSetupOrdrVO boOrdrVO) {
|
||||
/************ 주문 설정 정보 조회 *****************/
|
||||
DataMap ordrSetupInfo = new DataMap();
|
||||
ordrSetupInfo = mapper.selectBOOrdrSetup(boOrdrVO);
|
||||
|
||||
/*********************코드 조회******************/
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
/**적립 단위 구분*/
|
||||
bOMaComncdVO.setGroupCd("DSCNT_UNIT_DV");
|
||||
List<?> accmlUnitDv = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
/** map객체에 넣기*/
|
||||
Map<String, Object> resultMap = new HashMap<>();
|
||||
resultMap.put("ordrSetupInfo", ordrSetupInfo);
|
||||
resultMap.put("accmlUnitDv", accmlUnitDv);
|
||||
return resultMap;
|
||||
}
|
||||
|
||||
/**
|
||||
* 주문 설정 수정
|
||||
* @param SetupOrdrVO
|
||||
*/
|
||||
public Map<String, Object> updateBOOrdrSetup(BOSetupOrdrVO boOrdrVO) {
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
try {
|
||||
log.debug("boOrdrVO{}",boOrdrVO);
|
||||
mapper.updateBOOrdrSetup(boOrdrVO);
|
||||
message.put("result","success");
|
||||
} catch (WnbtRestException wre) {
|
||||
throw new WnbtRestException(wre.getMessage());
|
||||
} catch (Exception e) {
|
||||
log.error(e.getMessage(), e);
|
||||
}
|
||||
return message;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.ordrmngr.vo;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
|
||||
/**
|
||||
* 주문 설정 VO
|
||||
*
|
||||
* @author 김혜인
|
||||
* @since 2023-12-20
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-20 김혜인 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
public class BOSetupOrdrVO extends AbstractVO {
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
/**마일리지 지급 사용여부*/
|
||||
private String mlgPymntAt;
|
||||
/**마일리지 지급 구분코드*/
|
||||
private String mlgPymntDvCd;
|
||||
/**마일리지 지급 비율*/
|
||||
private String mlgPymntRt;
|
||||
/**마일리지 최대 지급 금액*/
|
||||
private String mlgMxmmPymntAmt;
|
||||
/**마일리지 최대 지급 금액 사용여부*/
|
||||
private String mlgMxmmPymntAmtAt;
|
||||
/**마일리지 유효기간*/
|
||||
private String mlgValidPd;
|
||||
/**마일리지 유효기간 사용여부*/
|
||||
private String mlgValidPdAt;
|
||||
/**여러곳배송여부*/
|
||||
private String multiDlvyAt;
|
||||
/**정기배송여부*/
|
||||
private String fdrmDlvyAt;
|
||||
/**선물하기여부*/
|
||||
private String giftDlvyAt;
|
||||
/**선물하기자동취소기간*/
|
||||
private String giftDlvyAtmcCanclPd;
|
||||
/*충전형마일리지 사용여부*/
|
||||
private String cashAt;
|
||||
}
|
||||
@@ -0,0 +1,194 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.popup.controller;
|
||||
|
||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||
import com.wb.domainserver.domain.gcone.setup.popup.service.BOPopupService;
|
||||
import com.wb.domainserver.domain.gcone.setup.popup.vo.BOPopupVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
* 팝업 관리를 위한 Controller
|
||||
*
|
||||
* @author 리브가
|
||||
* @since 2024-02-05
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-02-05 리브가 최초 생성
|
||||
*
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/popup")
|
||||
public class BOPopupController {
|
||||
|
||||
@Autowired
|
||||
private BOPopupService service;
|
||||
|
||||
@Autowired
|
||||
private PaginationProperties paginationProperties;
|
||||
|
||||
/**
|
||||
* 팝업 목록 조회
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOPopupList")
|
||||
public ResponseEntity<?> selectBOPopupList(@RequestBody BOPopupVO vo) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
// 페이징 객체 생성 & 페이징정보 할당
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(vo.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(vo.getPageUnit());
|
||||
paginationInfo.setPageSize(paginationProperties.getPageSize());
|
||||
|
||||
vo.setPaginationInfo(paginationInfo);
|
||||
vo.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
vo.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
vo.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
|
||||
// 목록 조회
|
||||
List<DataMap> list = service.selectBOPopupList(vo);
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content.put("BOPopupVO", vo);
|
||||
content.put("list", list);
|
||||
content.put("paginationInfo", vo.getPaginationInfo());
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 상세조회
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOPopupDtl")
|
||||
public ResponseEntity<?> selectBOPopupDtl(@RequestBody BOPopupVO vo) {
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
|
||||
// 상세조회
|
||||
DataMap list = new DataMap();
|
||||
list = service.selectBOPopupDtl(vo);
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content.put("BOPopupVO", vo);
|
||||
content.put("list", list);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 등록
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/insertBOPopup")
|
||||
public ResponseEntity<?> insertBOPopup(@RequestBody BOPopupVO vo) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
vo.setRegusr(user.getUserInnb());
|
||||
|
||||
//팝업 등록 로직
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.insertBOPopup(vo);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 수정
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOPopupDtl")
|
||||
public ResponseEntity<?> updateBOPopupDtl(@RequestBody BOPopupVO vo) {
|
||||
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
vo.setUpdusr(user.getUserInnb());
|
||||
|
||||
//팝업 수정 로직
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOPopupDtl(vo);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 삭제
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/deleteBOPopup")
|
||||
public ResponseEntity<?> deleteBOPopup(@RequestBody BOPopupVO vo) {
|
||||
//사용자 정보 추출 및 적용
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
vo.setSopmalCd(user.getSopmalCd());
|
||||
}
|
||||
vo.setUpdusr(user.getUserInnb());
|
||||
|
||||
//팝업 삭제 로직
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.deleteBOPopup(vo);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOPopupPrevew")
|
||||
public ResponseEntity<?> selectBOPopupPrevew() {
|
||||
return ApiResponse.of("").ok();
|
||||
}
|
||||
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOPopupDtlForm")
|
||||
public ResponseEntity<?> selectBOPopupDtlForm() {
|
||||
return ApiResponse.of("").ok();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,75 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.popup.mapper;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.popup.vo.BOPopupVO;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
* 팝업 관리를 위한 Mapper Interface
|
||||
*
|
||||
* @author 리브가
|
||||
* @since 2024-02-05
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-02-05 리브가 최초 생성
|
||||
*
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BOPopupMapper {
|
||||
|
||||
/**
|
||||
* 팝업 등록
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public void insertBOPopup(BOPopupVO vo);
|
||||
|
||||
/**
|
||||
* 팝업 수정
|
||||
* @param
|
||||
* @return
|
||||
*/
|
||||
public void updateBOPopupDtl(BOPopupVO vo);
|
||||
|
||||
/**
|
||||
* 팝업 삭제
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public void deleteBOPopup(BOPopupVO vo);
|
||||
|
||||
/**
|
||||
* 팝업 건수
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public Integer selectBOPopupListCnt(BOPopupVO vo);
|
||||
|
||||
/**
|
||||
* 팝업 리스트
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOPopupList(BOPopupVO vo);
|
||||
|
||||
/**
|
||||
* 팝업 상세
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOPopupDtl(BOPopupVO vo);
|
||||
|
||||
}
|
||||
@@ -0,0 +1,169 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.popup.service;
|
||||
|
||||
import java.util.Collection;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.popup.mapper.BOPopupMapper;
|
||||
import com.wb.domainserver.domain.gcone.setup.popup.vo.BOPopupVO;
|
||||
import com.wb.domainserver.exception.WnbtRestException;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.util.CollectionUtils;
|
||||
|
||||
/**
|
||||
* 팝업 관리를 위한 Service
|
||||
*
|
||||
* @author 리브가
|
||||
* @since 2024-02-05
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-02-05 리브가 최초 생성
|
||||
*
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@Service
|
||||
public class BOPopupService {
|
||||
|
||||
@Autowired
|
||||
private BOPopupMapper mapper;
|
||||
|
||||
/**
|
||||
* 팝업 등록
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> insertBOPopup(BOPopupVO vo) {
|
||||
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
|
||||
try {
|
||||
|
||||
List<HashMap<String,Object>> fileStoreResult = vo.getFileInfo();
|
||||
|
||||
//파일정보 셋팅
|
||||
for(int i=0; i<fileStoreResult.size();i++) {
|
||||
HashMap<String, Object> fileData = fileStoreResult.get(i);
|
||||
|
||||
vo.setOrginlFilNm(fileData.get("fileName").toString()); //원본파일명
|
||||
vo.setSysFilNm(fileData.get("fileId").toString()); // 시스템파일명
|
||||
double fileSizeKB = Double.parseDouble(fileData.get("fileSize").toString());// / 1024.0;
|
||||
vo.setFilMg((long)fileSizeKB); //파일크기
|
||||
vo.setFilTy(fileData.get("fileExt").toString()); //파일타입(확장자)
|
||||
vo.setFilCours(fileData.get("filePath").toString()); //파일경로
|
||||
}
|
||||
|
||||
mapper.insertBOPopup(vo);
|
||||
message.put("getPopupInnb", vo.getPopupInnb());
|
||||
message.put("result", "success");
|
||||
} catch (Exception e) {
|
||||
throw new WnbtRestException(e.getMessage());
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 수정
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> updateBOPopupDtl(BOPopupVO vo) {
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
|
||||
try {
|
||||
|
||||
List<HashMap<String,Object>> fileStoreResult = vo.getFileInfo();
|
||||
if(!CollectionUtils.isEmpty(fileStoreResult)){
|
||||
for(int i=0; i<fileStoreResult.size();i++) {
|
||||
HashMap<String, Object> fileData = fileStoreResult.get(i);
|
||||
|
||||
vo.setOrginlFilNm(fileData.get("fileName").toString()); //원본파일명
|
||||
vo.setSysFilNm(fileData.get("fileId").toString()); // 시스템파일명
|
||||
double fileSizeKB = Double.parseDouble(fileData.get("fileSize").toString());// / 1024.0;
|
||||
vo.setFilMg((long)fileSizeKB); //파일크기
|
||||
vo.setFilTy(fileData.get("fileExt").toString()); //파일타입(확장자)
|
||||
vo.setFilCours(fileData.get("filePath").toString()); //파일경로
|
||||
}
|
||||
|
||||
vo.setFileAddAt("Y");
|
||||
|
||||
}else{
|
||||
vo.setFileAddAt("N");
|
||||
}
|
||||
|
||||
|
||||
mapper.updateBOPopupDtl(vo);
|
||||
message.put("getPopupInnb", vo.getPopupInnb());
|
||||
message.put("result", "success");
|
||||
} catch (Exception e) {
|
||||
throw new WnbtRestException(e.getMessage());
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 삭제
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public Map<String, Object> deleteBOPopup(BOPopupVO vo) {
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
|
||||
try {
|
||||
mapper.deleteBOPopup(vo);
|
||||
message.put("getPopupInnb", vo.getPopupInnb());
|
||||
message.put("result", "success");
|
||||
} catch (Exception e) {
|
||||
throw new WnbtRestException(e.getMessage());
|
||||
}
|
||||
|
||||
return message;
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 리스트
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOPopupList(BOPopupVO vo) {
|
||||
List<DataMap> resultList = null;
|
||||
|
||||
// 목록 건수
|
||||
Integer totCnt = mapper.selectBOPopupListCnt(vo);
|
||||
// 리스트 & 페이징
|
||||
vo.getPaginationInfo().setTotalRecordCount(totCnt);
|
||||
if(totCnt > 0 ) {
|
||||
resultList = mapper.selectBOPopupList(vo);
|
||||
}
|
||||
|
||||
return resultList;
|
||||
}
|
||||
|
||||
/**
|
||||
* 팝업 상세조회
|
||||
* @param vo
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOPopupDtl(BOPopupVO vo) {
|
||||
DataMap resultList = null;
|
||||
resultList = mapper.selectBOPopupDtl(vo);
|
||||
return resultList;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.popup.vo;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOPopupVO extends AbstractVO {
|
||||
|
||||
/** 타이머 노출 여부 */
|
||||
private String tmeSetupAt;
|
||||
/** 시간설정 */
|
||||
private String tmeSetup;
|
||||
|
||||
/** 모바일 팝업크기 가로 */
|
||||
private Integer mblPopupMgWth;
|
||||
/** 모바일 팝업크기 세로 */
|
||||
private Integer mblPopupMgVtc;
|
||||
/** 모바일 팝업위치 X */
|
||||
private Integer mblPopupLcX;
|
||||
/** 모바일 팝업위치 Y */
|
||||
private Integer mblPopupLcY;
|
||||
|
||||
/** 팝업 고유번호 */
|
||||
private Integer popupInnb;
|
||||
/** 쇼핑몰 코드*/
|
||||
private String sopmalCd;
|
||||
/** 팝업 이름 */
|
||||
private String popupNm;
|
||||
/** 팝업노출 시작일시 */
|
||||
private String popupExpsrBgnDt;
|
||||
/** 팝업노출 종료일시 */
|
||||
private String popupExpsrEndDt;
|
||||
/** 연결URL */
|
||||
private String cnncUrl;
|
||||
/** 팝업크기 가로 */
|
||||
private Integer popupMgWth;
|
||||
/** 팝업크기 세로 */
|
||||
private Integer popupMgVtc;
|
||||
/** 팝업위치 X */
|
||||
private Integer popupLcX;
|
||||
/** 팝업위치 Y */
|
||||
private Integer popupLcY;
|
||||
/** 노출여부 */
|
||||
private String expsrAt;
|
||||
|
||||
/** 파일업로드 */
|
||||
/** 원본파일명 */
|
||||
private String orginlFilNm;
|
||||
/** 시스템파일명 */
|
||||
private String sysFilNm;
|
||||
/** 파일크기 */
|
||||
private long filMg;
|
||||
/** 파일타입(확장자) */
|
||||
private String filTy;
|
||||
/** 파일경로 */
|
||||
private String filCours;
|
||||
/** 파일정보 */
|
||||
private List<HashMap<String, Object>> fileInfo;
|
||||
|
||||
/*상품 추가 여부*/
|
||||
private String fileAddAt;
|
||||
}
|
||||
@@ -0,0 +1,122 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.controller;
|
||||
|
||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.vo.BOMaComncdVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.service.BOSiteService;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOGoodsgrpVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOPrevewVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOSiteVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* Site Setup Controller Class
|
||||
* @author 전일찬
|
||||
* @since 2023-12-05
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-05 전일찬 최초 생성
|
||||
* 2024-03-11 추지훈 수정 사이트 관리
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/ajax/gcone/setup/site")
|
||||
public class BOSiteAjaxController {
|
||||
|
||||
@Autowired
|
||||
private BOSiteService service;
|
||||
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
|
||||
|
||||
/**
|
||||
* 메인 화면 쇼핑몰 카테고리별 타입
|
||||
* @return
|
||||
* @author 임수영
|
||||
*/
|
||||
// @Policy(AuthPolicy.PUBLIC)
|
||||
// @RequestMapping(value = "/selectBOMainSiteDesignCtgryListInqire")
|
||||
// public ResponseEntity<?> selectBOMainSiteDesignCtgryListInqire(String ordr, String expsrOrdr) {
|
||||
//
|
||||
// Map<String, Object> message = new HashMap<>();
|
||||
//
|
||||
// BOSiteVO siteVO = new BOSiteVO();
|
||||
//
|
||||
// // 작성자 정보 할당
|
||||
// AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
//
|
||||
//
|
||||
// if("01".equals(user.getSysDvCd())){
|
||||
// siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
// }
|
||||
//
|
||||
// siteVO.setOrdr(ordr);
|
||||
// siteVO.setExpsrOrdr(expsrOrdr);
|
||||
//
|
||||
// List<DataMap> case03 = service.selectBOMainSiteDesignCtgryListInqire(siteVO);
|
||||
//
|
||||
// message.put("resultMap", case03);
|
||||
//
|
||||
// return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* 메인 화면 쇼핑몰 카테고리별 타입
|
||||
* @return
|
||||
* @author 임수영
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOMainSiteDesignCtgryListInqire")
|
||||
public ResponseEntity<?> selectBOMainSiteDesignCtgryListInqire(@RequestBody BOSiteVO siteVO) {
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
|
||||
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
|
||||
List<DataMap> case03 = service.selectBOMainSiteDesignCtgryListInqire(siteVO);
|
||||
|
||||
message.put("resultMap", case03);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,765 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.controller;
|
||||
|
||||
import com.wb.domainserver.common.mvc.tags.ui.pagination.PaginationInfo;
|
||||
import com.wb.domainserver.common.prop.PaginationProperties;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
|
||||
import com.wb.domainserver.domain.admin.sys.comncd.vo.BOMaComncdVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.service.BOSiteService;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOGoodsgrpVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOPrevewVO;
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.BOSiteVO;
|
||||
import com.wb.domainserver.response.ApiResponse;
|
||||
import com.wb.domainserver.security.authentication.AnonymousUser;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtContextHolder;
|
||||
import com.wb.domainserver.security.authentication.MemberJwtToken;
|
||||
import com.wb.domainserver.security.authorization.annotation.AuthPolicy;
|
||||
import com.wb.domainserver.security.authorization.annotation.Policy;
|
||||
import com.wb.domainserver.util.communicate.SendToResrc;
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.ui.ModelMap;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
import java.math.BigInteger;
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
/**
|
||||
*
|
||||
* Site Setup Controller Class
|
||||
* @author 전일찬
|
||||
* @since 2023-12-05
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-05 전일찬 최초 생성
|
||||
* 2024-03-11 추지훈 수정 사이트 관리
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Slf4j
|
||||
@RestController
|
||||
@RequestMapping("/gcone/setup/site")
|
||||
public class BOSiteController {
|
||||
|
||||
@Autowired
|
||||
private BOSiteService service;
|
||||
|
||||
@Autowired
|
||||
private SendToResrc sendToResrc;
|
||||
|
||||
@Autowired
|
||||
private BOMaComncdService bOMaComncdService;
|
||||
|
||||
@Autowired
|
||||
private PaginationProperties paginationProperties;
|
||||
|
||||
/**
|
||||
* 상품그룹 목록
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/selectBOGoodsGroupList")
|
||||
public ResponseEntity<?> selectBOGoodsGroupList(@RequestBody BOGoodsgrpVO goodsGroup) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
goodsGroup.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
//페이징 처리를 위한 pagination 객체 생성
|
||||
PaginationInfo paginationInfo = new PaginationInfo();
|
||||
paginationInfo.setCurrentPageNo(goodsGroup.getPageIndex());
|
||||
paginationInfo.setRecordCountPerPage(goodsGroup.getPageUnit());
|
||||
paginationInfo.setPageSize(paginationProperties.getPageSize());
|
||||
goodsGroup.setPaginationInfo(paginationInfo);
|
||||
|
||||
//페이징 처리를 위한 값 설정
|
||||
goodsGroup.setFirstIndex(paginationInfo.getFirstRecordIndex());
|
||||
goodsGroup.setLastIndex(paginationInfo.getLastRecordIndex());
|
||||
goodsGroup.setRecordCountPerPage(paginationInfo.getRecordCountPerPage());
|
||||
//배송그룹 목록조회
|
||||
|
||||
List<BOGoodsgrpVO> goodsGroupList = service.selectBOGoodsGroupList(goodsGroup);
|
||||
|
||||
//배송그룹 목록조회 결과 설정
|
||||
content.put("BOGoodsgrpVO", goodsGroup);
|
||||
content.put("paginationInfo", goodsGroup.getPaginationInfo());
|
||||
content.put("goodsGroupList", goodsGroupList);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 상품그룹 등록
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/insertBOGoodsGroup")
|
||||
public ResponseEntity<?> insertBOGoodsGroup(@RequestBody BOGoodsgrpVO goodsGroup) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
goodsGroup.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
goodsGroup.setRegusr(user.getUserInnb()); // 등록자
|
||||
goodsGroup.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
//배송그릅 등록 처리
|
||||
Map<String, Object> message = service.insertBOGoodsGroup(goodsGroup);
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 상품그룹 상세조회
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/selectBOGoodsGroupDtlForm")
|
||||
public ResponseEntity<?> selectBOGoodsGroupDtlForm(@RequestBody BOGoodsgrpVO goodsGroup) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
goodsGroup.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content = service.selectBOGoodsGroupDtlForm(goodsGroup);
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 상품그룹 수정
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/updateBOGoodsGroupDtl")
|
||||
public ResponseEntity<?> updateBOGoodsGroupDtl(@RequestBody BOGoodsgrpVO goodsGroup) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
goodsGroup.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
goodsGroup.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = service.updateBOGoodsGroupDtl(goodsGroup);
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 상품그룹 삭제
|
||||
* @return
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@PostMapping("/deleteBOGoodsGroup")
|
||||
public ResponseEntity<?> deleteBOGoodsGroup(@RequestBody BOGoodsgrpVO goodsGroup) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
goodsGroup.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
goodsGroup.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, String> message = service.deleteBOGoodsGroup(goodsGroup);
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
// ***************************************사이트 관리*******************************************
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리 (헤더 ) 설정 폼 이동
|
||||
* @return
|
||||
* @author 추지훈selectBOSiteHeaderPopularChangCdList
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOSiteHeaderManageForm")
|
||||
public ResponseEntity<?> selectBOSiteHeaderManageForm(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
|
||||
// 공통코드 호출
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
bOMaComncdVO.setGroupCd("GNB_TY"); // GNB 타입 코드
|
||||
List<?> gnbTyCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
bOMaComncdVO.setGroupCd("POPULAR_CHNG_DV"); // 인기 변동 코드
|
||||
List<?> populChagCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
bOMaComncdVO.setGroupCd("LPT_MANAGE_SETUP_DV"); // 하단관리설정구분
|
||||
List<?> lptSetupDvCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
List<DataMap> middleList = service.selectBOSiteMiddleSetupListInqire(siteVO);
|
||||
|
||||
// Map객체에 필요 정보 할당
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content = service.selectBOSiteHeaderManageForm(siteVO);
|
||||
|
||||
|
||||
content.put("paramVO", siteVO);
|
||||
content.put("middleList", middleList);
|
||||
content.put("gnbTyCdList", gnbTyCdList);
|
||||
content.put("populChagCdList", populChagCdList);
|
||||
content.put("lptSetupDvCdList", lptSetupDvCdList);
|
||||
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 상품그룹 상품 목록 조회
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOGroupGoodsListIniqre")
|
||||
public ResponseEntity<?> selectBOGroupGoodsListIniqre(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
// 공통코드 호출
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
bOMaComncdVO.setGroupCd("POPULAR_CHNG_DV"); // 인기 변동 코드
|
||||
List<?> populChagCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
// Map객체에 필요 정보 할당
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
List<DataMap> resultList = service.selectBOGroupGoodsListIniqre(siteVO);
|
||||
|
||||
content.put("goodsList", resultList);
|
||||
content.put("populChagCdList", populChagCdList);
|
||||
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 중단영역 추가 등록
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/insertBOSetupMiddleRegist")
|
||||
public ResponseEntity<?> insertBOSetupMiddleRegist(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.insertBOSetupMiddleRegist(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 중단영역 수정
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOSetupMiddleUpdt")
|
||||
public ResponseEntity<?> updateBOSetupMiddleUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOSetupMiddleUpdt(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 중단영역 삭제
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/deleteBOSetupMiddleDel")
|
||||
public ResponseEntity<?> deleteBOSetupMiddleDel(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.deleteBOSetupMiddleDel(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 중단영역 적용
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOSetupMiddleApplcUpdt")
|
||||
public ResponseEntity<?> updateBOSetupMiddleApplcUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOSetupMiddleApplcUpdt(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 헤더 설정 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOHeaderSetupTempUpdt")
|
||||
public ResponseEntity<?> updateBOHeaderSetupTempUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOHeaderSetupTempUpdt(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 헤더 설정 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOHeaderSetupLogoUpdt")
|
||||
public ResponseEntity<?> updateBOHeaderSetupLogoUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOHeaderSetupLogoUpdt(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 하단 설정 이미지 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
// @Policy(AuthPolicy.PUBLIC)
|
||||
// @RequestMapping(value = "/updateBOFooterSetupUpdt")
|
||||
// public ResponseEntity<?> updateBOFooterSetupUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
// // 작성자 정보 할당
|
||||
// AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
// if("01".equals(user.getSysDvCd())){
|
||||
// siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
// }
|
||||
// siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
// siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
//
|
||||
// Map<String, Object> message = new HashMap<>();
|
||||
// message = service.updateBOFooterSetupUpdt(siteVO);
|
||||
//
|
||||
// return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
// }
|
||||
|
||||
|
||||
/**
|
||||
* 하단 설정
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOFooterSetupUpdt")
|
||||
public ResponseEntity<?> updateBOFooterSetupUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOFooterSetupUpdt(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 스크립트 영역 수정
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOScriptSetupUpdt")
|
||||
public ResponseEntity<?> updateBOScriptSetupUpdt(@RequestBody BOSiteVO siteVO) {
|
||||
log.debug("updateBOScriptSetupUpdt(siteVO = {})", siteVO);
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
log.debug(" updateBOScriptSetupUpdt siteVO is {}", siteVO);
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOScriptSetupUpdt(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 실시간 인기 상품 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBORltmPopularGoods")
|
||||
public ResponseEntity<?> updateBORltmPopularGoods(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBORltmPopularGoods(siteVO);
|
||||
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 인기 검색어 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOPopularSrchwrd")
|
||||
public ResponseEntity<?> updateBOPopularSrchwrd(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOPopularSrchwrd(siteVO);
|
||||
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 사이트 미리보기
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOSitePrevew")
|
||||
public ResponseEntity<?> selectBOSitePrevew(@RequestBody BOSiteVO siteVO) {
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
|
||||
// 공통코드 호출
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
|
||||
DataMap result = new DataMap();
|
||||
result = service.selectBOSitePrevew(siteVO);
|
||||
|
||||
// Map객체에 필요 정보 할당
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content.put("result", result);
|
||||
content.put("paramVO", siteVO);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리(메인) 설정 폼
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOSiteContentManageForm")
|
||||
public ResponseEntity<?> selectBOSiteContentManageForm(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
|
||||
// 공통코드 호출
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
bOMaComncdVO.setGroupCd("RELM_DV"); // 영역 구분
|
||||
List<?> relmDvCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
bOMaComncdVO.setGroupCd("LPT_MANAGE_SETUP_DV"); // 하단관리설정구분
|
||||
List<?> lptSetupDvCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
bOMaComncdVO.setGroupCd("IMG_EXPSR_DV"); // 이미지 노출 구분
|
||||
List<DataMap> imgExpsrDvCdList = bOMaComncdService.selectBOCommcdDetailList(bOMaComncdVO);
|
||||
|
||||
List<DataMap> resultList = null;
|
||||
resultList = service.selectBOSiteContentManageForm(siteVO);
|
||||
|
||||
// Map객체에 필요 정보 할당
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content.put("resultList", resultList);
|
||||
content.put("paramVO", siteVO);
|
||||
content.put("relmDvCdList", relmDvCdList);
|
||||
content.put("lptSetupDvCdList", lptSetupDvCdList);
|
||||
content.put("imgExpsrDvCdList", imgExpsrDvCdList);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 메인 컨텐츠 항목 설정 팝업
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOMainSetupContentsItemPopup")
|
||||
public ResponseEntity<?> selectBOMainSetupContentsItemPopup(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
|
||||
// 공통코드 호출
|
||||
BOMaComncdVO bOMaComncdVO = new BOMaComncdVO();
|
||||
|
||||
Map<String, Object> result = new HashMap<>();
|
||||
result = service.selectBOMainSetupContentsItemPopup(siteVO);
|
||||
|
||||
// Map객체에 필요 정보 할당
|
||||
Map<String, Object> content = new HashMap<>();
|
||||
content.put("resultPopupList", result);
|
||||
content.put("paramVO", siteVO);
|
||||
|
||||
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리(메인) 설정 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOSiteContentManage")
|
||||
public ResponseEntity<?> updateBOSiteContentManage(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOSiteContentManage(siteVO);
|
||||
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리(메인) 설정 항목 저장
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/updateBOSiteContentItemManage")
|
||||
public ResponseEntity<?> updateBOSiteContentItemManage(@RequestBody BOSiteVO siteVO) throws Exception {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOSiteContentItemManage(siteVO);
|
||||
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 메인화면 구성 추가
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/insertBOSiteContentsItemRegist")
|
||||
public ResponseEntity<?> insertBOSiteContentsItemRegist(@RequestBody BOSiteVO siteVO) {
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setRegusr(user.getUserInnb()); // 등록자
|
||||
siteVO.setUpdusr(user.getUserInnb()); // 수정자
|
||||
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.updateBOSiteContentManage(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 메인 화면 쇼핑몰
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOMainSiteDesignListInqire")
|
||||
public ResponseEntity<?> selectBOMainSiteDesignListInqire(@RequestBody BOPrevewVO prevewVO) {
|
||||
|
||||
BOSiteVO siteVO = new BOSiteVO();
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
|
||||
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setMainSetupInnb(prevewVO.getMainSetupInnb());
|
||||
siteVO.setMainSiteInnb(prevewVO.getMainSiteInnb());
|
||||
siteVO.setMbrDvCd(user.getMbrDvCd());
|
||||
|
||||
siteVO.setMbrInnb( user.getUserInnb() );
|
||||
|
||||
siteVO.setSessionId(prevewVO.getSessionId());
|
||||
siteVO.setCookieValArr(prevewVO.getCookieValArr());
|
||||
siteVO.setEnv(prevewVO.getEnv());
|
||||
Map<String, Object> message = new HashMap<>();
|
||||
message = service.selectBOMainSiteDesignListInqire(siteVO);
|
||||
message.put("loginFlag", user.getMbrId());
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
/**
|
||||
* 메인 화면 쇼핑몰 헤더 조회
|
||||
* @return
|
||||
* @author 임수영
|
||||
*/
|
||||
@Policy(AuthPolicy.PUBLIC)
|
||||
@RequestMapping(value = "/selectBOMainTopbarSiteDesignInqire")
|
||||
public ResponseEntity<?> selectBOMainTopbarSiteDesignInqire(@RequestBody BOPrevewVO prevewVO) {
|
||||
|
||||
BOSiteVO siteVO = new BOSiteVO();
|
||||
|
||||
// 작성자 정보 할당
|
||||
AnonymousUser user = MemberJwtContextHolder.getMemberInfo();
|
||||
|
||||
if("01".equals(user.getSysDvCd())){
|
||||
siteVO.setSopmalCd(user.getSopmalCd()); // 쇼핑몰코드
|
||||
}
|
||||
siteVO.setSessionId(prevewVO.getSessionId());
|
||||
siteVO.setMainSiteInnb(prevewVO.getMainSiteInnb());
|
||||
Map<String, Object> message = service.selectBOMainTopbarSiteDesignInqire(siteVO);
|
||||
|
||||
return ApiResponse.of(message).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,598 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.mapper;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.gcone.setup.site.vo.*;
|
||||
import org.apache.ibatis.annotations.Mapper;
|
||||
import org.springframework.stereotype.Repository;
|
||||
|
||||
import com.wb.domainserver.util.dataaccess.DataMap;
|
||||
|
||||
/**
|
||||
*
|
||||
* Site setup Mapper Class
|
||||
* @author 전일찬
|
||||
* @since 2023-12-05
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2023-12-05 전일찬 최초 생성
|
||||
* 2023-03-11 추지훈 수정 사이트 관리
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Mapper
|
||||
@Repository
|
||||
public interface BOSiteMapper {
|
||||
|
||||
/**
|
||||
* 상품그룹 갯수
|
||||
* @param goodsGroup 파라미터VO
|
||||
* @return
|
||||
*/
|
||||
public int selectGoodsListCnt(BOGoodsgrpVO goodsGroup);
|
||||
|
||||
/**
|
||||
* 상품그룹 목록
|
||||
* @param goodsGroup 파라미터VO
|
||||
* @return
|
||||
*/
|
||||
public List<BOGoodsgrpVO> selectBOGoodsGroupList(BOGoodsgrpVO goodsGroup);
|
||||
|
||||
/**
|
||||
* 상품그룹 등록
|
||||
* @param goodsGroup 파라미터VO
|
||||
* @return
|
||||
*/
|
||||
public int insertBOGoodsGroup(BOGoodsgrpVO goodsGroup);
|
||||
|
||||
/**
|
||||
* 상품그룹 상세조회
|
||||
* @param goodsGroupInnb 상품그룹고유번호
|
||||
* @return
|
||||
*/
|
||||
public BOGoodsgrpVO selectBOGoodsGroupDtlForm(BOGoodsgrpVO goodsGroupInnb);
|
||||
|
||||
/**
|
||||
* 상품그룹 수정
|
||||
* @param goodsGroup 파라미터VO
|
||||
* @return
|
||||
*/
|
||||
void updateBOGoodsGroupDtl(BOGoodsgrpVO goodsGroup);
|
||||
|
||||
/**
|
||||
* 상품그룹 삭제
|
||||
* @param goodsGroupInnb 상품그룹고유번호
|
||||
* @return
|
||||
*/
|
||||
public int deleteBOGoodsGroup(BOGoodsgrpVO goodsGroupInnb);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// ***************************************사이트 관리*******************************************
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 메인화면설정 변경이력 등록
|
||||
* @param siteVO
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void insertBOMainSetupLog(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인화면설정 변경이력 조회
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSetupLog(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리 (헤더 ) 설정 폼 이동
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBOSiteHeaderManageForm(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 상품그룹 목록 조회
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOSiteHeaderManageGoodsGroup(BOSiteVO siteVO);
|
||||
public List<DataMap> selectBOSiteHeaderManagePopularSrch(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 로고 저장 TODO : 하나로 통합 예정 1
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOLogoImage(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 헤어 설정 임시저장 TODO : 하나로 통합 예정 2
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOHeaderSetupTempUpdt(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 헤어 설정 상단로고 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 임수영
|
||||
*/
|
||||
public void updateBOHeaderSetupLogoUpdt(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 실시간 인기 상품 저장 TODO : 하나로 통합 예정 3
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBORltmPopularGoods(BOPopularChngGoodsVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 인기 검색어 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOPopularSrchwrd(BOSiteVO siteVO);
|
||||
public void insertBOPopularSrchwrd(BOSiteVO siteVO);
|
||||
public Integer deleteBOPopularSrchwrd(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 사이트 미리보기
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBOSitePrevew(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리(메인) 설정 폼
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public List<DataMap> selectBOSiteContentManageForm(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리(메인) 설정 조회
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOSiteContentManageInqire(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 롤링배너, 띠배너, 브랜드 소개 설정 팝업
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public List<DataMap> selectBOBannerSetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 롤링배너, 띠배너, 브랜드 소개 설정 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOBannerSetup(BOSiteVO siteVO);
|
||||
public void insertBOBannerSetup(BOSiteVO siteVO);
|
||||
public void deleteBOBannerSetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 그룹별 타입 설정 팝업
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public List<DataMap> selectBOGroupTySetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 그룹별 타입 설정 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOGroupTySetup(BOSiteVO siteVO);
|
||||
public void insertBOGroupTySetup(BOSiteVO siteVO);
|
||||
public void deleteBOGroupTySetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 상품 이미지배너 타입 설정 팝업 TODO : selectBOSiteContentManageInqire 로 대체 가능하다 판단됨. 추후 삭제
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBOImgTySetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 이미지배너 타입 설정 저장 TODO : 필요없으면 삭제 예정
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOImgTySetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 URL 타입 설정 팝업 TODO : selectBOSiteContentManageInqire 로 대체 가능하다 판단됨. 추후 삭제
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBOURLTySetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 URL 타입 설정 저장 TODO : 필요없으면 삭제 예정
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOURLTySetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 2 x 2 열 타입 설정 팝업 TODO : selectBOSiteContentManageInqire 로 대체 가능하다 판단됨. 추후 삭제
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBO2by2TySetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 2 x 2 열 타입 설정 저장 TODO : 필요없으면 삭제 예정
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBO2by2TySetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 4열 타입 설정 팝업 TODO : selectBOSiteContentManageInqire 로 대체 가능하다 판단됨. 추후 삭제
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBO4TySetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 4열 타입 설정 저장 TODO : 필요없으면 삭제 예정
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBO4TySetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 타임세일 설정 팝업
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public List<DataMap> selectBOTmeDscntSetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 타임세일 설정 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOTmeDscnt(BOSiteVO siteVO);
|
||||
public void insertBOTmeDscnt(BOSiteVO siteVO);
|
||||
public void deleteBOTmeDscnt(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 인스타그램 설정 팝업
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public DataMap selectBOInstaSetupPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 인스타그램 설정 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public void updateBOInstaSetup(BOSiteVO siteVO);
|
||||
public void insertBOInstaSetup(BOSiteVO siteVO);
|
||||
public void deleteBOInstaSetup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 사이트관리(메인) 설정 저장
|
||||
* @param siteVO
|
||||
* @return
|
||||
* @author 추지훈
|
||||
*/
|
||||
public Integer updateBOSiteContentManage(BOSetupContentsVO siteVO);
|
||||
|
||||
public void insertBOSiteContentManage(BOSiteVO siteVO);
|
||||
|
||||
public void deleteBOSiteContentManage(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품그룹 상품 목록 조회
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOGroupGoodsListIniqre(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인 컨텐츠 항목 설정 팝업
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSetupContentsItemPopup(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인 컨텐츠 항목 설정 저장
|
||||
* @param siteItemVO
|
||||
*/
|
||||
public void updateBOSiteContentsItemRegist(BOSetupContentsItemVO siteItemVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인 컨텐츠 항목 논리 삭제
|
||||
* @param siteItemVO
|
||||
*/
|
||||
public void deleteBOSiteContentItemUpdt(BOSiteVO siteItemVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품 노출 정보 목록 조회 TODO : 임시 추후 BOGoodsInfoMapper.xml 쪽 쿼리 가져와야함
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOGoodsInfoList();
|
||||
|
||||
|
||||
/**
|
||||
* 컨텐츠 정보 조회
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOSiteContentInqire(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 타임세일 이벤트 목록 조회
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOSiteGoodsCatgryList(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
*
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOSiteTmeDscntEvtList(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 중단 설정 목록 조회
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOSiteMiddleSetupListInqire(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 중단 영역 추가 등록
|
||||
* @param siteVO
|
||||
*/
|
||||
public void insertBOSetupMiddleRegist(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 중단 영역 수정
|
||||
* @param siteVO
|
||||
*/
|
||||
public void updateBOSetupMiddleUpdt(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 중단 영역 논리 삭제
|
||||
* @param siteVO
|
||||
*/
|
||||
public void deleteBOSetupMiddleDel(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 중단 영역 적용
|
||||
* @param siteVO
|
||||
*/
|
||||
public void updateBOSetupMiddleApplcUpdt(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 중단 영역 미적용 일괄 수정
|
||||
* @param siteVO
|
||||
*/
|
||||
public void deleteBOSetupMiddleApplcDel(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인 컨텐츠 수정
|
||||
* @param firstItemVO
|
||||
* @return
|
||||
*/
|
||||
public Integer updateBOSiteContentManageUpdt(BOSetupContentsItemVO firstItemVO);
|
||||
|
||||
|
||||
/**
|
||||
* 상품그룹상품(맵핑테이블) 저장
|
||||
* @param data
|
||||
*/
|
||||
public void insertBOGoodsGroupGoods(DataMap data);
|
||||
|
||||
/**
|
||||
* 상품그룹상품 테이블 조회
|
||||
* @param goodsGroupInnb
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOGoodsGroupGoodsInnb(BOGoodsgrpVO goodsGroupInnb);
|
||||
|
||||
public void deleteBOGoodsGroupGoodsInnb(BOGoodsgrpVO goodsGroupInnb);
|
||||
|
||||
|
||||
/**
|
||||
* 사이트 장바구니 추천상품 그룹 목록 조회
|
||||
* @param goodsGroup
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOSiteCartGoodsListInqire(BOGoodsgrpVO goodsGroup);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면 영역
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqire(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면
|
||||
* BASE 01롤링배너, 11브랜드 소개, 12띠배너, 14FAQ 15인스타그램(SNS)
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqireBaseCase(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면
|
||||
* 02상품 그룹별 타입, 04상품 이미지배너 타입, 05URL 지정 타입, 062x2 타입, 074열 타입
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqireCase02(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면
|
||||
* 03상품 카테고리별 타입(상품)
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqireCase03(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면
|
||||
* 08타임세일
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqireCase08(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면
|
||||
* 09리뷰 AND DC.RELM_DV_CD = '09'
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqireCase09(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면
|
||||
* 10매거진, 13공지사항
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainSiteDesignListInqireCase10(BOSiteVO siteVO);
|
||||
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면 상단 영역
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public DataMap selectBOMainTopbarSiteDesignInqire(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면 상단 영역 인기 검색어
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainTopbarPopularSrchwrdSiteDesignInqire(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인사이트 쇼핑몰 화면 상단 영역 실시간 인기 상품
|
||||
* @param siteVO
|
||||
* @return
|
||||
*/
|
||||
public List<DataMap> selectBOMainTopbarRltmPopularGoodsSiteDesignInqire(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인 설정 항목 게시판 아이디 반환
|
||||
* @param firstItemVO
|
||||
*/
|
||||
public DataMap selectBOSiteBbsIdInqire(BOSetupContentsItemVO firstItemVO);
|
||||
|
||||
/**
|
||||
* 메인페이지 운영여부
|
||||
* @param siteVO
|
||||
*/
|
||||
public DataMap selectBOMainOperAt(BOSiteVO siteVO);
|
||||
|
||||
|
||||
/**
|
||||
* 메인페이지 팝업
|
||||
* @param siteVO
|
||||
*/
|
||||
public List<DataMap> selectBOMainPopup(BOSiteVO siteVO);
|
||||
|
||||
/**
|
||||
* 메인페이지 퀵메뉴 최근 본 상품
|
||||
* @param siteVO
|
||||
*/
|
||||
public List<DataMap> selectBOMainRecentGoods(BOSiteVO siteVO);
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,33 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOGoodsgrpVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 상품그룹 고유번호 */
|
||||
private Integer goodsGroupInnb;
|
||||
|
||||
/** 상품그룹명 */
|
||||
private String goodsGroupNm;
|
||||
|
||||
/** 쇼핑몰코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
/** 상품 그룹 리스트 */
|
||||
private String[] goodsIds;
|
||||
|
||||
/** 모든 상품 업데이트 여부 (삭제)
|
||||
private String allGoodsUpt; */
|
||||
|
||||
/*회원고유번호*/
|
||||
private String mbrInnb;
|
||||
/*회원구분코드*/
|
||||
private String mbrDvCd;
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 메인화면 설정 VO
|
||||
* @author 임수영
|
||||
* @since 2024-08-16
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-08-16 임수영. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOMainSiteDesignVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
/** 쇼핑몰코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
// 메인화면 설정 gc_design
|
||||
|
||||
|
||||
// 메인화면 컨텐츠 gc_design_contents
|
||||
/** 메인설정 고유번호 */
|
||||
private String mainSetupInnb;
|
||||
/** 메인화면 고유번호 */
|
||||
private String mainSiteInnb;
|
||||
// /** 쇼핑몰코드 */
|
||||
// private String sopmalCd;
|
||||
/** 상품노출정보 고유번호 */
|
||||
private String goodsExpsrInfoInnb;
|
||||
/** 순서 */
|
||||
private String ordr;
|
||||
/** 영역 */
|
||||
private String relmDvCd;
|
||||
/** 영역설명 */
|
||||
private String relmDc;
|
||||
/** 메인 제목 */
|
||||
private String mainSj;
|
||||
/** SUB 제목 */
|
||||
private String subSj;
|
||||
/** 사용여부 */
|
||||
private String useAt;
|
||||
// /** 메인화면 고유번호 */
|
||||
// private String regusr;
|
||||
// /** 메인화면 고유번호 */
|
||||
// private String registDt;
|
||||
// /** 메인화면 고유번호 */
|
||||
// private String updusr;
|
||||
// /** 메인화면 고유번호 */
|
||||
// private String updtDt;
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 메인화면 설정 VO
|
||||
* @author 추지훈
|
||||
* @since 2024-03-11
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-03-11 추지훈. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOPopularChngGoodsVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
|
||||
/** 상품 고유번호 */
|
||||
private String goodsInnb;
|
||||
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
/** 메인설정 고유번호(PK) */
|
||||
private Integer mainSetupInnb;
|
||||
|
||||
/** 상품그룹 고유번호(FK) */
|
||||
private Integer goodsGroupInnb;
|
||||
|
||||
/** 상품노출정보 고유번호 */
|
||||
private Integer goodsExpsrInfoInnb;
|
||||
|
||||
/** 임시저장 여부 */
|
||||
private String tempAt;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 상품그룹 판매상품
|
||||
|
||||
/** 인기 변경 구분 */
|
||||
private String popularChngDv;
|
||||
/** 노출순서 */
|
||||
private String expsrOrdr;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class BOPrevewVO {
|
||||
|
||||
private Integer mainSetupInnb;
|
||||
|
||||
private Integer mainSiteInnb;
|
||||
|
||||
private String sessionId;
|
||||
|
||||
private String[] cookieValArr;
|
||||
|
||||
/*접속환경*/
|
||||
private String env;
|
||||
|
||||
/*이벤트 페이지 여부*/
|
||||
private String evtPageAt;
|
||||
}
|
||||
@@ -0,0 +1,187 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 메인설정 VO
|
||||
* @author 추지훈
|
||||
* @since 2024-03-18
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-03-18 추지훈 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOSetupContentsItemVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
/** 메인설정 고유번호(PK) */
|
||||
private Integer mainSetupInnb;
|
||||
|
||||
/** 상품그룹 고유번호(FK) */
|
||||
private Integer goodsGroupInnb;
|
||||
|
||||
/** 상품노출정보 고유번호 */
|
||||
private String goodsExpsrInfoInnb;
|
||||
|
||||
/** 게시판ID */
|
||||
private String bbsId;
|
||||
|
||||
/** 영역구분코드 */
|
||||
private String relmDvCd;
|
||||
|
||||
/** 영역구분 */
|
||||
private String relmDv;
|
||||
|
||||
/** 메인 제목 */
|
||||
private String mainSj;
|
||||
|
||||
/** SUB 제목 */
|
||||
private String subSj;
|
||||
|
||||
/** 항목 메인 제목 */
|
||||
private String itemMainSj;
|
||||
|
||||
/** 항목 SUB 제목 */
|
||||
private String itemSubSj;
|
||||
|
||||
/** 항목 메인 설명 */
|
||||
private String itemMainDc;
|
||||
|
||||
/** 항목 서브 설명 */
|
||||
private String itemSubDc;
|
||||
|
||||
/** 이미지 고유번호? 이거 이미지 경로로 바꿔야함 */
|
||||
private String imgInnb;
|
||||
|
||||
/** 메인 설명 */
|
||||
private String mainDc;
|
||||
|
||||
/** SUB 설명 */
|
||||
private String subDc;
|
||||
|
||||
/** 연결 URL */
|
||||
private String cnncUrl;
|
||||
|
||||
/** 고객센터 메인 제목 */
|
||||
private String cscMainSj;
|
||||
|
||||
/** 고객센터 전화번호 */
|
||||
private String cscTelnb;
|
||||
|
||||
/** 고객센터 운영시간 */
|
||||
private String cscOperTme;
|
||||
|
||||
/** 점심시간 */
|
||||
private String cscLunchTme;
|
||||
|
||||
/** 휴무일 */
|
||||
private String hvofDay;
|
||||
|
||||
/** 무료수신거부번호 */
|
||||
private String freeRecptnRejectNb;
|
||||
|
||||
/** 하단관리설정구분 */
|
||||
private String lptManageSetupDvCd;
|
||||
|
||||
/** 통신판매업 노출여부 */
|
||||
private String mobExpsrAt;
|
||||
|
||||
/** 통신판매업 신고번호 */
|
||||
private String mobDclNb;
|
||||
|
||||
/** 기타내용 */
|
||||
private String etcCn;
|
||||
|
||||
/** 하단로고 파일 고유번호 */
|
||||
private String lptLogoFilInnb;
|
||||
|
||||
/** 임시저장 여부 */
|
||||
private String tempAt;
|
||||
|
||||
|
||||
|
||||
/** 메인 설정 컨텐츠 항목 삭제 리스트 */
|
||||
private String[] deleteContentsItemList;
|
||||
|
||||
|
||||
/** 메인설정 항목 고유번호 */
|
||||
private Integer mainSetupItemInnb;
|
||||
|
||||
|
||||
|
||||
/** 이벤트 고유번호 */
|
||||
private Integer evtInnb;
|
||||
|
||||
/** 카에고리 ID */
|
||||
private Integer ctgryId;
|
||||
|
||||
/** 상품그룹고유번호 */
|
||||
private Integer itemGoodsGroupInnb;
|
||||
|
||||
/** 게시글고유번호 */
|
||||
private Integer bbsCttInnb ;
|
||||
|
||||
/** 배너정보 파일 고유번호 */
|
||||
private Integer bannerInfoFilInnb;
|
||||
|
||||
/** 연결URL */
|
||||
private String itmeCnncUrl;
|
||||
|
||||
/** 이미지 고유번호 ? 이미지 경로해야하는거 아닌가 */
|
||||
private String itmeImg;
|
||||
|
||||
/** 순서 */
|
||||
private String ordr;
|
||||
|
||||
/** 플랫폼 구분 */
|
||||
private String pltfomDv;
|
||||
|
||||
/** 계정 */
|
||||
private String acnt;
|
||||
|
||||
/** 토큰 */
|
||||
private String tken;
|
||||
|
||||
|
||||
/** 파일업로드 */
|
||||
|
||||
/** 파일정보 */
|
||||
private List<HashMap<String, Object>> fileInfo;
|
||||
|
||||
/** 원본파일명 */
|
||||
private String orginlFilNm;
|
||||
/** 시스템파일명 */
|
||||
private String sysFilNm;
|
||||
/** 파일크기 */
|
||||
private long filMg;
|
||||
/** 파일타입(확장자) */
|
||||
private String filTy;
|
||||
/** 파일경로 */
|
||||
private String filCours;
|
||||
|
||||
/** 파일 여부 */
|
||||
private String fileAt;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,173 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
/**
|
||||
*
|
||||
* 메인설정 VO
|
||||
* @author 추지훈
|
||||
* @since 2024-03-18
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-03-18 추지훈 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOSetupContentsVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 메인화면 설정 고유번호 */
|
||||
private Integer mainSiteInnb;
|
||||
|
||||
|
||||
|
||||
/** 리턴 받을 고유번호 - 머지문에 사용 */
|
||||
private Integer seq;
|
||||
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
/** 메인설정 고유번호(PK) */
|
||||
private Integer mainSetupInnb;
|
||||
|
||||
/** 상품그룹 고유번호(FK) */
|
||||
private Integer goodsGroupInnb;
|
||||
|
||||
/** 상품노출정보 고유번호 */
|
||||
private Integer goodsExpsrInfoInnb;
|
||||
|
||||
/** 게시판ID */
|
||||
private String bbsId;
|
||||
|
||||
/** 영역구분코드 */
|
||||
private String relmDvCd;
|
||||
|
||||
/** 영역구분 */
|
||||
private String relmDv;
|
||||
|
||||
/** 컨텐츠 노출코드 */
|
||||
private String cnExpsrCd;
|
||||
|
||||
/** 상단 로고 파일 고유번호 */
|
||||
private String upendLogoFilInnb;
|
||||
|
||||
/** GNB 타입 코드 */
|
||||
private String gnbTyCd;
|
||||
|
||||
/** 영역설명 */
|
||||
private String relmDc;
|
||||
|
||||
/** 메인 제목 */
|
||||
private String mainSj;
|
||||
|
||||
/** SUB 제목 */
|
||||
private String subSj;
|
||||
|
||||
/** 메인 제목2 */
|
||||
private String mainRghtSj;
|
||||
|
||||
/** SUB 제목2 */
|
||||
private String subRghtSj;
|
||||
|
||||
/** 이미지 고유번호? 이거 이미지 경로로 바꿔야함 */
|
||||
private String imgInnb;
|
||||
|
||||
/** 메인 설명 */
|
||||
private String mainDc;
|
||||
|
||||
/** SUB 설명 */
|
||||
private String subDc;
|
||||
|
||||
/** 연결 URL */
|
||||
private String cnncUrl;
|
||||
|
||||
/** 고객센터 메인 제목 */
|
||||
private String cscMainSj;
|
||||
|
||||
/** 고객센터 전화번호 */
|
||||
private String cscTelnb;
|
||||
|
||||
/** 고객센터 운영시간 */
|
||||
private String cscOperTme;
|
||||
|
||||
/** 점심시간 */
|
||||
private String cscLunchTme;
|
||||
|
||||
/** 휴무일 */
|
||||
private String hvofDay;
|
||||
|
||||
/** 하단관리설정구분 */
|
||||
private String lptManageSetupDvCd;
|
||||
|
||||
/** 통신판매업 노출여부 */
|
||||
private String mobExpsrAt;
|
||||
|
||||
/** 통신판매업 신고번호 */
|
||||
private String mobDclNb;
|
||||
|
||||
/** 기타내용 */
|
||||
private String etcCn;
|
||||
|
||||
/** 하단로고 파일 고유번호 */
|
||||
private String lptLogoFilInnb;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** 메인 설정 컨텐츠 항목 */
|
||||
private List<BOSetupContentsItemVO> setupContentsItemList;
|
||||
|
||||
/** 메인 설정 컨텐츠 항목 삭제 대상 */
|
||||
private Integer deleteItemInnb;
|
||||
|
||||
|
||||
|
||||
|
||||
/** 메인설정 항목 고유번호 */
|
||||
private Integer mainSetupItemInnb;
|
||||
|
||||
|
||||
|
||||
/** 이벤트 고유번호 */
|
||||
private Integer evtInnb;
|
||||
|
||||
/** 카에고리 ID */
|
||||
private Integer ctgryId;
|
||||
|
||||
/** 상품그룹고유번호 */
|
||||
private Integer itemGoodsGroupInnb;
|
||||
|
||||
/** 게시글고유번호 */
|
||||
private Integer bbsCttInnb;
|
||||
|
||||
|
||||
|
||||
/** 연결URL */
|
||||
private String itmeCnncUrl;
|
||||
|
||||
/** 이미지 고유번호 ? 이미지 경로해야하는거 아닌가 */
|
||||
private String itmeImgInnb;
|
||||
|
||||
/** 순서 */
|
||||
private String ordr;
|
||||
|
||||
/*이미지노출구분코드*/
|
||||
private String imgExpsrDvCd;
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,261 @@
|
||||
package com.wb.domainserver.domain.gcone.setup.site.vo;
|
||||
|
||||
import java.util.HashMap;
|
||||
import java.util.List;
|
||||
|
||||
import com.wb.domainserver.domain.comm.vo.AbstractVO;
|
||||
|
||||
import lombok.Data;
|
||||
import lombok.EqualsAndHashCode;
|
||||
|
||||
/**
|
||||
*
|
||||
* 메인화면 설정 VO
|
||||
* @author 추지훈
|
||||
* @since 2024-03-11
|
||||
* @version 1.0
|
||||
* @see
|
||||
*
|
||||
* <pre>
|
||||
* == (Modification Information) == 개정이력
|
||||
*
|
||||
* 수정일 수정자 수정내용
|
||||
* ------- -------- ---------------------------
|
||||
* 2024-03-11 추지훈. 최초 생성
|
||||
*
|
||||
* </pre>
|
||||
*/
|
||||
@Data
|
||||
@EqualsAndHashCode(callSuper = false)
|
||||
public class BOSiteVO extends AbstractVO {
|
||||
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
|
||||
/** 하단_내용 */
|
||||
private String footerCn;
|
||||
|
||||
|
||||
/** 메인화면 최근본 상품 쿠키 */
|
||||
private String[] cookieValArr;
|
||||
|
||||
/** 세션 아이디 */
|
||||
private String sessionId;
|
||||
|
||||
/** 회원 고유번호 */
|
||||
private Integer mbrInnb;
|
||||
|
||||
/** 회원 구분 코드 */
|
||||
private String mbrDvCd;
|
||||
|
||||
/** 메인화면 설정 고유번호 */
|
||||
private Integer mainSiteInnb;
|
||||
|
||||
/** 메인화면 설정 구분 : 01 상/하단 02 중단 */
|
||||
private String setupDvCd;
|
||||
|
||||
/** 메인화면 중단 설정 명 */
|
||||
private String mainSiteNm;
|
||||
|
||||
|
||||
|
||||
|
||||
/** 리턴 받을 고유번호 - 머지문에 사용 */
|
||||
private Integer seq;
|
||||
|
||||
/** 상품 고유번호 */
|
||||
private String goodsInnb;
|
||||
|
||||
/** 쇼핑몰 코드 */
|
||||
private String sopmalCd;
|
||||
|
||||
/** 메인설정 고유번호(PK) */
|
||||
private Integer mainSetupInnb;
|
||||
|
||||
/** 상품그룹 고유번호(FK) */
|
||||
private Integer goodsGroupInnb;
|
||||
|
||||
/** 상품노출정보 고유번호 */
|
||||
private Integer goodsExpsrInfoInnb;
|
||||
|
||||
/** 게시판ID */
|
||||
private String bbsId;
|
||||
|
||||
/** 영역구분코드 */
|
||||
private String relmDvCd;
|
||||
|
||||
/** 영역구분 */
|
||||
private String relmDv;
|
||||
|
||||
|
||||
/** 상단 로고 파일 고유번호 */
|
||||
private String upendLogoFilInnb;
|
||||
|
||||
/** GNB 타입 코드 */
|
||||
private String gnbTyCd;
|
||||
|
||||
/** 영역설명 */
|
||||
private String relmDc;
|
||||
|
||||
/** 메인 제목 */
|
||||
private String mainSj;
|
||||
|
||||
/** SUB 제목 */
|
||||
private String subSj;
|
||||
|
||||
/** 메인 제목2 */
|
||||
private String mainRghtSj;
|
||||
|
||||
/** SUB 제목2 */
|
||||
private String subRghtSj;
|
||||
|
||||
/** 이미지 고유번호? 이거 이미지 경로로 바꿔야함 */
|
||||
private String imgInnb;
|
||||
|
||||
/** 메인 설명 */
|
||||
private String mainDc;
|
||||
|
||||
/** SUB 설명 */
|
||||
private String subDc;
|
||||
|
||||
|
||||
|
||||
/** 하단관리설정구분 */
|
||||
private String lptManageSetupDvCd;
|
||||
|
||||
/** 통신판매업 노출여부 */
|
||||
private String mobExpsrAt;
|
||||
|
||||
/** 통신판매업 신고번호 */
|
||||
private String mobDclNb;
|
||||
|
||||
/** 기타내용 */
|
||||
private String etcCn;
|
||||
|
||||
/** 하단로고 파일 고유번호 */
|
||||
private String lptLogoFilInnb;
|
||||
|
||||
/** 임시저장 여부 */
|
||||
private String tempAt;
|
||||
|
||||
|
||||
/** 메인화면 컨텐츠 VO */
|
||||
private List<BOSetupContentsVO> middleContentsList;
|
||||
|
||||
/** 메인화면 컨텐츠 항목 VO */
|
||||
private List<BOSetupContentsItemVO> setupContentsItemList;
|
||||
|
||||
|
||||
|
||||
/** 메인화면 컨텐츠 삭제 */
|
||||
private String[] deleteContentsList;
|
||||
|
||||
/** 메인 설정 컨텐츠 삭제 대상 */
|
||||
private Integer deleteInnb;
|
||||
|
||||
|
||||
/** 메인 설정 컨텐츠 항목 삭제 리스트 */
|
||||
private String[] deleteContentsItemList;
|
||||
|
||||
/** 메인 설정 컨텐츠 항목 삭제 대상 */
|
||||
private Integer deleteItemInnb;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/** 상품그룹고유번호 */
|
||||
private Integer itemGoodsGroupInnb;
|
||||
|
||||
/** 게시글고유번호 */
|
||||
private Integer bbsCttInnb ;
|
||||
|
||||
/** 배너정보 파일 고유번호 */
|
||||
private Integer bannerInfoFilInnb;
|
||||
|
||||
/** 연결URL */
|
||||
private String itmeCnncUrl;
|
||||
|
||||
|
||||
|
||||
/** 순서 */
|
||||
private String ordr;
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// 상품그룹 판매상품
|
||||
|
||||
/** 인기 변경 구분 */
|
||||
private String popularChngDv;
|
||||
/** 노출순서 */
|
||||
private String expsrOrdr;
|
||||
/** 상품 그룹 판매 상품 리스트 */
|
||||
private List<BOPopularChngGoodsVO> popuylarChngGoodsList;
|
||||
|
||||
|
||||
|
||||
|
||||
/** 파일업로드 */
|
||||
|
||||
/** 원본파일명 */
|
||||
private String orginlFilNm;
|
||||
/** 시스템파일명 */
|
||||
private String sysFilNm;
|
||||
/** 파일크기 */
|
||||
private long filMg;
|
||||
/** 파일타입(확장자) */
|
||||
private String filTy;
|
||||
/** 파일경로 */
|
||||
private String filCours;
|
||||
|
||||
|
||||
|
||||
// 인기 검색어
|
||||
|
||||
/** 인기 검색어 고유번호 */
|
||||
private Integer popularSrchwrdInnb;
|
||||
/** 인기 검색어 배열 */
|
||||
private String[] popularSrchwrdArr;
|
||||
/** 인기 검색어 */
|
||||
private String popularSrchwrd;
|
||||
|
||||
|
||||
|
||||
/** 팝업 선택 히든 td 아이디 */
|
||||
private String relmTdId;
|
||||
|
||||
|
||||
/** 파일 정보 */
|
||||
private List<HashMap<String, Object>> fileInfo;
|
||||
|
||||
|
||||
/** 상단_원본파일명 */
|
||||
private String topOrginlFilNm;
|
||||
/** 상단_시스템파일명 */
|
||||
private String topSysFilNm;
|
||||
/** 상단_파일크기 */
|
||||
private long topFilMg;
|
||||
/** 상단_파일타입(확장자) */
|
||||
private String topFilTy;
|
||||
/** 상단_파일경로 */
|
||||
private String topFilCours;
|
||||
|
||||
|
||||
/** 하단_원본파일명 */
|
||||
private String footerOrginlFilNm;
|
||||
|
||||
|
||||
/** 상단 로고 유무 구분 값 */
|
||||
private String headerLogoFlag;
|
||||
|
||||
/*접속환경구분*/
|
||||
private String env;
|
||||
|
||||
/*스크립트 내용*/
|
||||
private String scriptCn;
|
||||
|
||||
/*스크립트 내용 사용 여부*/
|
||||
private String scriptCnUseAt;
|
||||
}
|
||||
Reference in New Issue
Block a user