SQL文の誤りを修正
This commit is contained in:
parent
2ad67967fa
commit
fc5de5f81f
@ -182,10 +182,10 @@ class MstInstAll(JskultBatchEntrypoint):
|
|||||||
ci.inst_div_cd,
|
ci.inst_div_cd,
|
||||||
LEFT(cid.inst_div_name, 40),
|
LEFT(cid.inst_div_name, 40),
|
||||||
null,
|
null,
|
||||||
ci.create_user,
|
ci.regist_prgm_id,
|
||||||
ci.regist_date,
|
ci.sys_regist_date,
|
||||||
ci.update_user,
|
ci.update_prgm_id,
|
||||||
ci.update_date
|
ci.sys_update_date
|
||||||
FROM
|
FROM
|
||||||
src05.com_inst AS ci
|
src05.com_inst AS ci
|
||||||
LEFT OUTER JOIN src05.mst_prefc AS mp
|
LEFT OUTER JOIN src05.mst_prefc AS mp
|
||||||
@ -254,10 +254,10 @@ class MstInstAll(JskultBatchEntrypoint):
|
|||||||
cp.inst_div_cd,
|
cp.inst_div_cd,
|
||||||
LEFT(cid.inst_div_name, 40),
|
LEFT(cid.inst_div_name, 40),
|
||||||
null,
|
null,
|
||||||
cp.create_user,
|
cp.regist_prgm_id,
|
||||||
cp.regist_date,
|
cp.sys_regist_date,
|
||||||
cp.update_user,
|
cp.update_prgm_id,
|
||||||
cp.update_date
|
cp.sys_update_date
|
||||||
FROM
|
FROM
|
||||||
src05.com_pharm AS cp
|
src05.com_pharm AS cp
|
||||||
LEFT OUTER JOIN src05.mst_prefc AS mp
|
LEFT OUTER JOIN src05.mst_prefc AS mp
|
||||||
@ -319,7 +319,7 @@ class MstInstAll(JskultBatchEntrypoint):
|
|||||||
mim.jis_city_cd,
|
mim.jis_city_cd,
|
||||||
mjp.jis_pref_nm_kj,
|
mjp.jis_pref_nm_kj,
|
||||||
LEFT(mjc.jis_city_nm_kj, 40),
|
LEFT(mjc.jis_city_nm_kj, 40),
|
||||||
CONCAT(mim.addr1_nm_kj, mim.addr2_nm_kj),
|
CONCAT_WS('', mim.addr1_nm_kj, mim.addr2_nm_kj),
|
||||||
mim.postal_no,
|
mim.postal_no,
|
||||||
mim.tel_no,
|
mim.tel_no,
|
||||||
null,
|
null,
|
||||||
@ -327,7 +327,7 @@ class MstInstAll(JskultBatchEntrypoint):
|
|||||||
null,
|
null,
|
||||||
CASE mim.eff_end_ym
|
CASE mim.eff_end_ym
|
||||||
WHEN '999912' THEN null
|
WHEN '999912' THEN null
|
||||||
ELSE CONCAT(mim.eff_end_ym, DATE_FORMAT(LAST_DAY(STR_TO_DATE(mim.eff_end_ym, '%Y%m')), '%d'))
|
ELSE CONCAT(LAST_DAY(STR_TO_DATE(CONCAT(mim.eff_end_ym, '01'), '%Y%m%d')))
|
||||||
END,
|
END,
|
||||||
null,
|
null,
|
||||||
null,
|
null,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user