diff --git a/README.md b/README.md deleted file mode 100644 index 4349c70..0000000 --- a/README.md +++ /dev/null @@ -1,120 +0,0 @@ -# 계정정보 - - 어드민 운영서버 : [http://devops.lookylooks.ai:14288/bf/admin/index.do](http://devops.lookylooks.ai:14288/bf/admin/index.do) - - 프론트 운영서버 : [http://devops.lookylooks.ai:14288/bf/m/login/view_login.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 - 1. 모유 : 모유량 - 2. 간식 : 간식명 및 섭취량 또는 간식 표시 - 3. 대소변 : 대소변량 - 4. 병원 : ? - 5. 생활 : ? - 6. 발달과정 성취 : ? - 7. 수면 : 수면시간 - 8. 시판 이유식 : 이유식종류 및 섭취량 - 9. 예방접종 : 예방접종명 - 10. 유축 : 유축량 - 11. 젖병 : 젖병 섭취량 - 12. 체온 : 체온 - 13. 홈페이드 이유식 : 홈메이드 이유식 종류 및 섭취량 \ No newline at end of file diff --git a/explain.txt b/explain.txt deleted file mode 100644 index 0a8e797..0000000 --- a/explain.txt +++ /dev/null @@ -1,3 +0,0 @@ -* ҽ - - Ӱ ϼ. diff --git a/src/main/resources/bf.properties b/src/main/resources/bf.properties index 80d98ec..53e4a90 100644 --- a/src/main/resources/bf.properties +++ b/src/main/resources/bf.properties @@ -53,10 +53,10 @@ sms.api_key=040ec316ad13c59031b5c4c30cdec923 sms.api_sendnum=02-363-5123 mysql_driver=net.sf.log4jdbc.DriverSpy -mysql_url=jdbc:log4jdbc:mysql://devops.lookylooks.ai:14236/babyfeed -mysql_username=imcloud -mysql_password=imc1234 +#mysql_url=jdbc:log4jdbc:mysql://devops.lookylooks.ai:14236/babyfeed +#mysql_username=imcloud +#mysql_password=imc1234 -#mysql_url=jdbc:log4jdbc:mysql://115.85.181.214:3306/babyfeed -#mysql_username=root -#mysql_password=123qwe!@# \ No newline at end of file +mysql_url=jdbc:log4jdbc:mysql://115.85.181.214:3306/babyfeed +mysql_username=root +mysql_password=123qwe!@# \ No newline at end of file diff --git a/src/main/resources/sqlmap/api/com.backoffice.api.sms.xml b/src/main/resources/sqlmap/api/com.backoffice.api.sms.xml index eef4923..1db8ac6 100644 --- a/src/main/resources/sqlmap/api/com.backoffice.api.sms.xml +++ b/src/main/resources/sqlmap/api/com.backoffice.api.sms.xml @@ -30,6 +30,7 @@ AND x.s_no = #s_no# AND x.phone_num = #phone_num# AND x.check_num = #check_num# + AND DATE_ADD(x.reg_dt, INTERVAL 180 second) > now() diff --git a/src/main/resources/sqlmap/m/member_env/com.backoffice.m.member_env.xml b/src/main/resources/sqlmap/m/member_env/com.backoffice.m.member_env.xml index 2916523..0f4d684 100644 --- a/src/main/resources/sqlmap/m/member_env/com.backoffice.m.member_env.xml +++ b/src/main/resources/sqlmap/m/member_env/com.backoffice.m.member_env.xml @@ -74,7 +74,7 @@ ) VALUES ( - #sync_num#, + #check_num#, #member_id#, now() ) @@ -94,7 +94,7 @@ now() FROM tbl_bf_family_baby a INNER JOIN tbl_bf_family_match y on a.smc_no = y.smc_no - INNER JOIN tbl_sync_log b on y.member_id = b.member_id and b.sync_num = #sync_num# and DATE_ADD(b.reg_dt, INTERVAL 1800 second) > now() + INNER JOIN tbl_sync_log b on y.member_id = b.member_id and b.sync_num = #sync_num# and DATE_ADD(b.reg_dt, INTERVAL 180 second) > now() LIMIT 1 diff --git a/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom_menu.ftl b/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom_menu.ftl index 8db79ea..6a585ee 100644 --- a/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom_menu.ftl +++ b/src/main/webapp/WEB-INF/views/ftl/m/include/index_bottom_menu.ftl @@ -1,20 +1,20 @@