|
@@ -14,6 +14,7 @@ import java.util.Objects;
|
|
|
/**
|
|
|
* tslData 直接使用jdbcTemplate完成的操作
|
|
|
*/
|
|
|
+/* cSpell: disable */
|
|
|
@Component
|
|
|
public class TslDataDao {
|
|
|
|
|
@@ -25,7 +26,9 @@ public class TslDataDao {
|
|
|
|
|
|
/**
|
|
|
* 采用BatchSqlUpdate的方法批量insert到表tableName(可以是临时表)
|
|
|
+ * 20240205 不再使用
|
|
|
*/
|
|
|
+ @Deprecated
|
|
|
public void batchInsertWorkFlowBasicData(List<WorkFlowBasicData> data, String tableName) {
|
|
|
String sqlFormat = "INSERT INTO %s " +
|
|
|
"(order_no,is_effctive, kfsn, city_id, region_id, kd_accept_time, kd_request_reply_time, re_is_status_id, "
|
|
@@ -60,7 +63,9 @@ public class TslDataDao {
|
|
|
|
|
|
/**
|
|
|
* 创建临时表
|
|
|
+ * 20240205 不再使用
|
|
|
*/
|
|
|
+ @Deprecated
|
|
|
public void createTempTableOfWorkFlowBasicData(String tempTableName) {
|
|
|
String sql = "CREATE TABLE %s ( " + //
|
|
|
" order_no varchar(50) not null, " + //
|
|
@@ -81,7 +86,9 @@ public class TslDataDao {
|
|
|
|
|
|
/**
|
|
|
* 删除临时表
|
|
|
+ * 20240205 不再使用
|
|
|
*/
|
|
|
+ @Deprecated
|
|
|
public void dropTempTable(String tempTableName) {
|
|
|
if (!tempTableName.contains("_temp_")) {
|
|
|
throw new RuntimeException("仅支持删除命名带有 _temp_ 的临时表");
|
|
@@ -103,7 +110,9 @@ public class TslDataDao {
|
|
|
|
|
|
/**
|
|
|
* 从临时表中查找新增内容并插入work_flow_basic_data表
|
|
|
+ * 20240205 不再使用
|
|
|
*/
|
|
|
+ @Deprecated
|
|
|
public int insertWorkFlowBasicDataFromTempTable(String tempTableName) {
|
|
|
String sqlFormat = "insert into tsl_data.work_flow_basic_data" +
|
|
|
" (order_no, is_effctive, kfsn, city_id, region_id, kd_accept_time, kd_request_reply_time, re_is_status_id, "
|
|
@@ -119,7 +128,9 @@ public class TslDataDao {
|
|
|
|
|
|
/**
|
|
|
* 从临时表中查找需要更新内容并更新到work_flow_basic_data表
|
|
|
+ * 20240205 不再使用
|
|
|
*/
|
|
|
+ @Deprecated
|
|
|
public int updateWorkFlowBasicDataFromTempTable(String tempTableName) {
|
|
|
String sqlFormat = "update tsl_data.work_flow_basic_data b\n" +
|
|
|
"set kfsn = t.kfsn, is_effctive = t.is_effctive, city_id = t.city_id, region_id = t.region_id, "
|