Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qa-deploy-utils
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-deploy-utils
Commits
e64f079c
Commit
e64f079c
authored
Aug 07, 2017
by
tywldx
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitabc.xyqb.com/QA/qa-deploy-utils
parents
d74d2c4f
7e4f3a4c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
5 deletions
+24
-5
delete_All_Data.sh
qa_shell_script/script_by_Contorller/delete_All_Data.sh
+16
-3
pushloanprogress.sh
qa_shell_script/script_by_Contorller/pushloanprogress.sh
+8
-2
No files found.
qa_shell_script/script_by_Contorller/delete_All_Data.sh
View file @
e64f079c
...
@@ -47,7 +47,7 @@ function deleteAlldata()
...
@@ -47,7 +47,7 @@ function deleteAlldata()
mysql
$mysqld
${
DBNAME2
}
-e
"delete from pay_center_bank_card where phone_no=
$phone_no
"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from pay_center_bank_card where phone_no=
$phone_no
"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from pay_center_biao_tiao_bank_card where phone_no=
$phone_no
"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from pay_center_biao_tiao_bank_card where phone_no=
$phone_no
"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from repayment_plan where user_id=
$xyqb_user_id
"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from repayment_plan where user_id=
$xyqb_user_id
"
if
[
-n
$loan_id
]
;
then
if
[
-n
"
$loan_id
"
]
;
then
mysql
$mysqld
${
DBNAME2
}
-e
"delete from loan_demand_history where loan_application_history_id in (
$loan_id
)"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from loan_demand_history where loan_application_history_id in (
$loan_id
)"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from loan_submit_info where loan_id in (
$loan_id
)"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from loan_submit_info where loan_id in (
$loan_id
)"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from user_authorization_history where loan_application_history_id in (
$loan_id
)"
mysql
$mysqld
${
DBNAME2
}
-e
"delete from user_authorization_history where loan_application_history_id in (
$loan_id
)"
...
@@ -102,8 +102,21 @@ function deleteAlldata()
...
@@ -102,8 +102,21 @@ function deleteAlldata()
mysql
$mysqld
risk_control
-e
"delete from review_history where phone_no=
$phone_no
"
mysql
$mysqld
risk_control
-e
"delete from review_history where phone_no=
$phone_no
"
echo
"删除redis缓存"
echo
"删除redis缓存"
redis-cli
-h
$ip
-p
6379 keys
*
$phone_no
*
| xargs redis-cli
-h
$ip
-p
6379 del
redis_key
=
`
redis-cli
-h
$ip
-p
6379 keys
*
$phone_no
*
`
redis-cli
-h
$ip
-p
6379 keys
*
$xyqb_user_id
*
| xargs redis-cli
-h
$ip
-p
6379 del
if
[
-n
"
$redis_key
"
]
;
then
echo
$redis_key
redis-cli
-h
$ip
-p
6379 del
$redis_key
fi
redis_key
=
`
redis-cli
-h
$ip
-p
6379 keys
*
$xyqb_user_id
*
`
if
[
-n
"
$redis_key
"
]
;
then
echo
$redis_key
token
=
`
redis-cli
-h
$ip
-p
6379 get userid-sessionvalue:cache::
$xyqb_user_id
:xyqb
`
redis-cli
-h
$ip
-p
6379 del
$redis_key
redis_key
=
`
redis-cli
-h
$ip
-p
6379 keys
*
$token
*
`
echo
$redis_key
redis-cli
-h
$ip
-p
6379 del
$redis_key
#redis-cli -h $ip -p 6379 keys *$token* | xargs redis-cli -h $ip -p 6379 del
fi
fi
fi
}
}
...
...
qa_shell_script/script_by_Contorller/pushloanprogress.sh
View file @
e64f079c
...
@@ -38,30 +38,37 @@ function pushloanprogress(){
...
@@ -38,30 +38,37 @@ function pushloanprogress(){
#终审中
#终审中
if
[
$progress_id
-eq
7
]
;
then
if
[
$progress_id
-eq
7
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FINAL_SCREENING"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FINAL_SCREENING"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#终审拒绝
#终审拒绝
elif
[
$progress_id
-eq
8
]
;
then
elif
[
$progress_id
-eq
8
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FINAL_SCREENING_REJECT"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FINAL_SCREENING_REJECT"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#未通过初筛
#未通过初筛
elif
[
$progress_id
-eq
19
]
;
then
elif
[
$progress_id
-eq
19
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FILTERING_DECLINED"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FILTERING_DECLINED"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#借款清单生成完成
#借款清单生成完成
elif
[
$progress_id
-eq
9
]
;
then
elif
[
$progress_id
-eq
9
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=LOAN_APPLICATION_MANIFEST_COMPLETE"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=LOAN_APPLICATION_MANIFEST_COMPLETE"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#等待资金方放款
#等待资金方放款
elif
[
$progress_id
-eq
20
]
;
then
elif
[
$progress_id
-eq
20
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=WAITING_FUND"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=WAITING_FUND"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#查看还款计划
#查看还款计划
elif
[
$progress_id
-eq
15
]
;
then
elif
[
$progress_id
-eq
15
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=CHECK_REPAYMENT_PLAN"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=CHECK_REPAYMENT_PLAN"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#马上金融放款失败
#马上金融放款失败
elif
[
$progress_id
-eq
23
]
;
then
elif
[
$progress_id
-eq
23
]
;
then
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FINAL_FUNDED_APPROVAL_FAIL"
"http://
${
ip
}
:7037/test/loanMq/one"
curl
-d
"loanId=
${
loan_id
}
&loanProgress=FINAL_FUNDED_APPROVAL_FAIL"
"http://
${
ip
}
:7037/test/loanMq/one"
echo
"推送成功"
#借款完成
#借款完成
elif
[
$progress_id
-eq
16
]
;
then
elif
[
$progress_id
-eq
16
]
;
then
...
@@ -69,8 +76,7 @@ function pushloanprogress(){
...
@@ -69,8 +76,7 @@ function pushloanprogress(){
else
else
echo
"progress=
$progress_id
,订单状态不对"
echo
"progress=
$progress_id
,订单状态不对"
fi
fi
echo
"修改成功"
break
break
fi
fi
...
...
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