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
e4c26815
Commit
e4c26815
authored
Mar 13, 2018
by
zhangbo0329
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化资金方放款脚本
parent
efd8a588
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
7 deletions
+12
-7
clotho_chanpin.sh
qa_shell_script/script_by_Contorller/clotho_chanpin.sh
+12
-7
No files found.
qa_shell_script/script_by_Contorller/clotho_chanpin.sh
View file @
e4c26815
...
@@ -20,21 +20,26 @@ function coltho_chanpin()
...
@@ -20,21 +20,26 @@ function coltho_chanpin()
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
if
[
$len
-ne
11
]
;
then
if
[
$len
-ne
11
]
;
then
echo
"请输入11位手机号!"
echo
"请输入11位手机号!"
else
exit
-1
fi
if
[
-z
"
$chanpin
"
]
;
then
chanpin
=
QG_FIX0_6000_6
fi
#查询userID
#查询userID
select_sql
=
"select id from
${
TABLENAME2
}
where phone_no=
${
phone_no
}
"
select_sql
=
"select id from
${
TABLENAME2
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME2
}
-e
"
${
select_sql
}
"
`
user_id
=
`
mysql
-N
$mysqld
${
DBNAME2
}
-e
"
${
select_sql
}
"
`
echo
"user_id=
$user_id
"
echo
"user_id=
$user_id
"
update_sql0
=
"update
${
TABLENAME
}
set quantify_product_name='
${
chanpin
}
' where xyqb_user_id=
$user_id
"
update_sql0
=
"update
${
TABLENAME
}
set quantify_product_name='
${
chanpin
}
' where xyqb_user_id=
$user_id
order by id desc limit 1
"
update_sql1
=
"update
${
TABLENAME1
}
set quantify_product_name='
${
chanpin
}
' where xyqb_user_id=
$user_id
"
update_sql1
=
"update
${
TABLENAME1
}
set quantify_product_name='
${
chanpin
}
' where xyqb_user_id=
$user_id
order by id desc limit 1
"
echo
"sql0=
$update_sql0
"
#
echo "sql0=$update_sql0"
echo
"sql1=
$update_sql1
"
#
echo "sql1=$update_sql1"
mysql
$mysqld
${
DBNAME
}
-e
"
${
update_sql0
}
"
mysql
$mysqld
${
DBNAME
}
-e
"
${
update_sql0
}
"
mysql
$mysqld
${
DBNAME1
}
-e
"
${
update_sql1
}
"
mysql
$mysqld
${
DBNAME1
}
-e
"
${
update_sql1
}
"
echo
"done!!!
$date
"
echo
"done!!!
$date
"
fi
}
}
coltho_chanpin
$ip
$phone_no
coltho_chanpin
$ip
$phone_no
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