| | |
| | | select * from bs.s_explorationpoint where createtime < '2023-05-26 10:00:00'; |
| | | select * from bs.s_surveyworksite where createtime < '2023-05-26 10:00:00'; |
| | | select * from lf.sys_meta where type='cpt'; |
| | | select id,name,code from lf.sys_dir where pid=0 order by code |
| | | |
| | | |
| | | select * from bs.dlg_resnt2000; |
| | | alter table bs.dlg_resnt2000 alter column floors type varchar(20); |
| | | |
| | | |
| | | |
| | |
| | | |
| | | public static final int I31 = 31; |
| | | |
| | | public static final int I50 = 50; |
| | | |
| | | public static final int I60 = 60; |
| | | |
| | | public static final int I90 = 90; |
| | |
| | | */ |
| | | private <T> int batchInserts(BasicMapper basicMapper, List<T> list) { |
| | | int rows = 0; |
| | | int count = (int) Math.ceil(list.size() / StaticData.D100); |
| | | |
| | | List<List<T>> subLists = Lists.partition(list, count); |
| | | //int count = (int) Math.ceil(list.size() / StaticData.D100) |
| | | List<List<T>> subLists = Lists.partition(list, StaticData.I50); |
| | | for (List<T> sub : subLists) { |
| | | try { |
| | | rows += basicMapper.insertBatch(sub); |