4.7 KiB
계정정보
- 어드민 운영서버 : http://devops.lookylooks.ai:14288/bf/admin/index.do
- 프론트 운영서버 : http://devops.lookylooks.ai:14288/bf/m/login/view_login.do
- 계정정보 : imcloud / imc1234
DB정보
- http://devops.lookylooks.ai:14236
- id : imcloud
- pw : imc1234
---------------------------------------------------------------------------- 참고 쿼리 ----------------------------------------------------------------------------
일상기록 삭제 - 일부
delete from tbl_bf_daily_nutrition where smc_no = 73; delete from tbl_bf_daily_nutrition_1 where smc_no = 73; delete from tbl_bf_daily_nutrition_2 where smc_no = 73; delete from tbl_bf_daily_nutrition_3 where smc_no = 73; delete from tbl_bf_daily_nutrition_4 where smc_no = 73; delete from tbl_bf_daily_nutrition_5 where smc_no = 73; delete from tbl_bf_daily_nutrition_6 where smc_no = 73; delete from tbl_bf_daily_nutrition_7 where smc_no = 73; delete from tbl_bf_daily_nutrition_8 where smc_no = 73; delete from tbl_bf_daily_nutrition_9 where smc_no = 73; delete from tbl_bf_daily_nutrition_10 where smc_no = 73;
일상기록 삭제 - 전체
delete from tbl_bf_daily_nutrition; delete from tbl_bf_daily_nutrition_1; delete from tbl_bf_daily_nutrition_2; delete from tbl_bf_daily_nutrition_3; delete from tbl_bf_daily_nutrition_4; delete from tbl_bf_daily_nutrition_5; delete from tbl_bf_daily_nutrition_6; delete from tbl_bf_daily_nutrition_7; delete from tbl_bf_daily_nutrition_8; delete from tbl_bf_daily_nutrition_9; delete from tbl_bf_daily_nutrition_10;
동기화 관련
select * from tbl_bf_family where member_id = 'renamaestro'; select smc_no, member_id from tbl_bf_family_baby where member_id = 'renamaestro'; select * from tbl_bf_family_baby_disease where smc_no in(2,3); select * from tbl_bf_family_baby_order where smc_no in(2,3);
회원정보 삭제
delete from tbl_member where name = '김종환'; delete from tbl_member_confirm where member_id = '1642055604247'; delete from tbl_bf_family_disease where bf_no = '5'; delete from tbl_bf_family where member_id = '1642055604247'; delete from tbl_bf_family_baby where member_id = '1642055604247'; delete from tbl_bf_family_baby_disease where smc_no = '72';
세션 회원아이디 GET
HttpSession session = request.getSession(false); DataMap rm_mem = (DataMap) session.getAttribute(ConstantSystem.SESSION_RM_MEMBER); paramMap.put("member_id", RenaStringUtil.getData(rm_mem, "member_id"));
#메모리 - 일간분석 select DATE_FORMAT(a.reg_dt, '%H') as hour, count(*) as cnt from tbl_bf_family_match a inner join tbl_bf_daily_nutrition b on a.smc_no = b.smc_no inner join tbl_bf_family_match c on a.smc_no = c.smc_no where a.member_id = '1642861413918' and DATE_FORMAT(b.reg_dt, '%Y-%m-%d') = DATE_FORMAT(now(), '%Y-%m-%d') group by DATE_FORMAT(b.reg_dt, '%H');
#메모리 - 주간분석
select
DATE_FORMAT(b.reg_dt, '%Y-%m-%d %H') as day,
count(*) as cnt
from tbl_bf_family_match a
inner join tbl_bf_daily_nutrition b on a.smc_no = b.smc_no
inner join tbl_bf_family_match c on a.smc_no = c.smc_no
where
a.member_id = '1642861413918'
and b.reg_dt between STR_TO_DATE('2022-02-15 00:00:00','%Y-%m-%d %H:%i:%s') and STR_TO_DATE('2022-02-15 23:59:59','%Y-%m-%d %H:%i:%s')
group by DATE_FORMAT(b.reg_dt, '%Y-%m-%d %H')
order by DATE_FORMAT(b.reg_dt, '%Y-%m-%d %H') asc;
#메모리 - 타임라인(모유, 각 카테고리별 수치 및 시간간격 계산해야됨.) SELECT DATE_FORMAT(b.reg_dt, '%Y-%m-%d %H:%i:%s') as reg_date, TIMEDIFF(b.reg_dt, LAG(b.reg_dt) OVER (ORDER BY b.reg_dt) ) AS time_diff, d.title, b.dn_no, d.cd_no, CASE when d.cd_no = 'BF_NU_TP_1' then (select eat_qty from tbl_bf_daily_nutrition_1 tn1 where tn1.dn_no = b.dn_no) -- 모유 when d.cd_no = 'BF_NU_TP_2' then (select eat_qty from tbl_bf_daily_nutrition_2 tn1 where tn1.dn_no = b.dn_no) -- 분유 END AS time_val FROM tbl_bf_family_match a INNER JOIN tbl_bf_daily_nutrition b on a.smc_no = b.smc_no INNER JOIN tbl_bf_family_match c on a.smc_no = c.smc_no INNER JOIN tbl_code_item_str d on b.nutirition_cd_no = d.cd_no WHERE a.member_id = '1642861413918' and DATE_FORMAT(b.reg_dt,'%Y-%m-%d') = STR_TO_DATE('2022-02-17','%Y-%m-%d') ;
기록 카테고리 종류 - 기록 타임라인 노출값 - 103p
- 모유 : 모유량
- 간식 : 간식명 및 섭취량 또는 간식 표시
- 대소변 : 대소변량
- 병원 : ?
- 생활 : ?
- 발달과정 성취 : ?
- 수면 : 수면시간
- 시판 이유식 : 이유식종류 및 섭취량
- 예방접종 : 예방접종명
- 유축 : 유축량
- 젖병 : 젖병 섭취량
- 체온 : 체온
- 홈페이드 이유식 : 홈메이드 이유식 종류 및 섭취량