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
639287be
Commit
639287be
authored
Aug 03, 2017
by
qa_quantgroup
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add new script
parent
f6ac9632
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
+21
-0
changeActivityDate.sh
qa_shell_script/script_by_Contorller/changeActivityDate.sh
+21
-0
No files found.
qa_shell_script/script_by_Contorller/changeActivityDate.sh
0 → 100644
View file @
639287be
#!/bin/bash
ip
=
$1
act_id
=
$2
start_time
=
$3
end_time
=
$4
PORT
=
"3306"
USERNAME
=
"qa"
PASSWORD
=
"qatest"
DBNAME
=
"redpacket"
TABLENAME
=
"redpacket_activity"
mysqld
=
"-h
${
ip
}
-P
${
PORT
}
-u
${
USERNAME
}
-p
${
PASSWORD
}
"
function
doMysql
()
{
#更新loan_application_history表中的is_active=0
update_sql
=
"update
${
TABLENAME
}
set activity_starttime=
\"
$start_time
\"
, activity_endtime=
\"
$end_time
\"
where id=
${
act_id
}
"
echo
`
mysql
$mysqld
${
DBNAME
}
-e
"
${
update_sql
}
"
`
}
doMysql
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