초기소스

This commit is contained in:
jazz
2025-10-29 17:08:05 +09:00
parent e531aa9540
commit 439a379a02
7551 changed files with 1234427 additions and 3 deletions

View File

@@ -0,0 +1,73 @@
package com.wb.domainserver.domain.itrnt.sel.controller;
import com.wb.domainserver.domain.admin.sys.comncd.service.BOMaComncdService;
import com.wb.domainserver.domain.itrnt.sel.service.BOItrntSelService;
import com.wb.domainserver.domain.itrnt.sel.vo.BOItrntSelVO;
import com.wb.domainserver.response.ApiResponse;
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.util.List;
/**
*
* 인트라넷 판매분석
* @author 이운산
* @since 2024-04-21
* @version 1.0
* @see
*
* <pre>
* == (Modification Information) == 개정이력
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2024-04-21 이운산 최초 생성
*
* </pre>
*/
@RestController
@Slf4j
@RequestMapping("/gcone/itrnt/sel")
public class BOItrntSelController {
@Autowired
private BOItrntSelService service;
@Autowired
private BOMaComncdService bOMaComncdService;
@Autowired
private SendToResrc sendToResrc;
/**
* 인트라넷 판매분석 조회
* @param itrntSelVO
* @return
*/
@Policy(AuthPolicy.PUBLIC)
@PostMapping(value = "/selectBOItrntSel")
public ResponseEntity<?> selectBOItrntDailySelng(@RequestBody BOItrntSelVO itrntSelVO) {
List<DataMap> result = service.selectBOItrntSel(itrntSelVO);
// Map객체에 필요 정보 할당
DataMap content = new DataMap();
content.put("result", result);
return ApiResponse.of(content).ifPresentOrElse(HttpStatus.OK, HttpStatus.NOT_FOUND);
}
}

View File

@@ -0,0 +1,98 @@
package com.wb.domainserver.domain.itrnt.sel.controller;
import com.wb.domainserver.common.msg.GconeMessageSource;
import com.wb.domainserver.domain.itrnt.sel.vo.ItrntSelVO;
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.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
/**
* 인트라넷 판매분석 Controller
*
* @author 이운산
* @since 2024-03-19
* @version 1.0
* @see
*
* <pre>
* == (Modification Information) == 개정이력
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2024-03-19 이운산 최초 생성, Sleanl -> Sel 명칭 변경
* </pre>
*/
@Controller
@RequestMapping("/itrnt/sel")
@Slf4j
public class ItrntSelController {
/** WebClient 호출을 위한 wrapper */
@Autowired
private SendToResrc sendToResrc;
/** 공통 메시지 처리를 위한 메시지 객체 */
@Autowired
private GconeMessageSource gconeMessageSource;
/**
* 일별판매분석
* @param ItrntSelVO
* @return DailySelR.jsp
*/
@Policy(AuthPolicy.RESTRICTED)
@RequestMapping(value="/selectDailySel")
public String selectDailySel(ItrntSelVO itrntSelVO, Model model) {
// ReplyFromResrc reply = sendToResrc.ofPost(RESRC.GCONEBO, "/gcone/itrnt/sel/selectBOItrntSel", itrntSelVO);
return "itrnt/sel/DailySelR";
}
/**
* 주간 판매 조회 페이지 이동
* @param ItrntSelVO
* @return WklySelR.jsp
*/
@Policy(AuthPolicy.RESTRICTED)
@RequestMapping(value="/selectWklySel")
public String selectWklySel(ItrntSelVO itrntSelVO, Model model) {
//ReplyFromResrc reply = sendToResrc.ofPost(RESRC.GCONEBO, "/itrnt/selectBOItrntSel", itrntSelngVO);
return "itrnt/sel/WklySelR";
}
/**
* 월간 판매 조회 페이지 이동
* @param ItrntSelVO
* @return MnthlySelR.jsp
*/
@Policy(AuthPolicy.RESTRICTED)
@RequestMapping(value="/selectMnthlySel")
public String selectMnthlySel(ItrntSelVO itrntSelVO, Model model) {
//ReplyFromResrc reply = sendToResrc.ofPost(RESRC.GCONEBO, "/itrnt/selectBOItrntSel", itrntSelngVO);
return "itrnt/sel/MnthlySelR";
}
/**
* 판매 상품 순위 조회 페이지 이동
* @param ItrntSelVO
* @return SelGoodsRankR.jsp
*/
@Policy(AuthPolicy.RESTRICTED)
@RequestMapping(value="/selectSelGoodsRank")
public String selectSelGoodsRank(ItrntSelVO itrntSelVO, Model model) {
//ReplyFromResrc reply = sendToResrc.ofPost(RESRC.GCONEBO, "/itrnt/selectBOWklySelng", itrntSelngVO);
return "itrnt/sel/SelGoodsRankR";
}
}

View File

@@ -0,0 +1,23 @@
package com.wb.domainserver.domain.itrnt.sel.mapper;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import com.wb.domainserver.domain.itrnt.sel.vo.BOItrntSelVO;
import com.wb.domainserver.util.dataaccess.DataMap;
@Mapper
@Repository
public interface BOItrntSelMapper {
/**
* 인트라넷 판매분석 조회
* @param itrntSelngVO
* @return
*/
public List<DataMap> selectBOItrntSel(BOItrntSelVO itrntSelVO);
}

View File

@@ -0,0 +1,37 @@
package com.wb.domainserver.domain.itrnt.sel.service;
import com.wb.domainserver.domain.itrnt.sel.mapper.BOItrntSelMapper;
import com.wb.domainserver.domain.itrnt.sel.vo.BOItrntSelVO;
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.List;
@Slf4j
@Service
public class BOItrntSelService {
@Autowired
private BOItrntSelMapper mapper;
/**
* 인트라넷 판매분석 조회
*
* @param itrntSelVO
* @return
*/
public List<DataMap> selectBOItrntSel(BOItrntSelVO itrntSelVO) {
List<DataMap> resultList = new ArrayList<>();
//판매분석
resultList = mapper.selectBOItrntSel(itrntSelVO);
return resultList;
}
}

View File

@@ -0,0 +1,34 @@
package com.wb.domainserver.domain.itrnt.sel.vo;
import com.wb.domainserver.domain.comm.vo.AbstractVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
@Data
@EqualsAndHashCode(callSuper = false)
public class BOItrntSelVO extends AbstractVO {
private static final long serialVersionUID = 1L;
/** 매장 번호*/
private String providerSeq;
/** 연도 */
private String year;
/** 월 */
private String month;
/** 사이트 타입 */
private String siteType;
/** 조회 시작일자 */
private String sdate;
/** 조회 종료일자 */
private String edate;
/** 데이터 타입 */
private String dataType;
}

View File

@@ -0,0 +1,45 @@
package com.wb.domainserver.domain.itrnt.sel.vo;
import com.wb.domainserver.domain.comm.vo.AbstractVO;
import lombok.Data;
import lombok.EqualsAndHashCode;
/**
* 인트라넷 판매분석 VO
*
* @author 이운산
* @since 2024-03-19
* @version 1.0
* @see
*
* <pre>
* == (Modification Information) == 개정이력
*
* 수정일 수정자 수정내용
* ------- -------- ---------------------------
* 2024-03-19 이운산 최초 생성, Sleanl -> Sel 명칭 변경
* </pre>
*/
@Data
@EqualsAndHashCode(callSuper = false)
public class ItrntSelVO extends AbstractVO {
/** 매장 번호*/
private String providerSeq;
/** 연도 */
private String year;
/** 월 */
private String month;
/** 사이트 타입 */
private String siteType;
/** 조회 시작일자 */
private String sdate;
/** 조회 종료일자 */
private String edate;
}