Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-platform
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qa-platform
Commits
fe5fcdc1
Commit
fe5fcdc1
authored
May 18, 2021
by
黎博
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
去掉acs_capital_transfer_plan
parent
8622d7f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
ClearDataServiceImpl.java
...latform/zdata/service/xyqb/impl/ClearDataServiceImpl.java
+8
-7
No files found.
src/main/java/cn/qg/qaplatform/zdata/service/xyqb/impl/ClearDataServiceImpl.java
View file @
fe5fcdc1
...
@@ -27,12 +27,6 @@ public class ClearDataServiceImpl implements ClearDataService {
...
@@ -27,12 +27,6 @@ public class ClearDataServiceImpl implements ClearDataService {
XjfqGenProcessVo
xjfqGenProcessVo
=
xyqbBasicQueryService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
);
XjfqGenProcessVo
xjfqGenProcessVo
=
xyqbBasicQueryService
.
getUserInfoByPhoneNo
(
namespace
,
phoneNo
);
String
userId
=
xjfqGenProcessVo
.
getUserId
();
String
userId
=
xjfqGenProcessVo
.
getUserId
();
String
uuid
=
xjfqGenProcessVo
.
getUuid
();
String
uuid
=
xjfqGenProcessVo
.
getUuid
();
log
.
info
(
"开始删除{}环境{}用户xyqb_user中的数据!"
,
namespace
,
phoneNo
);
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"xyqb_user"
);
jdbcTemplate
.
execute
(
"DELETE FROM `user` WHERE id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_detail` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `wechat_userinfo` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `address` WHERE user_id = "
+
userId
);
log
.
info
(
"开始删除{}环境{}用户kdsp中的数据!"
,
namespace
,
phoneNo
);
log
.
info
(
"开始删除{}环境{}用户kdsp中的数据!"
,
namespace
,
phoneNo
);
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"kdsp"
);
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"kdsp"
);
...
@@ -76,7 +70,7 @@ public class ClearDataServiceImpl implements ClearDataService {
...
@@ -76,7 +70,7 @@ public class ClearDataServiceImpl implements ClearDataService {
jdbcTemplate
.
execute
(
"DELETE FROM `acs_bill` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_bill` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_cash_account` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_cash_account` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_cash_account_record` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_cash_account_record` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_capital_transfer_plan` WHERE user_id = "
+
userId
);
//
jdbcTemplate.execute("DELETE FROM `acs_capital_transfer_plan` WHERE user_id = " + userId);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_commodity` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_commodity` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_customer` WHERE uuid = '"
+
uuid
+
"'"
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_customer` WHERE uuid = '"
+
uuid
+
"'"
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_pay_order` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `acs_pay_order` WHERE user_id = "
+
userId
);
...
@@ -90,6 +84,13 @@ public class ClearDataServiceImpl implements ClearDataService {
...
@@ -90,6 +84,13 @@ public class ClearDataServiceImpl implements ClearDataService {
jdbcTemplate
.
execute
(
"DELETE FROM `user_quota_locker` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_quota_locker` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_quota_log` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_quota_log` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_quota_record` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_quota_record` WHERE user_id = "
+
userId
);
log
.
info
(
"开始删除{}环境{}用户xyqb_user中的数据!"
,
namespace
,
phoneNo
);
SwitchDataSource
.
dataSourceSwitch
(
namespace
,
"xyqb_user"
);
jdbcTemplate
.
execute
(
"DELETE FROM `user` WHERE id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `user_detail` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `wechat_userinfo` WHERE user_id = "
+
userId
);
jdbcTemplate
.
execute
(
"DELETE FROM `address` WHERE user_id = "
+
userId
);
return
true
;
return
true
;
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment