과거데이터 api 파일명 변경

This commit is contained in:
DESKTOP-6ARNG1Q\dlsgk 2024-09-02 12:48:30 +09:00
parent 689e62ea0b
commit 34f9038b02
10 changed files with 37 additions and 34 deletions

View File

@ -1,7 +1,8 @@
package com.interplug.qcast.biz.api; package com.interplug.qcast.biz.excelDown;
import com.interplug.qcast.biz.api.dto.*; import com.interplug.qcast.biz.excelDown.dto.*;
import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.http.HttpStatus; import org.springframework.http.HttpStatus;
@ -11,18 +12,19 @@ import java.util.List;
@Slf4j @Slf4j
@RestController @RestController
@RequestMapping("/api/") @RequestMapping("/api/excel-down/")
@RequiredArgsConstructor @RequiredArgsConstructor
public class ApiController { @Tag(name = "ExcelDownController", description = "과거데이터 엑셀다운로드 API")
private final ApiService apiService; public class ExcelDownController {
private final ExcelDownService excelDownService;
@Operation(description = "과거데이터_견적 엑셀다운로드 조회") @Operation(description = "과거데이터_견적 엑셀다운로드 조회")
@PostMapping("/quotExclDownData") @PostMapping("/quotExclDownData")
@ResponseStatus(HttpStatus.OK) @ResponseStatus(HttpStatus.OK)
public QuotResponse quotExclDownData(@RequestBody QuotRequest quotRequest) { public QuotResponse quotExclDownData(@RequestBody QuotRequest quotRequest) {
List<QuotPlanResponse> quotPlanExclDownData = apiService.selectQuotPlanExclDownData(quotRequest); List<QuotPlanResponse> quotPlanExclDownData = excelDownService.selectQuotPlanExclDownData(quotRequest);
List<QuotItemResponse> quotItemExclDownData = apiService.selectQuotItemExclDownData(quotRequest); List<QuotItemResponse> quotItemExclDownData = excelDownService.selectQuotItemExclDownData(quotRequest);
QuotResponse quotRes = new QuotResponse(); QuotResponse quotRes = new QuotResponse();
quotRes.setQuotPlanList(quotPlanExclDownData); quotRes.setQuotPlanList(quotPlanExclDownData);
@ -35,7 +37,7 @@ public class ApiController {
@PostMapping("/ntrCtsCmpExclDownData") @PostMapping("/ntrCtsCmpExclDownData")
@ResponseStatus(HttpStatus.OK) @ResponseStatus(HttpStatus.OK)
public List<NtrCtsCmpResponse> ntrCtsCmpExclDownData(@RequestBody NtrCtsCmpRequest ntrCtsCmpRequest) { public List<NtrCtsCmpResponse> ntrCtsCmpExclDownData(@RequestBody NtrCtsCmpRequest ntrCtsCmpRequest) {
return apiService.selectNtrCtsCmpExclDownData(ntrCtsCmpRequest); return excelDownService.selectNtrCtsCmpExclDownData(ntrCtsCmpRequest);
} }

View File

@ -1,12 +1,12 @@
package com.interplug.qcast.biz.api; package com.interplug.qcast.biz.excelDown;
import com.interplug.qcast.biz.api.dto.*; import com.interplug.qcast.biz.excelDown.dto.*;
import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Mapper;
import java.util.List; import java.util.List;
@Mapper @Mapper
interface ApiMapper { interface ExcelDownMapper {
List<QuotPlanResponse> selectQuotPlanExclDownData(QuotRequest quotRequest); List<QuotPlanResponse> selectQuotPlanExclDownData(QuotRequest quotRequest);
List<QuotItemResponse> selectQuotItemExclDownData(QuotRequest quotRequest); List<QuotItemResponse> selectQuotItemExclDownData(QuotRequest quotRequest);

View File

@ -1,6 +1,6 @@
package com.interplug.qcast.biz.api; package com.interplug.qcast.biz.excelDown;
import com.interplug.qcast.biz.api.dto.*; import com.interplug.qcast.biz.excelDown.dto.*;
import lombok.RequiredArgsConstructor; import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j; import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
@ -10,18 +10,18 @@ import java.util.List;
@Slf4j @Slf4j
@Service @Service
@RequiredArgsConstructor @RequiredArgsConstructor
public class ApiService { public class ExcelDownService {
private final ApiMapper apiMapper; private final ExcelDownMapper excelDownMapper;
public List<QuotPlanResponse> selectQuotPlanExclDownData(QuotRequest quotRequest) { public List<QuotPlanResponse> selectQuotPlanExclDownData(QuotRequest quotRequest) {
return apiMapper.selectQuotPlanExclDownData(quotRequest); return excelDownMapper.selectQuotPlanExclDownData(quotRequest);
} }
public List<QuotItemResponse> selectQuotItemExclDownData(QuotRequest quotRequest) { public List<QuotItemResponse> selectQuotItemExclDownData(QuotRequest quotRequest) {
return apiMapper.selectQuotItemExclDownData(quotRequest); return excelDownMapper.selectQuotItemExclDownData(quotRequest);
} }
public List<NtrCtsCmpResponse> selectNtrCtsCmpExclDownData(NtrCtsCmpRequest ntrCtsCmpRequest) { public List<NtrCtsCmpResponse> selectNtrCtsCmpExclDownData(NtrCtsCmpRequest ntrCtsCmpRequest) {
return apiMapper.selectNtrCtsCmpExclDownData(ntrCtsCmpRequest); return excelDownMapper.selectNtrCtsCmpExclDownData(ntrCtsCmpRequest);
} }
} }

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.api.dto; package com.interplug.qcast.biz.excelDown.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.api.dto; package com.interplug.qcast.biz.excelDown.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.api.dto; package com.interplug.qcast.biz.excelDown.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.api.dto; package com.interplug.qcast.biz.excelDown.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.api.dto; package com.interplug.qcast.biz.excelDown.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,4 +1,4 @@
package com.interplug.qcast.biz.api.dto; package com.interplug.qcast.biz.excelDown.dto;
import lombok.Getter; import lombok.Getter;
import lombok.Setter; import lombok.Setter;

View File

@ -1,10 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.interplug.qcast.biz.api.ApiMapper"> <mapper namespace="com.interplug.qcast.biz.excelDown.ExcelDownMapper">
<select id="selectQuotPlanExclDownData" parameterType="com.interplug.qcast.biz.api.dto.QuotRequest" <select id="selectQuotPlanExclDownData" parameterType="com.interplug.qcast.biz.excelDown.dto.QuotRequest"
resultType="com.interplug.qcast.biz.api.dto.QuotPlanResponse"> resultType="com.interplug.qcast.
/* sqlid : com.interplug.qcast.api.selectQuotPlanExclDownData (견적엑셀다운로드 플랜정보 데이터 조회) */ biz.excelDown.dto.QuotPlanResponse">
/* sqlid : com.interplug.qcast.api.excelDown.selectQuotPlanExclDownData (견적엑셀다운로드 플랜정보 데이터 조회) */
SELECT SELECT
B.OBJECT_NO /* 물건번호 物件番号 */ B.OBJECT_NO /* 물건번호 物件番号 */
, A.PLAN_NO /* 플랜 案件番号 */ , A.PLAN_NO /* 플랜 案件番号 */
@ -190,9 +191,9 @@
</if> </if>
</select> </select>
<select id="selectQuotItemExclDownData" parameterType="com.interplug.qcast.biz.api.dto.QuotRequest" <select id="selectQuotItemExclDownData" parameterType="com.interplug.qcast.biz.excelDown.dto.QuotRequest"
resultType="com.interplug.qcast.biz.api.dto.QuotItemResponse"> resultType="com.interplug.qcast.biz.excelDown.dto.QuotItemResponse">
/* sqlid : com.interplug.qcast.api.selectQuotItemExclDownData (견적엑셀다운로드 품목단위 데이터 조회) */ /* sqlid : com.interplug.qcast.api.excelDown.selectQuotItemExclDownData (견적엑셀다운로드 품목단위 데이터 조회) */
SELECT SELECT
C.OBJECT_NO /* 물건번호 物件番号 */ C.OBJECT_NO /* 물건번호 物件番号 */
, B.PLAN_NO /* 플랜 案件番号 */ , B.PLAN_NO /* 플랜 案件番号 */
@ -268,9 +269,9 @@
</select> </select>
<select id="selectNtrCtsCmpExclDownData" parameterType="com.interplug.qcast.biz.api.dto.NtrCtsCmpRequest" <select id="selectNtrCtsCmpExclDownData" parameterType="com.interplug.qcast.biz.excelDown.dto.NtrCtsCmpRequest"
resultType="com.interplug.qcast.biz.api.dto.NtrCtsCmpResponse"> resultType="com.interplug.qcast.biz.excelDown.dto.NtrCtsCmpResponse">
/* sqlid : com.interplug.qcast.api.selectNtrCtsCmpExclDownData (자연재해보상입력 엑셀 다운로드 데이터 조회)*/ /* sqlid : com.interplug.qcast.api.excelDown.selectNtrCtsCmpExclDownData (자연재해보상입력 엑셀 다운로드 데이터 조회)*/
SELECT SELECT
A.GUARANTEE_RECEIVE_USER /* 구매자 성명購入者 */ A.GUARANTEE_RECEIVE_USER /* 구매자 성명購入者 */