|
|
@ -12,291 +12,304 @@ import com.renastudio.creative.web.util.DataMap;
|
|
|
|
import com.renastudio.creative.web.util.RenaStringUtil;
|
|
|
|
import com.renastudio.creative.web.util.RenaStringUtil;
|
|
|
|
|
|
|
|
|
|
|
|
public class M_Bf_boardBOImpl extends AbstractBOManager implements M_Bf_boardBO {
|
|
|
|
public class M_Bf_boardBOImpl extends AbstractBOManager implements M_Bf_boardBO {
|
|
|
|
|
|
|
|
|
|
|
|
private final static String SQLMAP_NAMESPACE = "com.backoffice.m.bf_board.";
|
|
|
|
private final static String SQLMAP_NAMESPACE = "com.backoffice.m.bf_board.";
|
|
|
|
|
|
|
|
|
|
|
|
public List<DataMap> select_list_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
public List<DataMap> select_list_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
lm = generalDAO.select_to_list("select_list_bf_board", paramMap);
|
|
|
|
lm = generalDAO.select_to_list("select_list_bf_board", paramMap);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return lm;
|
|
|
|
return lm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public int select_list_bf_board_count(DataMap paramMap) throws Exception{
|
|
|
|
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
|
|
|
|
result = generalDAO.select_item_to_number("select_list_bf_board_count", paramMap);
|
|
|
|
|
|
|
|
} catch (SQLException e) {
|
|
|
|
|
|
|
|
throw e;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DataMap select_top_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
public DataMap select_top_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
DataMap rm = null;
|
|
|
|
DataMap rm = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
rm = generalDAO.select_item_to_datamap("select_top_bf_board", paramMap);
|
|
|
|
rm = generalDAO.select_item_to_datamap("select_top_bf_board", paramMap);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return rm;
|
|
|
|
return rm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public DataMap select_bf_view_board(DataMap paramMap) throws Exception{
|
|
|
|
public DataMap select_bf_view_board(DataMap paramMap) throws Exception{
|
|
|
|
DataMap dm = null;
|
|
|
|
DataMap dm = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
dm = generalDAO.select_item_to_datamap("select_bf_view_board", paramMap);
|
|
|
|
dm = generalDAO.select_item_to_datamap("select_bf_view_board", paramMap);
|
|
|
|
generalDAO.update("update_bf_board_count_by_b_no", paramMap);
|
|
|
|
generalDAO.update("update_bf_board_count_by_b_no", paramMap);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return dm;
|
|
|
|
return dm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<DataMap> select_bf_board_img_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public List<DataMap> select_bf_board_img_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
lm = generalDAO.select_to_list("select_bf_board_img_by_b_no", paramMap);
|
|
|
|
lm = generalDAO.select_to_list("select_bf_board_img_by_b_no", paramMap);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return lm;
|
|
|
|
return lm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<DataMap> select_bf_board_vote_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public List<DataMap> select_bf_board_vote_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
lm = generalDAO.select_to_list("select_bf_board_vote_by_b_no", paramMap);
|
|
|
|
lm = generalDAO.select_to_list("select_bf_board_vote_by_b_no", paramMap);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return lm;
|
|
|
|
return lm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public List<DataMap> select_bf_board_comment_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public List<DataMap> select_bf_board_comment_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
List<DataMap> lm = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
lm = generalDAO.select_to_list("select_bf_board_comment_by_b_no", paramMap);
|
|
|
|
lm = generalDAO.select_to_list("select_bf_board_comment_by_b_no", paramMap);
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return lm;
|
|
|
|
return lm;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public Object insert_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
public Object insert_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
|
|
|
|
|
|
|
|
Object resultObj = null;
|
|
|
|
Object resultObj = null;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
paramMap.put("hashtag", paramMap.getString("list_tag"));
|
|
|
|
paramMap.put("hashtag", paramMap.getString("list_tag"));
|
|
|
|
resultObj = generalDAO.insert("insert_bf_board", paramMap);
|
|
|
|
resultObj = generalDAO.insert("insert_bf_board", paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
// image insert
|
|
|
|
// image insert
|
|
|
|
String bd_no = String.valueOf(resultObj);
|
|
|
|
String bd_no = String.valueOf(resultObj);
|
|
|
|
DataMap dm = new DataMap();
|
|
|
|
DataMap dm = new DataMap();
|
|
|
|
dm.put("bd_no", bd_no);
|
|
|
|
dm.put("bd_no", bd_no);
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList list_file_key = (ArrayList) paramMap.get("list_file_key");
|
|
|
|
ArrayList list_file_key = (ArrayList) paramMap.get("list_file_key");
|
|
|
|
if(list_file_key !=null) {
|
|
|
|
if(list_file_key !=null) {
|
|
|
|
for(int idx = 0; idx < list_file_key.size(); idx++){
|
|
|
|
for(int idx = 0; idx < list_file_key.size(); idx++){
|
|
|
|
dm.put("file_seq", list_file_key.get(idx));
|
|
|
|
dm.put("file_seq", list_file_key.get(idx));
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
ArrayList list_vote_content = (ArrayList) paramMap.get("list_vote_content");
|
|
|
|
ArrayList list_vote_content = (ArrayList) paramMap.get("list_vote_content");
|
|
|
|
if(list_vote_content !=null) {
|
|
|
|
if(list_vote_content !=null) {
|
|
|
|
for(int idx = 0; idx < list_vote_content.size(); idx++){
|
|
|
|
for(int idx = 0; idx < list_vote_content.size(); idx++){
|
|
|
|
dm.put("v_content", list_vote_content.get(idx));
|
|
|
|
dm.put("v_content", list_vote_content.get(idx));
|
|
|
|
generalDAO.insert("insert_bf_board_vote_by_b_no", dm);
|
|
|
|
generalDAO.insert("insert_bf_board_vote_by_b_no", dm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return resultObj;
|
|
|
|
return resultObj;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int update_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
public int update_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
result = generalDAO.update("update_bf_board", paramMap);
|
|
|
|
result = generalDAO.update("update_bf_board", paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
generalDAO.delete("delete_bf_board_img_by_b_no", paramMap);
|
|
|
|
generalDAO.delete("delete_bf_board_img_by_b_no", paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
String bd_no = RenaStringUtil.getData(paramMap, "bd_no");
|
|
|
|
String bd_no = RenaStringUtil.getData(paramMap, "bd_no");
|
|
|
|
DataMap dm = new DataMap();
|
|
|
|
DataMap dm = new DataMap();
|
|
|
|
dm.put("bd_no", bd_no);
|
|
|
|
dm.put("bd_no", bd_no);
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList list_file_key = (ArrayList) paramMap.get("list_file_key");
|
|
|
|
ArrayList list_file_key = (ArrayList) paramMap.get("list_file_key");
|
|
|
|
if(list_file_key !=null) {
|
|
|
|
if(list_file_key !=null) {
|
|
|
|
for(int idx = 0; idx < list_file_key.size(); idx++){
|
|
|
|
for(int idx = 0; idx < list_file_key.size(); idx++){
|
|
|
|
dm.put("file_seq", list_file_key.get(idx));
|
|
|
|
dm.put("file_seq", list_file_key.get(idx));
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList list_mt_file_seq = (ArrayList) paramMap.get("list_mt_file_seq");
|
|
|
|
ArrayList list_mt_file_seq = (ArrayList) paramMap.get("list_mt_file_seq");
|
|
|
|
if(list_mt_file_seq !=null) {
|
|
|
|
if(list_mt_file_seq !=null) {
|
|
|
|
for(int idx = 0; idx < list_mt_file_seq.size(); idx++){
|
|
|
|
for(int idx = 0; idx < list_mt_file_seq.size(); idx++){
|
|
|
|
dm.put("file_seq", list_mt_file_seq.get(idx));
|
|
|
|
dm.put("file_seq", list_mt_file_seq.get(idx));
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
generalDAO.delete("delete_bf_board_vote_by_b_no", paramMap);
|
|
|
|
generalDAO.delete("delete_bf_board_vote_by_b_no", paramMap);
|
|
|
|
ArrayList list_vote_content = (ArrayList) paramMap.get("list_vote_content");
|
|
|
|
ArrayList list_vote_content = (ArrayList) paramMap.get("list_vote_content");
|
|
|
|
if(list_vote_content !=null) {
|
|
|
|
if(list_vote_content !=null) {
|
|
|
|
for(int idx = 0; idx < list_vote_content.size(); idx++){
|
|
|
|
for(int idx = 0; idx < list_vote_content.size(); idx++){
|
|
|
|
dm.put("v_content", list_vote_content.get(idx));
|
|
|
|
dm.put("v_content", list_vote_content.get(idx));
|
|
|
|
generalDAO.insert("insert_bf_board_vote_by_b_no", dm);
|
|
|
|
generalDAO.insert("insert_bf_board_vote_by_b_no", dm);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int delete_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
public int delete_bf_board(DataMap paramMap) throws Exception{
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
result = generalDAO.delete("delete_bf_board_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_by_b_no", paramMap);
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
result = generalDAO.delete("delete_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_like_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_like_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_img_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_img_by_b_no", paramMap);
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int delete_bf_board_comment_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public int delete_bf_board_comment_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
result = generalDAO.delete("delete_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_comment_by_b_no", paramMap);
|
|
|
|
/*
|
|
|
|
/*
|
|
|
|
result = generalDAO.delete("delete_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_like_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_like_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_img_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_img_by_b_no", paramMap);
|
|
|
|
*/
|
|
|
|
*/
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int insert_bf_board_like_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public int insert_bf_board_like_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
result = (int) generalDAO.insert("insert_bf_board_like_by_b_no", paramMap);
|
|
|
|
result = (int) generalDAO.insert("insert_bf_board_like_by_b_no", paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int update_bf_board_vote_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public int update_bf_board_vote_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
result = (int) generalDAO.update("update_bf_board_vote_by_b_no", paramMap);
|
|
|
|
result = (int) generalDAO.update("update_bf_board_vote_by_b_no", paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int delete_bf_board_like_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
public int delete_bf_board_like_by_b_no(DataMap paramMap) throws Exception{
|
|
|
|
|
|
|
|
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
result = generalDAO.delete("delete_bf_board_like_by_b_no", paramMap);
|
|
|
|
result = generalDAO.delete("delete_bf_board_like_by_b_no", paramMap);
|
|
|
|
|
|
|
|
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
generalDAO.commitTransaction();
|
|
|
|
} catch (SQLException e) {
|
|
|
|
} catch (SQLException e) {
|
|
|
|
throw e;
|
|
|
|
throw e;
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public int insert_bf_board_comment(DataMap paramMap) throws Exception{
|
|
|
|
public int insert_bf_board_comment(DataMap paramMap) throws Exception{
|
|
|
|
int result = 0;
|
|
|
|
int result = 0;
|
|
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
try {
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.setNamespace(SQLMAP_NAMESPACE);
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
if( M_Util.null2Str(paramMap.get("reply_new"),"Y").equals("Y")){
|
|
|
|
if( M_Util.null2Str(paramMap.get("reply_new"),"Y").equals("Y")){
|
|
|
|
if(!M_Util.null2Str(paramMap.get("ct_no"),"").equals(""))
|
|
|
|
if(!M_Util.null2Str(paramMap.get("ct_no"),"").equals(""))
|
|
|
|
paramMap.put("p_ct_no", Integer.parseInt(paramMap.get("ct_no").toString()));
|
|
|
|
paramMap.put("p_ct_no", Integer.parseInt(paramMap.get("ct_no").toString()));
|
|
|
|
result = (int) generalDAO.insert("insert_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = (int) generalDAO.insert("insert_bf_board_comment_by_b_no", paramMap);
|
|
|
|
}else {
|
|
|
|
}else {
|
|
|
|
paramMap.put("ct_no", Integer.parseInt(paramMap.get("ct_no").toString())); // 댓글 수정
|
|
|
|
paramMap.put("ct_no", Integer.parseInt(paramMap.get("ct_no").toString())); // 댓글 수정
|
|
|
|
result = (int)generalDAO.update("update_bf_board_comment_by_b_no", paramMap);
|
|
|
|
result = (int)generalDAO.update("update_bf_board_comment_by_b_no", paramMap);
|
|
|
@ -307,8 +320,8 @@ public class M_Bf_boardBOImpl extends AbstractBOManager implements M_Bf_boardBO
|
|
|
|
}finally{
|
|
|
|
}finally{
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
generalDAO.endTransaction();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return result;
|
|
|
|
return result;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|