Commit befdb81c authored by qa_quantgroup's avatar qa_quantgroup

add new script filename script_by_Contorller

parent 543924c9
......@@ -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"
......
#!/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
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