|
|
|
@ -284,9 +284,10 @@ public class M_Bf_daily_nutritionBOImpl extends AbstractBOManager implements M_B
|
|
|
|
|
generalDAO.startTransaction();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//이미 게시판에 저장한 경우 저장 하지 않음
|
|
|
|
|
//이미 게시판에 저장한 경우 전 게시글을 지우고 다시 게시글을 올림
|
|
|
|
|
if(paramMap.get("share_tp").equals("Y") && !M_Util.null2Str(paramMap.get("bd_no"),"").equals("") ) {
|
|
|
|
|
paramMap.put("share_tp","N");
|
|
|
|
|
generalDAO.delete("delete_bf_board_by_b_no", paramMap);
|
|
|
|
|
paramMap.put("share_tp","Y");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
for(int i = 1; i < BF_NU_TP_MAX; i++) {
|
|
|
|
@ -303,6 +304,7 @@ public class M_Bf_daily_nutritionBOImpl extends AbstractBOManager implements M_B
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ArrayList list_file_key = (ArrayList) paramMap.get("list_file_key");
|
|
|
|
|
ArrayList list_file_key_seq = (ArrayList) paramMap.get("list_file_key_seq");
|
|
|
|
|
DataMap dm = new DataMap();
|
|
|
|
|
dm.put("dn_no", paramMap.get("dn_no"));
|
|
|
|
|
|
|
|
|
@ -320,9 +322,7 @@ public class M_Bf_daily_nutritionBOImpl extends AbstractBOManager implements M_B
|
|
|
|
|
if(list_file_key.size()>0) { //추가
|
|
|
|
|
for(int idx = 0; idx < list_file_key.size(); idx++){
|
|
|
|
|
dm.put("file_seq", list_file_key.get(idx));
|
|
|
|
|
if((idx+1) == paramMap.getInt("repReordImg") ) {
|
|
|
|
|
dm.put("rep_img_yn","Y");
|
|
|
|
|
}
|
|
|
|
|
dm.put("file_seq_num", list_file_key_seq.get(idx));
|
|
|
|
|
if(paramMap.get("share_tp").equals("Y") ) {
|
|
|
|
|
generalDAO.insert("insert_bf_board_img_by_b_no", dm);
|
|
|
|
|
}
|
|
|
|
@ -330,6 +330,7 @@ public class M_Bf_daily_nutritionBOImpl extends AbstractBOManager implements M_B
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(paramMap.get("list_mt_file_seq") !=null) { //기존첨부파일
|
|
|
|
|
list_file_key = (ArrayList) paramMap.get("list_mt_file_seq");
|
|
|
|
|
if(list_file_key.size()>0) {
|
|
|
|
@ -346,8 +347,8 @@ public class M_Bf_daily_nutritionBOImpl extends AbstractBOManager implements M_B
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
dm.put("rep_img_yn", "Y");
|
|
|
|
|
dm.put("file_seq", paramMap.get("append_src_img_file"));
|
|
|
|
|
dm.put("repReordImg", paramMap.getInt("repReordImg"));
|
|
|
|
|
generalDAO.update("update_bf_daily_nutrition_img_by_b_no", dm); //대표 이미지수정
|
|
|
|
|
|
|
|
|
|
ArrayList list_hosp_file_key = (ArrayList) paramMap.get("list_hosp_file_key");
|
|
|
|
|