parent
0bf3508665
commit
3fc4ca93aa
@ -0,0 +1,85 @@
|
||||
-- tbl_sync_log 테이블
|
||||
CREATE TABLE `tbl_sync_log` (
|
||||
`idx` int(11) NOT NULL AUTO_INCREMENT COMMENT '자동증가 IDX',
|
||||
`sync_num` varchar(20) DEFAULT NULL COMMENT '동기화코드(4자리)',
|
||||
`member_id` varchar(30) DEFAULT NULL COMMENT '회원아이디-tbl_member',
|
||||
`reg_dt` datetime DEFAULT NULL COMMENT '등록일시',
|
||||
PRIMARY KEY (`idx`),
|
||||
UNIQUE KEY `idx` (`idx`)
|
||||
) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=euckr COMMENT='자녀정보동기화 발행코드';
|
||||
|
||||
|
||||
-- tbl_member 테이블
|
||||
alter table tbl_member add social_type varchar(20) DEFAULT NULL COMMENT '소셜로그인타입';
|
||||
|
||||
|
||||
-- tbl_bf_family_baby 테이블
|
||||
alter table tbl_bf_family_baby add birth_hour decimal(2,0) DEFAULT NULL COMMENT '출생시각';
|
||||
alter table tbl_bf_family_baby add birth_weekday varchar(20) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT '출생주수';
|
||||
alter table tbl_bf_family_baby add curr_weight decimal(4,0) DEFAULT NULL COMMENT '현재체중';
|
||||
alter table tbl_bf_family_baby add curr_height decimal(10,0) DEFAULT NULL COMMENT '현재키';
|
||||
alter table tbl_bf_family_baby add curr_head_size decimal(10,0) DEFAULT NULL COMMENT '현재머리둘레';
|
||||
|
||||
|
||||
-- tbl_code_group 테이블 데이터
|
||||
INSERT INTO tbl_code_group
|
||||
(cg_cd, title, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('BF_RECORD_CATEGORY', '기록카테고리', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
|
||||
-- tbl_code_item 테이블 데이터
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('78', '모유', '1', 'BF_RECORD_CATEGORY', '1', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('79', '젖병', '2', 'BF_RECORD_CATEGORY', '2', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('80', '간식', '3', 'BF_RECORD_CATEGORY', '3', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('81', '홈메이드 이유식', '4', 'BF_RECORD_CATEGORY', '4', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('82', '시판 이유식', '5', 'BF_RECORD_CATEGORY', '5', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('83', '대소변', '6', 'BF_RECORD_CATEGORY', '6', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('84', '예방접종', '7', 'BF_RECORD_CATEGORY', '7', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('85', '병원', '8', 'BF_RECORD_CATEGORY', '8', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
INSERT INTO tbl_code_item
|
||||
(cd_no, title, order_no, cg_cd, val_1, ci_explain, ci_link, reg_dt, mod_dt, sys_member_id)
|
||||
VALUES
|
||||
('86', '생활', '9', 'BF_RECORD_CATEGORY', '9', '', '', '2022-02-05 00:00:00', '', 'so2');
|
||||
|
||||
|
||||
-- tbl_member_category 등록
|
||||
CREATE TABLE `tbl_member_category` (
|
||||
`member_id` varchar(30) DEFAULT NULL COMMENT '회원아이디',
|
||||
`cd_no` bigint(20) DEFAULT NULL COMMENT '코드번호(기록카테고리 번호)',
|
||||
`order_no` int(11) DEFAULT NULL COMMENT '노출순서',
|
||||
`reg_dt` datetime DEFAULT NULL COMMENT '등록일자'
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=euckr COMMENT='회원별 기록 카테고리 순서정보';
|
||||
|
@ -0,0 +1,78 @@
|
||||
<#include "/m/include/index_top.ftl">
|
||||
|
||||
<body><!--grey_bg / blue_w_bg /blue_g_bg-->
|
||||
<div class="wrap">
|
||||
<header class="header_wrapper">
|
||||
<a href="javascript:back.return_url()" class="side_Lbtn hidden pre_btn">이전으로</a>
|
||||
<h1 class="header_title">카테고리 수정</h1>
|
||||
<a href="#" class="side_Rbtn hidden"></a>
|
||||
</header>
|
||||
<main class="m_set_lighting_time">
|
||||
<header>
|
||||
<h2>
|
||||
카테고리 수정
|
||||
</h2>
|
||||
</header>
|
||||
<div class="cont">
|
||||
<form id="frmUpdate" name="frmUpdate" method="post">
|
||||
<div class="set_list_wrap">
|
||||
<#list model['category_list'] as item>
|
||||
<div class="list_item">
|
||||
<label class="radio-label">${item['title']!}</label>
|
||||
<input type="hidden" name="record_list" value="${item['cd_no']!}">
|
||||
</div>
|
||||
</#list>
|
||||
</div>
|
||||
<button type="submit" id="" name="" class="btns blue_btn">저장</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<#include "/m/include/index_bottom_info.ftl">
|
||||
</main>
|
||||
</div>
|
||||
<script>
|
||||
var env = {
|
||||
|
||||
is_loading: false,
|
||||
|
||||
init: function(){
|
||||
$('#frmUpdate').on('submit',function(e){
|
||||
if(this.is_loading) {
|
||||
e.preventDefault()
|
||||
return;
|
||||
}
|
||||
|
||||
var data = $('#frmUpdate').serialize()
|
||||
$.ajax({
|
||||
url:'${URL_ROOT}/m/member_env/ajax_update_record_category.do',
|
||||
type: 'post',
|
||||
data: data,
|
||||
dataType: 'json',
|
||||
error:function(request,status,error){
|
||||
this.is_loading = false
|
||||
Swal.fire({text: '오류가 발생했습니다'})
|
||||
e.preventDefault()
|
||||
return;
|
||||
}.bind('this'),
|
||||
success:function(result){
|
||||
console.log(result)
|
||||
this.is_loading = false
|
||||
var RESULT = result.RESULT
|
||||
}.bind('this'),
|
||||
})
|
||||
|
||||
e.preventDefault()
|
||||
return;
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
$(function(){
|
||||
env.init()
|
||||
})
|
||||
</script>
|
||||
|
||||
<#include "/m/member_env/include_return_url.ftl">
|
||||
|
||||
</body>
|
||||
<#include "/m/include/index_bottom.ftl">
|
Loading…
Reference in new issue