mirror of
http://git.mhez-qa.uplus.co.kr/hubez/hubez-admin.git
synced 2025-12-06 17:43:44 +09:00
공지사항 첨부파일 삭제 쿼리 수정
This commit is contained in:
@@ -187,20 +187,22 @@
|
||||
NT_NO = #{ntNo}
|
||||
</update>
|
||||
|
||||
<!-- 첨부파일 번호 최근값 가져오기 -->
|
||||
<!-- 공지사항 첨부파일 번호 최근값 가져오기 -->
|
||||
<select id="updateNoticeFileMaxNum" parameterType="kr.co.uplus.ez.api.homeMgt.dto.UpdateNoticeReqDto" resultType="int">
|
||||
/* homeMgt-mapper.xml (updateNoticeFileMaxNum) */
|
||||
SELECT
|
||||
IFNULL( MAX(FILE_NO), 0) + 1
|
||||
FROM hubez_common.EZ_BBS_FATC
|
||||
WHERE BBS_NO = #{ntNo}
|
||||
</select>
|
||||
|
||||
<!-- 첨부파일 삭제 -->
|
||||
<!-- 공지사항 첨부파일 삭제 -->
|
||||
<delete id="delNoticeFile" parameterType="kr.co.uplus.ez.api.homeMgt.dto.DelNoticeReqDto">
|
||||
/* homeMgt-mapper.xml(delNoticeFile) */
|
||||
DELETE FROM hubez_common.EZ_BBS_FATC
|
||||
WHERE BBS_NO = #{ntNo}
|
||||
AND FILE_NO = #{fileNo}
|
||||
AND BBS_DIV_CD = '02'
|
||||
</delete>
|
||||
|
||||
<!-- 공지사항 삭제 -->
|
||||
|
||||
Reference in New Issue
Block a user