You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
jonghwan76 c3c112ffc8
기록 카테고리 공통코드 수정
3 years ago
.externalToolBuilders Initial commit & Project import 4 years ago
.idea 비밀번호 초기화 기능적용 및 설정값 변경(bf.properties, log4j, pom.xml) 4 years ago
.settings 쿼리 오류 수정 3 years ago
doc Initial commit & Project import 4 years ago
src/main 기록 카테고리 공통코드 수정 3 years ago
.classpath Initial commit & Project import 4 years ago
.gitignore Initial commit & Project import 4 years ago
.project Initial commit & Project import 4 years ago
.springBeans Initial commit & Project import 4 years ago
README.md 기록 카테고리 공통코드 수정 3 years ago
ddl_20220205.txt 메모리 탭 쿼리 작성 3 years ago
dml_20220205.txt 기록 카테고리 공통코드 수정 3 years ago
explain.txt Initial commit & Project import 4 years ago
pom.xml 비밀번호 초기화 기능적용 및 설정값 변경(bf.properties, log4j, pom.xml) 4 years ago
개발참고.txt 추천홈메이드이유식, 추천식재료 기능 적용 3 years ago

README.md

계정정보

DB정보

---------------------------------------------------------------------------- 참고 쿼리 ----------------------------------------------------------------------------

일상기록 삭제 - 일부

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

  1. 모유 : 모유량
  2. 간식 : 간식명 및 섭취량 또는 간식 표시
  3. 대소변 : 대소변량
  4. 병원 : ?
  5. 생활 : ?
  6. 발달과정 성취 : ?
  7. 수면 : 수면시간
  8. 시판 이유식 : 이유식종류 및 섭취량
  9. 예방접종 : 예방접종명
  10. 유축 : 유축량
  11. 젖병 : 젖병 섭취량
  12. 체온 : 체온
  13. 홈페이드 이유식 : 홈메이드 이유식 종류 및 섭취량