커뮤니티 칼럼 기능 수정

dev_bert
kyebyungha 3 years ago
parent e0fade425e
commit 652089120a

@ -5,6 +5,7 @@
SELECT
x.*
FROM (
<isNotEqual property="bd_tp" compareValue="BF_CT_TP_5">
SELECT
x.bd_no
,x.bd_tp
@ -29,7 +30,7 @@
,m.nickname
,tmf.mt_file_seq
,tmf.mt_file_local_url
,ROW_NUMBER() OVER (ORDER BY x.reg_dt DESC) AS row_num
,ROW_NUMBER() OVER (ORDER BY x.h_nt desc, x.bd_no desc) AS row_num
FROM tbl_bf_board x
LEFT JOIN tbl_code_item z
on x.bd_tp = z.val_1 and cg_cd ='BF_COMMUNITY_TP'
@ -47,14 +48,14 @@
WHERE DATE_FORMAT(x.reg_dt,'%Y%M%d') = DATE_FORMAT(now(),'%Y%M%d')
and x.use_yn ='Y'
and x.bd_tp !='BF_CT_TP_5'
<isNotEmpty property="who" prepend="">
AND member_id = #member_id#
</isNotEmpty>
<isNotEmpty property="bd_tp" prepend="">
AND x.bd_tp = #bd_tp#
</isNotEmpty>
UNION
</isNotEqual>
<isEqual property="bd_tp" compareValue="BF_CT_TP_5">
SELECT
x.bd_no
,x.bd_tp
@ -101,10 +102,8 @@
<isNotEmpty property="who" prepend="">
AND member_id = #member_id#
</isNotEmpty>
<isNotEmpty property="bd_tp" prepend="">
AND x.bd_tp = #bd_tp#
</isNotEmpty>
LIMIT 8
</isEqual>
)x
WHERE 1 = 1
@ -124,8 +123,6 @@
</isEqual>
</isNotEmpty>
ORDER BY x.h_nt desc, x.l_nt desc, x.bd_no desc
</select>

@ -60,12 +60,12 @@
<!-- 커뮤니티 내용 -->
<div class="community_con">
<#if model['bd_tp'] != 'BF_CT_TP_5'>
<#if model['lm']?has_content >
<div class="small_title_div">
<p class="small_title">오늘의 인기글</p>
</div>
<!-- 오늘의 인기글 목록 -->
<div class="today_hot">
<#if model['lm']?has_content >
<#list model['lm'] as item>
<!-- 태그에 hot 클래스 추가시 노란테두리 생성 -->
<div class="write_box <#if item?index == 0>hot </#if>" onclick="fncDetail('${item['bd_no']!}')" >
@ -112,12 +112,13 @@
<div class="txt_box">
<a href="#" onclick="fncDetail('${item['bd_no']!}')"> ${item['title']!} </a>
</div>
<#if item['mt_file_seq']?has_content >
<#if item['bd_tp'] != "BF_CT_TP_5" && item['mt_file_seq']?has_content >
<div class="img_box">
<img src="${URL_ROOT}/file/get.do?mt_file_seq=${item['mt_file_seq']!}">
</div>
</#if>
</div>
</#if>
<div class="commu_div">
<div class="nickname_div">

@ -129,7 +129,8 @@
</div>
</#if>
<!-- //swiper_wrap -->
<p class="cont_txt">${model ['rm']['content']!}</p>
<p class="cont_txt">
<textarea class="content" cols='150' readOnly style="border: none;padding-left: 130px;">${model ['rm']['content']!}</textarea></p>
</div>
<!-- //community_img -->
@ -793,6 +794,14 @@
insert_reply();
});
$(".comment_input_cont").hide();
var txtArea = $(".content");
if (txtArea) {
txtArea.each(function(){
$(this).height(this.scrollHeight);
});
}
<#if model['bd_tp']! =='BF_CT_TP_3'>
$(".community_write_review").show();
<#else>

Loading…
Cancel
Save