보증서 발행완료 엑셀다운로드 api 수정
This commit is contained in:
parent
b49cd9e6b9
commit
0fb65edc4c
@ -41,10 +41,10 @@ public class ExcelDownController {
|
||||
}
|
||||
|
||||
@Operation(description = "과거데이터_보증서발행완료 물건 엑셀다운로드 조회")
|
||||
@PostMapping("/warranty-issued-excl-down-data")
|
||||
@PostMapping("/wrnt-isnc-cmpl-excl-down-data")
|
||||
@ResponseStatus(HttpStatus.OK)
|
||||
public List<CmplWrntIsueResponse> warrantyIssuedDataExclDownData(@RequestBody CmplWrntIsueRequest cmplWrntIsueRequest) throws Exception {
|
||||
return excelDownService.selectWarrantyIssuedDataExclDownData(cmplWrntIsueRequest);
|
||||
public List<WrntIsncCmplResponse> warrantyIssuedCmpExclDownData(@RequestBody WrntIsncCmplRequest wrntIsncCmplRequest) throws Exception {
|
||||
return excelDownService.selectWarrantyIssuedCmpExclDownData(wrntIsncCmplRequest);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -13,5 +13,5 @@ interface ExcelDownMapper {
|
||||
|
||||
List<NtrCtsCmpResponse> selectNtrCtsCmpExclDownData(NtrCtsCmpRequest ntrCtsCmpRequest) throws Exception;
|
||||
|
||||
List<CmplWrntIsueResponse> selectWarrantyIssuedDataExclDownData(CmplWrntIsueRequest cmplWrntIsueRequest) throws Exception;
|
||||
List<WrntIsncCmplResponse> selectWarrantyIssuedCmpExclDownData(WrntIsncCmplRequest wrntIsncCmplRequest) throws Exception;
|
||||
}
|
||||
|
||||
@ -25,7 +25,7 @@ public class ExcelDownService {
|
||||
return excelDownMapper.selectNtrCtsCmpExclDownData(ntrCtsCmpRequest);
|
||||
}
|
||||
|
||||
public List<CmplWrntIsueResponse> selectWarrantyIssuedDataExclDownData(CmplWrntIsueRequest cmplWrntIsueRequest) throws Exception {
|
||||
return excelDownMapper.selectWarrantyIssuedDataExclDownData(cmplWrntIsueRequest);
|
||||
public List<WrntIsncCmplResponse> selectWarrantyIssuedCmpExclDownData(WrntIsncCmplRequest wrntIsncCmplRequest) throws Exception {
|
||||
return excelDownMapper.selectWarrantyIssuedCmpExclDownData(wrntIsncCmplRequest);
|
||||
}
|
||||
}
|
||||
|
||||
@ -6,7 +6,7 @@ import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class CmplWrntIsueRequest {
|
||||
public class WrntIsncCmplRequest {
|
||||
@Schema(description = "과거일자 기준일")
|
||||
private String sch_baseDt;
|
||||
@Schema(description = "기간 구분 ( 보증서발급일, 보증서신청일 )")
|
||||
@ -6,7 +6,7 @@ import lombok.Setter;
|
||||
|
||||
@Getter
|
||||
@Setter
|
||||
public class CmplWrntIsueResponse {
|
||||
public class WrntIsncCmplResponse {
|
||||
@Schema(description = "부동산 관리 번호")
|
||||
private String objectNo;
|
||||
@Schema(description = "계획")
|
||||
@ -71,7 +71,7 @@ public class CmplWrntIsueResponse {
|
||||
private String standGuaranteeNoTarget;
|
||||
@Schema(description = "가대 보증 세트")
|
||||
private String standGuaranteeSet;
|
||||
@Schema(description = "자연재해보상통지일 ")
|
||||
@Schema(description = "자연재해보상통지일")
|
||||
private String naturalDisasterCopensateNotifiedDate;
|
||||
@Schema(description = "연장기기 보증 통지일")
|
||||
private String equipGuaranteeNotifiedDate;
|
||||
@ -156,7 +156,6 @@
|
||||
LEFT JOIN M_COMM_L C3
|
||||
ON C3.CODE = A.ROOF_MATERIAL_ID
|
||||
AND C3.HEAD_CD = '201900'
|
||||
|
||||
LEFT JOIN M_SUPPORT_METHOD P
|
||||
ON A.SUPPORT_METHOD_ID = P.SUPPORT_METHOD_ID
|
||||
LEFT JOIN M_COMM_L C4
|
||||
@ -178,9 +177,10 @@
|
||||
ON G.FIRST_AGENT_ID = Y.SALE_STORE_ID /*1차점정보*/
|
||||
WHERE A.DEL_FLG = 0
|
||||
AND B.DEL_FLG = 0
|
||||
AND B.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[ <= ]]> #{sch_baseDt} /* 과거일자 기준일 */
|
||||
AND B.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[ <= ]]> #{sch_baseDt} + ' 23:59:59' /* 과거일자 기준일 */
|
||||
<if test="sch_startDt != null and sch_startDt != '' and sch_endDt != null and sch_endDt != ''"> <!-- 견적일 -->
|
||||
AND B.ESTIMATE_DETAIL_CREATE_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
AND B.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND B.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</if>
|
||||
<if test="sch_saleStoreId != null and sch_saleStoreId != ''"> <!-- 판매대리점명/ID -->
|
||||
AND B.SALE_STORE_ID = #{sch_saleStoreId}
|
||||
@ -255,9 +255,10 @@
|
||||
WHERE C.DEL_FLG = 0
|
||||
AND D.DEL_FLG = 0
|
||||
AND B.DEL_FLG = 0
|
||||
AND C.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[ <= ]]> #{sch_baseDt} /* 과거일자 기준일 */
|
||||
AND C.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[ <= ]]> #{sch_baseDt} + ' 23:59:59' /* 과거일자 기준일 */
|
||||
<if test="sch_startDt != null and sch_startDt != '' and sch_endDt != null and sch_endDt != ''"> <!-- 견적일 -->
|
||||
AND C.ESTIMATE_DETAIL_CREATE_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
AND C.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND C.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</if>
|
||||
<if test="sch_saleStoreId != null and sch_saleStoreId != ''"> <!-- 판매대리점명/ID -->
|
||||
AND C.SALE_STORE_ID = #{sch_saleStoreId}
|
||||
@ -349,18 +350,21 @@
|
||||
LEFT JOIN T_OBJECT D
|
||||
ON A.OBJECT_NO = D.OBJECT_NO
|
||||
WHERE D.DEL_FLG != 1
|
||||
AND D.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[ <= ]]> #{sch_baseDt} /* 과거일자 기준일 */
|
||||
AND D.ESTIMATE_DETAIL_CREATE_DATE <![CDATA[ <= ]]> #{sch_baseDt} + ' 23:59:59' /* 과거일자 기준일 */
|
||||
<if test="sch_dtType != null and sch_dtType != ''">
|
||||
<if test="sch_startDt != null and sch_startDt != '' and sch_endDt != null and sch_endDt != ''">
|
||||
<choose>
|
||||
<when test='sch_dtType == "NATURAL" '> <!-- 자연재해보상 통지일 -->
|
||||
AND A.NATURAL_DISASTER_COPENSATE_NOTIFIED_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
AND A.NATURAL_DISASTER_COPENSATE_NOTIFIED_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND A.NATURAL_DISASTER_COPENSATE_NOTIFIED_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</when>
|
||||
<when test='sch_dtType == "GUARANTEE" '> <!-- 보증서 발급일 -->
|
||||
AND A.GUARANTEE_ISSUE_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
AND A.GUARANTEE_ISSUE_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND A.GUARANTEE_ISSUE_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</when>
|
||||
<when test='sch_dtType == "COOPERATION" '> <!-- 설치일 -->
|
||||
AND A.COOPERATION_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
AND A.COOPERATION_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND A.COOPERATION_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
@ -376,10 +380,10 @@
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectWarrantyIssuedDataExclDownData" parameterType="com.interplug.qcast.biz.excelDown.dto.CmplWrntIsueRequest" resultType="com.interplug.qcast.biz.excelDown.dto.CmplWrntIsueResponse">
|
||||
/* sqlid : com.interplug.qcast.api.excelDown.selectWarrantyIssuedDataExclDownData (보증서발행완료 물건 엑셀 다운로드 데이터 조회)*/
|
||||
<select id="selectWarrantyIssuedCmpExclDownData" parameterType="com.interplug.qcast.biz.excelDown.dto.WrntIsncCmplRequest" resultType="com.interplug.qcast.biz.excelDown.dto.WrntIsncCmplResponse">
|
||||
/* sqlid : com.interplug.qcast.api.excelDown.selectWarrantyIssuedCmpExclDownData (보증서발행완료 물건 엑셀 다운로드 데이터 조회)*/
|
||||
SELECT
|
||||
A.OBJECT_NO /* 부동산 관리 번호 */
|
||||
A.OBJECT_NO /* 부동산 관리 번호 */
|
||||
, A.PLAN_NO /* 계획 */
|
||||
, A.GUARANTEE_APPLY_DATE /* 보증서 신청일 */
|
||||
, A.GUARANTEE_APPROVAL_DATE /* 보증서 승인일 */
|
||||
@ -433,11 +437,13 @@
|
||||
<if test="sch_dtType != null and sch_dtType != ''">
|
||||
<if test="sch_startDt != null and sch_startDt != '' and sch_endDt != null and sch_endDt != ''">
|
||||
<choose>
|
||||
<when test='sch_dtType == "GUARANTEE" '> <!-- 보증서 발급일 -->
|
||||
AND A.GUARANTEE_ISSUE_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
<when test='sch_dtType == "ISSUE" '> <!-- 보증서 발급일 -->
|
||||
AND A.GUARANTEE_ISSUE_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND A.GUARANTEE_ISSUE_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</when>
|
||||
<when test='sch_dtType == "APPLY" '> <!-- 보증서 신청일 -->
|
||||
AND A.GUARANTEE_APPLY_DATE BETWEEN #{sch_startDt} and #{sch_endDt}
|
||||
AND A.GUARANTEE_APPLY_DATE <![CDATA[>=]]> #{sch_startDt} + ' 00:00:00'
|
||||
AND A.GUARANTEE_APPLY_DATE <![CDATA[<=]]> #{sch_endDt} + ' 23:59:59'
|
||||
</when>
|
||||
</choose>
|
||||
</if>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user