song 5 months ago
parent
commit
5e22423c0c

+ 1 - 1
src/main/java/com/dashitech/migration/task/consumable/ConsumableHistoryTask.java

@@ -58,7 +58,7 @@ public class ConsumableHistoryTask extends BaseTask {
58 58
             mapper.trans2JdbcRow(consumableHistoryList);
59 59
 
60 60
             JdbcUtil jdbcUtil = new JdbcUtil(jdbcTemplateHsms);
61
-            jdbcUtil.batchPageInsert("itsm_asset_consumables_history", mapper.getRows());
61
+            jdbcUtil.batchPageInsert("itsm_itsm_asset_consumables_history", mapper.getRows());
62 62
         }
63 63
 
64 64
 

+ 4 - 13
src/main/java/com/dashitech/migration/util/JdbcUtil.java

@@ -1,29 +1,20 @@
1 1
 package com.dashitech.migration.util;
2 2
 
3 3
 import com.dashitech.utils.CommonUtil;
4
-import com.dashitech.utils.DateUtil;
5 4
 import com.dashitech.utils.DecimalUtil;
6
-import com.dashitech.utils.SpringContextHolder;
7 5
 import org.apache.commons.lang.StringUtils;
8 6
 import org.slf4j.Logger;
9 7
 import org.slf4j.LoggerFactory;
10
-import org.springframework.core.annotation.AnnotationUtils;
11 8
 import org.springframework.jdbc.core.BatchPreparedStatementSetter;
12 9
 import org.springframework.jdbc.core.BeanPropertyRowMapper;
13 10
 import org.springframework.jdbc.core.JdbcTemplate;
14 11
 
15
-import javax.persistence.Column;
16
-import javax.persistence.JoinColumn;
17
-import javax.persistence.Table;
18
-import java.beans.BeanInfo;
19
-import java.beans.Introspector;
20
-import java.beans.PropertyDescriptor;
21
-import java.lang.annotation.Annotation;
22
-import java.lang.reflect.Field;
23
-import java.math.BigInteger;
24 12
 import java.sql.PreparedStatement;
25 13
 import java.sql.SQLException;
26
-import java.util.*;
14
+import java.util.ArrayList;
15
+import java.util.LinkedHashMap;
16
+import java.util.List;
17
+import java.util.Map;
27 18
 
28 19
 
29 20
 /**