|
|
|
@ -394,7 +394,7 @@
|
|
|
|
|
|
|
|
|
|
<select id="select_bf_vac_schedule_list" resultClass="dataMap" parameterClass="dataMap">
|
|
|
|
|
select date_format(date_add(fb.birthday,interval dvs.start_label month),'%Y. %m. %d') recmnd_from_dt
|
|
|
|
|
, date_format(date_add(fb.birthday,interval dvs.end_label month),'%Y. %m. %d') recmnd_to_dt
|
|
|
|
|
, date_format(date_add(date_add(fb.birthday, interval dvs.end_label month), interval -1 day),'%Y. %m. %d') recmnd_to_dt
|
|
|
|
|
, date_format(date_add(fb.birthday,interval dvs.start_label month),'%Y년 %m월') recmnd_month
|
|
|
|
|
, concat (dvs.round, ' 차 ', dv_disease ) as dv_disease
|
|
|
|
|
, dvs.round
|
|
|
|
@ -403,13 +403,13 @@
|
|
|
|
|
on dvs.dv_no = dv.dv_no
|
|
|
|
|
left join tbl_bf_family_baby fb
|
|
|
|
|
on fb.smc_no = #smc_no#
|
|
|
|
|
where date_add(fb.birthday,interval dvs.start_label month) >= now()
|
|
|
|
|
order by recmnd_from_dt , dvs.dv_no, dvs.round
|
|
|
|
|
where not now() > date_add(date_add(fb.birthday, interval dvs.end_label month), interval -1 day)
|
|
|
|
|
order by recmnd_to_dt , dvs.dv_no, dvs.round
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|
<select id="select_bf_vac_schedule_list_prvs" resultClass="dataMap" parameterClass="dataMap">
|
|
|
|
|
select date_format(date_add(fb.birthday,interval dvs.start_label month),'%Y. %m. %d') recmnd_from_dt
|
|
|
|
|
, date_format(date_add(fb.birthday,interval dvs.end_label month),'%Y. %m. %d') recmnd_to_dt
|
|
|
|
|
, date_format(date_add(date_add(fb.birthday, interval dvs.end_label month), interval -1 day),'%Y. %m. %d') recmnd_to_dt
|
|
|
|
|
, date_format(date_add(fb.birthday,interval dvs.start_label month),'%Y년 %m월') recmnd_month
|
|
|
|
|
, concat (dvs.round, ' 차 ', dv_disease ) as dv_disease
|
|
|
|
|
, dvs.round
|
|
|
|
@ -418,7 +418,7 @@
|
|
|
|
|
on dvs.dv_no = dv.dv_no
|
|
|
|
|
left join tbl_bf_family_baby fb
|
|
|
|
|
on fb.smc_no = #smc_no#
|
|
|
|
|
where not date_add(fb.birthday,interval dvs.start_label month) >= now()
|
|
|
|
|
where now() > date_add(date_add(fb.birthday, interval dvs.end_label month), interval -1 day)
|
|
|
|
|
order by recmnd_from_dt , dvs.dv_no, dvs.round
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
@ -459,7 +459,7 @@
|
|
|
|
|
on fb.smc_no = #smc_no#
|
|
|
|
|
where smc_no = #smc_no#
|
|
|
|
|
and now() >= date_add(date_add(fb.birthday,interval start_label month), INTERVAL -3 DAY)
|
|
|
|
|
and date_add(fb.birthday,interval dvs.end_label month) >= now()
|
|
|
|
|
and date_add(date_add(fb.birthday,interval dvs.end_label month), interval -1 day) >= now()
|
|
|
|
|
order by recmnd_from_dt , dvs.dv_no, dvs.round
|
|
|
|
|
</select>
|
|
|
|
|
|
|
|
|
|