팝업 공지 어드민 등록 화면 작업

This commit is contained in:
kubo8
2023-04-13 10:25:43 +09:00
parent 58ab820e43
commit 5b4273add6
9 changed files with 227 additions and 238 deletions

View File

@@ -101,6 +101,7 @@ public class HomeMgtService {
homeMgtMapper.insertNotice(insertNoticeReqDto);
NT_NO = homeMgtMapper.insertNoticeNtNo();
}catch(Exception e){
e.printStackTrace();
return new InsertNoticeResDto(ApiResponseCode.CM_DB_QUERY_ERR);
}

View File

@@ -27,6 +27,12 @@ public class InsertNoticeReqDto implements Serializable {
@ApiModelProperty(example = "사용 여부", name = "사용 여부", dataType = "String")
private String useYn;
@ApiModelProperty(example = "시작일자", name = "시작일자", dataType = "Int")
private String ntStrtDt;
@ApiModelProperty(example = "종료일자", name = "종료일자", dataType = "Int")
private String ntEndDt;
@ApiModelProperty(example = "등록 ID", name = "등록 ID", dataType = "String")
private String regId;

View File

@@ -41,6 +41,12 @@ public class NoticeDto implements Serializable {
@ApiModelProperty(example = "조회수", name = "조회수", dataType = "Int")
private String retvCnt;
@ApiModelProperty(example = "시작일자", name = "시작일자", dataType = "Int")
private String ntStrtDt;
@ApiModelProperty(example = "종료일자", name = "종료일자", dataType = "Int")
private String ntEndDt;
@ApiModelProperty(example = "등록 ID", name = "등록 ID", dataType = "String")
private String regId;

View File

@@ -32,6 +32,12 @@ public class NoticeListReqDto implements Serializable {
@ApiModelProperty(example = "사용 여부", name = "사용 여부", dataType = "String")
private String useYn;
@ApiModelProperty(example = "시작일자", name = "시작일자", dataType = "Int")
private String ntStrtDt;
@ApiModelProperty(example = "종료일자", name = "종료일자", dataType = "Int")
private String ntEndDt;
@NotNull
@ApiModelProperty(example = "페이지당 조회할 목록 수",notes = "페이지당 조회할 목록 수", name = "페이지당 조회할 목록 수", dataType = "int")
private int pagePerRows;

View File

@@ -33,6 +33,12 @@ public class UpdateNoticeReqDto implements Serializable {
@ApiModelProperty(example = "변경 ID", name = "변경 ID", dataType = "String")
private String chgId;
@ApiModelProperty(example = "시작일자", name = "시작일자", dataType = "Int")
private String ntStrtDt;
@ApiModelProperty(example = "종료일자", name = "종료일자", dataType = "Int")
private String ntEndDt;
@ApiModelProperty(example = "업로드된 파일", name = "업로드된 파일", dataType = "String")
private String legacyFiles;

View File

@@ -25,18 +25,23 @@
@ROWNUM := @ROWNUM + 1 AS NO,
NT_NO,
CTG_CD,
(
SELECT DTL_CD_NM
FROM hubez_common.EZ_CD_DTL
WHERE DTL_CD = N1.CTG_CD
AND GRP_CD = 'NTBBS_CTG_CD' AND USE_YN = 'Y'
) AS CTG_CD_NM,
CASE WHEN CTG_CD = '06' THEN '팝업공지'
ELSE
(
SELECT DTL_CD_NM
FROM hubez_common.EZ_CD_DTL
WHERE DTL_CD = N1.CTG_CD
AND GRP_CD = 'NTBBS_CTG_CD' AND USE_YN = 'Y'
)
END AS CTG_CD_NM,
TITLE,
EMG_YN,
NT_SBST,
REGR,
USE_YN,
RETV_CNT,
DATE_FORMAT(NT_STRT_DT, '%Y-%m-%d') AS ntStrtDt,
DATE_FORMAT(NT_END_DT, '%Y-%m-%d') AS ntEndDt,
REG_ID,
DATE_FORMAT(REG_DT, '%Y-%m-%d') AS regDt,
CHG_ID,
@@ -110,7 +115,11 @@
NT_SBST,
REGR,
USE_YN,
RETV_CNT,
RETV_CNT,
<if test="ctgCd == '06'">
NT_STRT_DT,
NT_END_DT,
</if>
REG_ID,
REG_DT,
CHG_ID,
@@ -123,6 +132,10 @@
#{regr},
#{useYn},
0,
<if test="ctgCd == '06'">
#{ntStrtDt},
#{ntEndDt},
</if>
#{regId},
NOW(),
#{chgId},
@@ -181,6 +194,10 @@
,USE_YN = #{useYn}
,TITLE = #{title}
,NT_SBST = #{ntSbst}
<if test="ctgCd == '06'">
,NT_STRT_DT = #{ntStrtDt}
,NT_END_DT = #{ntEndDt}
</if>
,CHG_DT = NOW()
,CHG_ID = #{chgId}
WHERE