insert into mst_menu(menucd, oyamenucd, menumei, hyojikb, kinocd, hyojijun, gaiyo, sakuseiuserid, sakuseinichiji, koshinuserid, koshinnichiji, kengengrp, haishifg) select '1257', '0060', '棚卸表', '2', 'F000000008', 7, '棚卸表を印刷します', 'admin', clock_timestamp(), 'admin', clock_timestamp(), '1', 0 where not exists (select 0 from mst_menu where menucd = '1257' and kengengrp = '1');
insert into mst_report(kinocd, reportfilemei, param, sakuseiuserid, sakuseinichiji, koshinuserid, koshinnichiji, chohyokb, torihikisakicd, haisosakino) select 'F000000008', '棚卸表.xlsx', null, 'admin', clock_timestamp(), 'admin', clock_timestamp(), '29', ' ', 0 where not exists (select 0 from mst_report where kinocd = 'F000000008' and torihikisakicd = ' ' and haisosakino = 0);
