Commit 639287be authored by qa_quantgroup's avatar qa_quantgroup

add new script

parent f6ac9632
#!/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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment