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
65c925ce
Commit
65c925ce
authored
Aug 24, 2017
by
智勇
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
格式化
空格换成tab
parent
302fa73a
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
56 additions
and
60 deletions
+56
-60
2_diting_huoquzijinfangshenhe.sh
...ipt/script_by_Contorller/2_diting_huoquzijinfangshenhe.sh
+1
-1
authorization.sh
qa_shell_script/script_by_Contorller/authorization.sh
+17
-21
changeActivityDate.sh
qa_shell_script/script_by_Contorller/changeActivityDate.sh
+3
-3
closeloan.sh
qa_shell_script/script_by_Contorller/closeloan.sh
+14
-14
delete_All_Data.sh
qa_shell_script/script_by_Contorller/delete_All_Data.sh
+5
-5
redpacket_insert_coupon_xjd.sh
...cript/script_by_Contorller/redpacket_insert_coupon_xjd.sh
+1
-1
user_insert_contact.sh
qa_shell_script/script_by_Contorller/user_insert_contact.sh
+15
-15
No files found.
qa_shell_script/script_by_Contorller/2_diting_huoquzijinfangshenhe.sh
View file @
65c925ce
...
...
@@ -12,7 +12,7 @@ if [ $len -ne 11 ];then
fi
if
[
-z
$fund_id
]
;
then
fund_id
=
140
fund_id
=
140
fi
date
=
`
date
"+%Y-%m-%d %H:%M:%S"
`
...
...
qa_shell_script/script_by_Contorller/authorization.sh
View file @
65c925ce
...
...
@@ -13,29 +13,25 @@ date=`date "+%Y-%m-%d %H:%M:%S"`
function
authorization
()
{
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#查询userID
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
echo
"user_id=
$user_id
"
#插入授信数据0和3
insert_sql0
=
"insert into
${
TABLENAME
}
("
user_id
","
auth_type
","
auth_status
") values ('
$user_id
','0',1)"
insert_sql3
=
"insert into
${
TABLENAME
}
("
user_id
","
auth_type
","
auth_status
") values ('
$user_id
','3',1)"
#echo "$insert_sql0"
#echo "$insert_sql3"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql0
}
"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql3
}
"
echo
"done!!!
$date
"
fi
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#查询userID
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
echo
"user_id=
$user_id
"
#插入授信数据0和3
insert_sql0
=
"insert into
${
TABLENAME
}
("
user_id
","
auth_type
","
auth_status
") values ('
$user_id
','0',1)"
insert_sql3
=
"insert into
${
TABLENAME
}
("
user_id
","
auth_type
","
auth_status
") values ('
$user_id
','3',1)"
#echo "$insert_sql0"
#echo "$insert_sql3"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql0
}
"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql3
}
"
echo
"done!!!
$date
"
fi
}
authorization
$ip
$phone_no
qa_shell_script/script_by_Contorller/changeActivityDate.sh
View file @
65c925ce
...
...
@@ -12,9 +12,9 @@ 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
}
"
`
#更新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
}
"
`
}
...
...
qa_shell_script/script_by_Contorller/closeloan.sh
View file @
65c925ce
...
...
@@ -14,21 +14,21 @@ date=`date "+%Y-%m-%d %H:%M:%S"`
function
closeloan
()
{
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#查询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
"
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#查询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
}
and is_active=1 and business_type=0"
mysql
$mysqld
${
DBNAME
}
-e
"
${
update_sql
}
"
echo
"done!!!
$date
"
break
fi
#更新loan_application_history表中的is_active=0
update_sql
=
"update
${
TABLENAME
}
set is_active=0 where user_id=
${
user_id
}
and is_active=1 and business_type=0"
mysql
$mysqld
${
DBNAME
}
-e
"
${
update_sql
}
"
echo
"done!!!
$date
"
break
fi
}
...
...
qa_shell_script/script_by_Contorller/delete_All_Data.sh
View file @
65c925ce
...
...
@@ -24,10 +24,10 @@ fi
function
deleteAlldata
()
{
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#各数据库中获取id值
xyqb_user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"select id from
${
TABLENAME
}
where phone_no=
${
phone_no
}
"
`
if
[
-z
$xyqb_user_id
]
;
then
...
...
@@ -133,4 +133,4 @@ function deleteAlldata()
fi
}
deleteAlldata
$ip
$phone_no
deleteAlldata
$ip
$phone_no
qa_shell_script/script_by_Contorller/redpacket_insert_coupon_xjd.sh
View file @
65c925ce
...
...
@@ -9,7 +9,7 @@ if [ $len -ne 11 ];then
fi
if
[
-z
$account
]
;
then
account
=
100
account
=
100
fi
date
=
`
date
"+%Y-%m-%d %H:%M:%S"
`
unique_business_id
=
CASH_LOAN
`
date
+%s%N
`
...
...
qa_shell_script/script_by_Contorller/user_insert_contact.sh
View file @
65c925ce
...
...
@@ -13,22 +13,22 @@ date=`date "+%Y-%m-%d %H:%M:%S"`
function
authorization
()
{
len
=
`
echo
$phone_no
|awk
'{print length($0)}'
`
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#查询userID
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
echo
"user_id=
$user_id
"
if
[
$len
-ne
11
]
then
echo
"请输入11位手机号!"
else
#查询userID
select_sql
=
"select id from
${
TABLENAME1
}
where phone_no=
${
phone_no
}
"
user_id
=
`
mysql
-N
$mysqld
${
DBNAME
}
-e
"
${
select_sql
}
"
`
echo
"user_id=
$user_id
"
insert_sql0
=
"insert into
${
TABLENAME
}
("
user_id
","
name
","
phone_no
","
relation
") values ('
$user_id
',N'哈哈',13312341234,'0')"
insert_sql1
=
"insert into
${
TABLENAME
}
("
user_id
","
name
","
phone_no
","
relation
") values ('
$user_id
',N'嘿嘿',13356785678,'1')"
insert_sql0
=
"insert into
${
TABLENAME
}
("
user_id
","
name
","
phone_no
","
relation
") values ('
$user_id
',N'哈哈',13312341234,'0')"
insert_sql1
=
"insert into
${
TABLENAME
}
("
user_id
","
name
","
phone_no
","
relation
") values ('
$user_id
',N'嘿嘿',13356785678,'1')"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql0
}
"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql1
}
"
echo
"done!!!
$date
"
fi
}
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql0
}
"
mysql
$mysqld
${
DBNAME
}
-e
"
${
insert_sql1
}
"
echo
"done!!!
$date
"
fi
}
authorization
$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