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
befdb81c
Commit
befdb81c
authored
Jul 20, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new script filename script_by_Contorller
parent
543924c9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
0 deletions
+38
-0
exception_sub_shell.sh
qa_shell_script/exception_sub_shell.sh
+6
-0
closeloan.sh
qa_shell_script/script_by_Contorller/closeloan.sh
+32
-0
No files found.
qa_shell_script/exception_sub_shell.sh
View file @
befdb81c
...
...
@@ -120,6 +120,12 @@ tranceConfig java "xyqb.is.debug=0" "xyqb.is.debug=1" "192.168.4.23" "baitiao.pr
#tranceConfig java "xyqb.is.debug=1" "xyqb.is.debug=0" "192.168.4.24" "xyqb.properties"
tranceConfig node
"112233445512345.ittun.com"
"activity-op-24.ss.xyqb.loan"
"192.168.4.24"
"activity-op.js"
tranceConfig java
"192.168.4.24:7058"
"wechattest2.xyqb.com"
"192.168.4.24"
"xyqb.properties"
#微信环境修改,请勿删除,可以注释
tranceConfig java
"wx89894cd83d117b26"
"wxc94ca68b353e90d0"
"192.168.4.24"
"xyqb-user2.properties"
tranceConfig java
"11fb7f6a8b8edf2776a72c2f5624229c"
"e30380e9ade07f361e51a643f94d8817"
"192.168.4.24"
"xyqb-user2.properties"
tranceConfig ui
"wx89894cd83d117b26"
"wxc94ca68b353e90d0"
"192.168.4.24"
"xyqb-user-ui.js"
tranceConfig ui
"11fb7f6a8b8edf2776a72c2f5624229c"
"e30380e9ade07f361e51a643f94d8817"
"192.168.4.24"
"xyqb-user-ui.js"
tranceConfig ui
"wx89894cd83d117b26"
"wxc94ca68b353e90d0"
"192.168.4.24"
"activity-ui.js"
#4.151
tranceConfig java
"xyqb.is.debug=0"
"xyqb.is.debug=1"
"192.168.4.151"
"xyqb.properties"
...
...
qa_shell_script/script_by_Contorller/closeloan.sh
0 → 100644
View file @
befdb81c
#!/bin/bash
ip
=
$1
phone_no
=
$2
HOSTNAME
=
"192.168.4.
$ip
"
PORT
=
"3306"
USERNAME
=
"qa"
PASSWORD
=
"qatest"
DBNAME
=
"xyqb"
TABLENAME
=
"loan_application_history"
DBNAME1
=
"xyqb_user"
TABLENAME1
=
"user"
mysqld
=
"-h
${
HOSTNAME
}
-P
${
PORT
}
-u
${
USERNAME
}
-p
${
PASSWORD
}
"
function
closeloan
()
{
echo
"开始修改"
#查询userID
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME1
}
-e
"
${
select_sql
}
"
`
echo
"user_id=
$user_id
"
#更新loan_application_history表中的is_active=0
update_sql
=
"update
${
TABLENAME
}
set is_active=0 where user_id=
${
user_id
}
"
mysql
$mysqld
${
DBNAME
}
-e
"
${
update_sql
}
"
echo
"修改成功"
}
closeloan
$ip
$phone_no
\ No newline at end of file
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