Commit a3bb22b5 authored by qa_quantgroup's avatar qa_quantgroup

修改: qa_shell_script/config_server/get_project_config.js

	新文件:   qa_shell_script/ngrok/(
	修改:     qa_shell_script/ngrok/docker_env_name.sh
	新文件:   qa_shell_script/ngrok/make_frp_ini_V2.sh_back
	修改:     qa_shell_script/script_by_Contorller/baitiao_zhangdan.sh
	新文件:   qa_shell_script/script_by_Contorller/gyxd_fk.sh
	修改:     qa_shell_script/script_by_Contorller/spider_center_authorization.sh
	修改:     qa_shell_script/script_by_Contorller/spider_center_review.sh
parent 44076ab1
......@@ -200,7 +200,7 @@ new pClass().init(1,false, "java", "7087", "xyqb-display", "baitiao", "display.l
new pClass().init(1,true, "java", "7087", "user-credit-schedule", "QG", "user_credit_schedule.log", "application.properties", "", " ", "用户升级-server", "","mvn clean package -Ptest -Dmaven.test.skip=true", "");
new pClass().init(1,true,"java", "7089", "baitiao-guangda", "baitiao", "baitiao-guangda.log", "application.properties", "--worker 1 --currentWorker 1 -t ", " ", "guangda-server", "宋志超", "mvn clean package -Ptest -Dmaven.test.skip=true", "");
new pClass().init(1,false,"java", "7093", "account-center-helper", "QG", "account_center_helper.log", "application.properties", "--worker 1 --curr entWorker 1 -t ", " ", "历史数据处理", "高淑盈", "mvn clean package -Ptest -Dmaven.test.skip=true", "");
new pClass().init(1,true, "java", "7096", "card", "baitiao", "card.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts","", "白条量卡", "刘志国","mvn clean package -Ptest -Dmaven.test.skip=true", "");
new pClass().init(1,true, "java", "7096", "card", "baitiao", "card.log", "application.properties", "--worker 1 --currentWorker 1 -t -ts","-Denv=dev -Didc=default", "白条量卡", "刘志国","mvn clean package -Ptest -Dmaven.test.skip=true", "");
new pClass().init(1,false,"java", "9001", "pinjamancepat", "QG", "", "application.properties", "--worker 1 --curr entWorker 1 -t ", "", "mimi", "mimi", "", "");
new pClass().init(1,false,"java", "9002", "pinjamancepat-credit-review", "QG", "", "application.properties", "--worker 1 --curr entWorker 1 -t ", "", "mimi", "", "", "");
new pClass().init(1,false,"java", "9003", "zero-gateway-zuul", "DevOps", "", "", "", "", "mimi", "", "", "");
......
server {
listen 80 default;
server_name _;
underscores_in_headers on;
proxy_set_header Host $host;
proxy_set_header QT_TOKEN $http_QT_TOKEN;
set $ip ;
location / {
if
proxy_pass http://;
}
}
server {
listen 443 ssl;
server_name _;
proxy_set_header QT_TOKEN $http_QT_TOKEN;
ssl_certificate /home/q-gp/ssl/certificate.crt;
ssl_certificate_key /home/q-gp/ssl/private.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
proxy_set_header Host $host;
set $ip ;
location / {
if
proxy_pass http://;
}
}
server {
listen 80 default;
server_name _;
underscores_in_headers on;
proxy_set_header Host $host;
proxy_set_header QT_TOKEN $http_QT_TOKEN;
set $ip ;
location / {
if
proxy_pass http://;
}
}
server {
listen 443 ssl;
server_name _;
proxy_set_header QT_TOKEN $http_QT_TOKEN;
ssl_certificate /home/q-gp/ssl/certificate.crt;
ssl_certificate_key /home/q-gp/ssl/private.key;
ssl_session_cache shared:SSL:1m;
ssl_session_timeout 5m;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_prefer_server_ciphers on;
proxy_set_header Host $host;
set $ip ;
location / {
if
proxy_pass http://;
}
}
dongmeifeng|192.168.4.78|32093|32093 tower|192.168.4.78|30886|30084 zhanghong|192.168.4.77|31826|32324 wangzhen|192.168.4.77|31809|30100 zhangbo|192.168.4.77|31091|32056 wangfei|192.168.4.77|32389|31374 renmingxing|192.168.4.78|30169|32509 tianyawei|192.168.4.77|32718|32701 hemengying|192.168.4.32|30067|30660 songruili|192.168.4.18|32355|30265 yiwei|192.168.4.77|30352|30286 lishuang|192.168.4.77|30011|31185 chenyadong|192.168.4.77|30384|32523 chenxingchun|192.168.4.33|30445|30583
dongmeifeng|192.168.4.78|32093|32093 tower|192.168.4.78|30886|30084 zhanghong|192.168.4.77|31826|32324 wangzhen|192.168.4.77|31809|30100 zhangbo|192.168.4.77|31091|32056 wangfei|192.168.4.77|32389|31374 renmingxing|192.168.4.78|30169|32509 tianyawei|192.168.4.77|32718|32701 hemengying|192.168.4.32|30067|30660 songruili|192.168.4.18|32355|30265 yiwei|192.168.4.77|30352|30286 lishuang|192.168.4.77|30011|31185 chenyadong|192.168.4.77|30384|32523 chenxingchun|192.168.4.33|30445|30583 yanxiaoyu|192.168.4.18|32116|30133 debug2|192.168.4.32|32224|32522
#!/bin/bash
pwd_path="/home/qa-deploy-utils/qa_shell_script"
config_shell_path="$pwd_path"
config_server="$pwd_path/config_server"
nginxname="/usr/local/openresty/nginx/conf/conf.d"
pwd_path_0="/home/qa-deploy-utils"
dockernamespace=`cat $pwd_path/ngrok/docker_env_name.sh`
ips=`cat $config_server/get_env_ip.sh`
rm -rf $filename
rm -rf $nginxname/*
function createNginxHttpAndSSLConf()
{
project_name=$1
cus_domain=$2
cus_ip=$3
http_port=$4
https_port=$5
file_name=$6
echo "$project_name"
touch $file_name
echo "############----${project_name}----############" >> $file_name
echo "server {" >> $file_name
echo " listen 80;" >> $file_name
echo " server_name $cus_domain.q-gp.com;" >> $file_name
echo " underscores_in_headers on;" >> $file_name
echo " proxy_set_header Host \$host;" >> $file_name
echo " proxy_set_header QT_TOKEN \$http_QT_TOKEN;" >> $file_name
echo "" >> $file_name
echo " location / {" >> $file_name
echo " proxy_pass http://$cus_ip:$http_port;" >> $file_name
echo " }" >> $file_name
echo "}" >> $file_name
echo "" >> $file_name
echo "server {" >> $file_name
echo " listen 443 ssl;" >> $file_name
echo " server_name $cus_domain.q-gp.com;" >> $file_name
echo "" >> $file_name
echo " proxy_set_header QT_TOKEN \$http_QT_TOKEN;" >> $file_name
echo " ssl_certificate /home/q-gp/ssl/certificate.crt;" >> $file_name
echo " ssl_certificate_key /home/q-gp/ssl/private.key;" >> $file_name
echo "" >> $file_name
echo " ssl_session_cache shared:SSL:1m;" >> $file_name
echo " ssl_session_timeout 5m;" >> $file_name
echo "" >> $file_name
echo " ssl_ciphers HIGH:!aNULL:!MD5;" >> $file_name
echo " ssl_prefer_server_ciphers on;" >> $file_name
echo " proxy_set_header Host \$host;" >> $file_name
echo "" >> $file_name
echo " location / {" >> $file_name
echo " proxy_pass http://$cus_ip:$https_port;" >> $file_name
echo " }" >> $file_name
echo "}" >> $file_name
}
# 数据部要求地址
createNginxHttpAndSSLConf auth-center auth-center-38 192.168.4.193 8099 8099 $nginxname/base.conf
createNginxHttpAndSSLConf h5sp h5sp-25 192.168.4.25 7057 7057 $nginxname/base.conf
# 业务要求
createNginxHttpAndSSLConf h5 h5 192.168.4.77 30011 30011 $nginxname/base.conf
createNginxHttpAndSSLConf qg1 qg1-21 192.168.4.21 9019 9019 $nginxname/base.conf
createNginxHttpAndSSLConf uanguang uanguang 192.168.4.124 80 80 $nginxname/base.conf
createNginxHttpAndSSLConf gongyucheng gongyucheng 192.168.4.254 80 80 $nginxname/base.conf
# 工作目录
createNginxHttpAndSSLConf jen jen 192.168.4.2 8080 8080 $nginxname/base.conf
# 自定义服务
createNginxHttpAndSSLConf qa qa 172.30.220.22 80 80 $nginxname/base.conf
createNginxHttpAndSSLConf qg qg 172.30.220.22 10087 10087 $nginxname/base.conf
createNginxHttpAndSSLConf bp bp 172.30.220.22 10084 10084 $nginxname/base.conf
createNginxHttpAndSSLConf qahelp qahelp 172.30.220.22 8000 8000 $nginxname/base.conf
createNginxHttpAndSSLConf store store 172.30.220.22 9000 9000 $nginxname/base.conf
createNginxHttpAndSSLConf mock mock 172.30.220.22 8080 8080 $nginxname/base.conf
createNginxHttpAndSSLConf atm atm 172.30.220.43 80 80 $nginxname/base.conf
createNginxHttpAndSSLConf mockapi mockapi 172.30.220.22 80 80 $nginxname/base.conf
createNginxHttpAndSSLConf acs acs 172.30.220.43 8585 8585 $nginxname/base.conf
createNginxHttpAndSSLConf qtest qtest 172.30.220.22 45003 45003 $nginxname/base.conf
for ip_last in ${ips[@]}
do
IP_host=`sh $pwd_path_0/get-ip.sh $ip_last`
ip_arr=(${IP_host//./ })
ipfirst="${ip_arr[0]}.${ip_arr[1]}.${ip_arr[2]}"
iplast="${ip_arr[3]}"
ip_last_repeat=${ip_last//./-}
projectAndPorts=`node $config_server/get_project_config.js -type multi -attr port -attr2 true`
for projectAndPort in ${projectAndPorts[@]}
do
var=(${projectAndPort//|/ })
project_name="${var[0]}"
sub_doman="${var[0]}-${ip_last_repeat}"
target_ip="$IP_host"
http_port="${var[1]}"
https_port="${var[1]}"
file_name="$nginxname/$target_ip.conf"
# createNginxHttpAndSSLConf 服务名称 二级域名 目标IP HTTP端口 HTTPS端口 目标文件
# if [[ ${var[0]} != "xjd-ui" ]] && [[ ${var[0]} != "new-paycenter-ui" ]];then
createNginxHttpAndSSLConf $project_name $sub_doman $target_ip $http_port $https_port $file_name
# fi
done
done
for host_name in ${dockernamespace[@]}
do
projectAndPorts=`node $config_server/get_project_config.js -type multi -attr port/url -attr2 true`
namespace=(${host_name//|/ })
for projectAndPort in ${projectAndPorts[@]}
do
var=(${projectAndPort//|/ })
# echo "${var[2]}/${namespace[0]}/${namespace[1]}/${namespace[2]}/${namespace[3]}"
project_name="${var[0]}"
sub_doman="${var[2]}-${namespace[0]}"
target_ip="${namespace[1]}"
http_port="${namespace[2]}"
https_port="${namespace[2]}"
file_name="$nginxname/${namespace[0]}.conf"
# createNginxHttpAndSSLConf 服务名称 二级域名 目标IP HTTP端口 HTTPS端口 目标文件
if [[ ${var[0]} != "xjd-ui" ]] && [[ ${var[0]} != "new-paycenter-ui" ]];then
createNginxHttpAndSSLConf $project_name $sub_doman $target_ip $http_port $https_port $file_name
fi
done
# 单独增加passportapi2
createNginxHttpAndSSLConf xyqb-user2-api2 passportapi2-${namespace[0]} ${namespace[1]} ${namespace[2]} ${namespace[2]} $nginxname/${namespace[0]}.conf
done
nginx -s reload
# sh ${frp_file_path}/restart.sh
......@@ -3,7 +3,7 @@ ip=$1
phone_no=$2
bill_num=$3
bill_num_a=0
PORT=$3
PORT=$4
USERNAME="qa"
PASSWORD="qatest"
mysqld="-h${ip} -P${PORT} -u${USERNAME} -p${PASSWORD}"
......@@ -18,91 +18,92 @@ date_now=`date "+%Y-%m-%d %H:%M:%S"`
user_id=`mysql -N $mysqld xyqb_user -e "SELECT id from user where user.phone_no='${phone_no}'"`
echo "user_id=$user_id"
order_id=`mysql -N $mysqld xyqb -e "select id from baitiao_order where baitiao_order.user_id=${user_id}"`
#echo "order_id=${order_id}"
echo "order_id=${order_id}"
SELECT_plan1="SELECT id from baitiao_bill_repayment_plan where baitiao_bill_repayment_plan.user_phone='${phone_no}' LIMIT 1"
plan_id1=`mysql -N $mysqld xyqb -e "${SELECT_plan1}"`
#echo "plan_id=$plan_id1"
echo "plan_id=$plan_id1"
select_fund_order_id1="SELECT id from baitiao_fund_order where baitiao_fund_order.order_id=${order_id} limit 1"
#echo ${select_fund_order_id1}
echo ${select_fund_order_id1}
fund_order_id1=`mysql -N $mysqld xyqb -e "${select_fund_order_id1}"`
#echo "fund_order_id1=$fund_order_id1"
echo "fund_order_id1=$fund_order_id1"
select_order_amount1="SELECT order_amount from baitiao_bill_repayment_plan where baitiao_bill_repayment_plan.user_phone='${phone_no}' LIMIT 1"
#echo ${select_order_amount1}
echo ${select_order_amount1}
order_amount1=`mysql -N $mysqld xyqb -e "${select_order_amount1}"`
# echo "order_amount1=$order_amount1"
echo "order_amount1=$order_amount1"
#更新baitiao_fund_order.status,start_interest_date
update_baitiao_fund_order="UPDATE baitiao_fund_order as aaa set aaa.status=3, aaa.start_interest_date='${date_now}' where aaa.id=${fund_order_id1}"
#echo "update_fund_order=${update_baitiao_fund_order}"
echo "update_fund_order=${update_baitiao_fund_order}"
mysql $mysqld xyqb -e "${update_baitiao_fund_order}"
#echo ${update_baitiao_fund_order}
echo ${update_baitiao_fund_order}
#插入一条数据到baitiao_finance_record
insert_baitiao_finance_record="INSERT INTO baitiao_finance_record("third_no","total_amount","local_no","type", "remark", "created_at", "updated_at")VALUES ( 'test001', ${order_amount1}, NULL, '0', '笑脸资金方批量放款到量化派', '${date_now}','${date_now}')"
#echo ${insert_baitiao_finance_record}
echo ${insert_baitiao_finance_record}
mysql $mysqld xyqb -e "${insert_baitiao_finance_record}"
echo "bill_num_a=$bill_num_a"
echo "bill_num=$bill_num"
while [ ${bill_num_a} -lt ${bill_num} ]; do
# echo ${bill_num_a}
echo ${bill_num_a}
paymonth=`date -d "+${bill_num_a} month" +%Y%m`
# echo "paymonth=$paymonth"
echo "paymonth=$paymonth"
deadline=`date -d "+${bill_num_a} month" +%Y-%m`
day1="-28 23:59:59"
deadlineTime=${deadline}${day1}
# echo "deadlineTime=${deadlineTime}"
echo "deadlineTime=${deadlineTime}"
if [ $bill_num_a -eq 0 ] ; then
select_baitiao_bill="INSERT INTO baitiao_bill ("user_id", "user_phone", "month", "already_repay_amount", "bill_repay_status", "enable", "created_at", "updated_at")VALUES ( ${user_id},'${phone_no}', ${paymonth}, '0.00', '1', '1', '${date_now}', '${date_now}')"
# echo ${select_baitiao_bill}
echo ${select_baitiao_bill}
mysql -N $mysqld xyqb -e "${select_baitiao_bill}"
else
select_baitiao_bill1="INSERT INTO baitiao_bill ("user_id", "user_phone", "month", "already_repay_amount", "bill_repay_status", "enable", "created_at", "updated_at")VALUES ( ${user_id}, '${phone_no}', ${paymonth}, '0.00', '0', '1','${date_now}','${date_now}')"
mysql -N $mysqld xyqb -e "${select_baitiao_bill1}"
# echo ${select_baitiao_bill1}
echo ${select_baitiao_bill1}
fi;
#xyqb.baitiao_bill_repayment_plan插入一个bill_id
id=$((${plan_id1}+${bill_num_a}))
# echo "id=$id"
echo "id=$id"
update_repayment_plan="UPDATE baitiao_bill_repayment_plan as a set a.bill_id=(SELECT id from baitiao_bill where baitiao_bill.user_phone='${phone_no}' and baitiao_bill.month=${paymonth}) where a.id=${id}"
# echo ${update_repayment_plan}
echo ${update_repayment_plan}
mysql -N $mysqld xyqb -e "${update_repayment_plan}"
#插入一条笑脸还款计划
insert_fund_repayment_plan="INSERT INTO baitiao_fund_repayment_plan ( "plan_id", "fund_order_id", "term_no", "principal", "interest", "discount", "finance_record_id", "status", "deadline", "created_at", "updated_at")VALUES(${id}, ${fund_order_id1}, $(( $bill_num_a + 1 )), 0.00, 0.00,0.00, NULL, '0','${deadlineTime}', '${date_now}','${date_now}')"
# echo "dead1 = ${deadlineTime}"
#echo ${insert_fund_repayment_plan}
echo "dead1 = ${deadlineTime}"
echo ${insert_fund_repayment_plan}
mysql -N $mysqld xyqb -e "${insert_fund_repayment_plan}"
#echo "deadlineTime=${deadlineTime}"
echo "deadlineTime=${deadlineTime}"
#更新baitiao_bill_repayment_plan deadline
select_deadline="SELECT deadline from baitiao_fund_repayment_plan where baitiao_fund_repayment_plan.plan_id=${id}"
line1=`mysql -N $mysqld xyqb -e "${select_deadline}"`
# echo ${select_deadline}
echo ${select_deadline}
# echo "deadline1=${line1}"
echo "deadline1=${line1}"
select_update_repayment_plan="UPDATE baitiao_bill_repayment_plan as aa set aa.deadline='${line1}' WHERE aa.id=${id}"
#echo ${select_update_repayment_plan}
echo ${select_update_repayment_plan}
mysql -N $mysqld xyqb -e "${select_update_repayment_plan}"
#更新笑脸还款计划金额baitiao_fund_repayment_plan
select_fund_repayment_plan1="update baitiao_fund_repayment_plan as a,baitiao_bill_repayment_plan as b set a.principal=b.principal,a.interest=b.interest WHERE a.plan_id=b.id and b.id=${id} and a.fund_order_id=${fund_order_id1}"
# echo ${select_fund_repayment_plan1}
echo ${select_fund_repayment_plan1}
mysql -N $mysqld xyqb -e "${select_update_repayment_plan}"
bill_num_a=$(( $bill_num_a + 1 ))
# echo "bill_num_a=${bill_bum_a} jjj"
# echo "bill_num_a=${bill_bum_a}"
done
echo "done!!! `date`"
......
#!/bin/bash
set -e
ip=$1
phone_no=$2
port=$3
#loan_application_history_id=$3
#name=$4
HOSTNAME="$ip"
USERNAME="qa"
PASSWORD="qatest"
DBNAME0="risk_control"
TABLENAME0="review_history"
DBNAME1="xyqb"
TABLENAME1="waiting_funding_corp_operate_people"
TABLENAME5="contract"
DBNAME2="gyxd"
TABLENAME2="loan_application_manifest_history"
TABLENAME3="repayment_plan"
TABLENAME4="loan_user"
mysqld="-h$ip -P$port -uqa -pqatest"
date="`date +%Y%m%d%H%M%S`"
echo $date
date_now=`date +"%Y-%m-%d %T"`
echo $date_now
deadline1=`date +"%Y-%m-%d %T" -d "next month"`
deadline2=`date +"%Y-%m-%d %T" -d "2 month"`
deadline3=`date +"%Y-%m-%d %T" -d "3 month"`
len=`echo $phone_no|awk '{print length($0)}'`
if [ $len -ne 11 ];then
echo "请输入11位手机号!"
exit -1
fi
#clotho进行直投推送,数据至广源后台系统
loan_application_history_id=`mysql -N $mysqld ${DBNAME0} -e "select loan_application_history_id from ${TABLENAME0} where phone_no=${phone_no}"`
con1="update xyqb.waiting_funding_corp_operate_people
set xyqb.waiting_funding_corp_operate_people.funding_corp_progress=4
where is_enable=1 and loan_application_history_id=$loan_application_history_id";
mysql -N $mysqld ${DBNAME1} -e"set names utf8; ${con1}"
#推送成功后广源库loan_user表增加推送数据
name=`mysql -N $mysqld ${DBNAME0} -e "select name from ${TABLENAME0} where phone_no=${phone_no}"`
id_no=`mysql -N $mysqld ${DBNAME0} -e "select id_no from ${TABLENAME0} where phone_no=${phone_no}"`
con2="INSERT INTO gyxd.loan_user(customer_id, channel_id, phone_no, name, id_no, id_type,gender, birthday, postal_address, postal_address_zip_code, residence_address, residence_address_zip_code, education, degree, professional_title, marital_status, template_id, template_location_type, template_is_farmer, template_is_self_employed, template_work_unit, template_industry, is_put, level, created_at, updated_at, template_invest_industry)
VALUES
( '', 1, ${phone_no},'${name}', ${id_no}, 0, 2, '1985-02-10', '北京市市辖区怀柔区1', '101400', '北京市市辖区怀柔区1', '101400', 0, 6, 4, 2, 130, 1, 0, 0, '未知', 'L', 0, 0, '$date_now', '$date_now', 'L7440');"
mysql -N $mysqld ${DBNAME2} -e"set names utf8; ${con2}"
#广源库loan_application_manifest_history表增加数据
user_id=`mysql -N $mysqld ${DBNAME2} -e "select id from ${TABLENAME4} where phone_no=${phone_no}"`
protocol_number=`mysql -N $mysqld ${DBNAME1} -e "select ssq_contract_no from ${TABLENAME5} where loan_application_history_id=${loan_application_history_id}"`
echo $protocol_number
con3="INSERT INTO gyxd.loan_application_manifest_history(loan_id,loan_user_id,channel_id,credit_assignment,bank_card_id,loan_progress,reported_progress,amount,term, purpose,protocol_number,service_fee_per_term,total_repayment_amount,monthly_repayment,annual_interest_rate,principal_and_interest_per_term,total_principal_and_interest,loan_received_at,loan_paid_at,transaction_status,remark,payment_notification_url,created_at,updated_at,notify_at,sign_status,loan_status,recall_status, repay_status,debt_status,distribute_fund_id,credit_assigned_at)
VALUES
(${loan_application_history_id}, ${user_id}, 1, 99, 313380, 7, 1, 2000.00, 3, '消费', '${protocol_number}', 150.00, 2490.93, 830.31, 0.122400, 680.31, 2040.93, '$date_now', '$date_now', NULL, '', 'http://${ip}:7082/external/gy/callback', '$date_now', '$date_now', '$date_now', 2, 2, 0, 0, 0, 2, '$date_now');"
echo user_id
echo ${user_id}
mysql -N $mysqld ${DBNAME2} -e"set names utf8; ${con3}"
#gyxd增加还款计划
loan_application_manifest_history_id=`mysql -N $mysqld ${DBNAME2} -e "select id from ${TABLENAME2} where loan_id =${loan_application_history_id}"`
con4="INSERT INTO gyxd.repayment_plan(loan_user_id,loan_application_manifest_history_id,loan_id,channel_id,term_no,deadline,current_repayment,required_repayment,repayment_status,repaid_at,qg_repay_at,credit_assigned_at,overdue_interest,activity_relief,repayment_received_at,remark,collection_relief,principal_amount, interest,service_fee,reported_progress,credit_assignment,debt_fund_id,debt_status,pay_approach,pay_approach_desc,compensation_status,compensation_at,overdue_service_fee,pay_order_no,actual_service_fee)
VALUES
(${user_id}, ${loan_application_manifest_history_id}, ${loan_application_history_id}, 0, 1, '${deadline1}', 0.00, 830.31, 0, '2000-01-01 00:00:00', NULL, NULL, 0.00, 0.00, '2000-01-01 00:00:00', '', 0.00, 666.64, 13.67, 150.00, 0, 99, NULL, 0, NULL, NULL, 0, NULL, 0.00, NULL, 0.00),
(${user_id}, ${loan_application_manifest_history_id}, ${loan_application_history_id}, 0, 2, '${deadline2}', 0.00, 830.31, 0, '2000-01-01 00:00:00', NULL, NULL, 0.00, 0.00, '2000-01-01 00:00:00', '', 0.00, 666.64, 13.67, 150.00, 0, 99, NULL, 0, NULL, NULL, 0, NULL, 0.00, NULL, 0.00),
(${user_id}, ${loan_application_manifest_history_id}, ${loan_application_history_id}, 0, 3, '${deadline3}', 0.00, 830.32, 0, '2000-01-01 00:00:00', NULL, NULL, 0.00, 0.00, '2000-01-01 00:00:00', '', 0.00, 673.45, 6.87, 150.00, 0, 99, NULL, 0, NULL, NULL, 0, NULL, 0.00, NULL, 0.00);"
mysql -N $mysqld ${DBNAME2} -e"set names utf8; ${con4}"
#广源系统签约、放款、回盘
con5="update gyxd.loan_application_manifest_history
set gyxd.loan_application_manifest_history.loan_progress=7,gyxd.loan_application_manifest_history.sign_status=2
where loan_id=$loan_application_history_id";
echo con5
echo $con5
mysql -N $mysqld ${DBNAME2} -e"set names utf8; ${con5}"
#放款结果回调xyqb,loan表及people表进行数据状态变更
con6="update xyqb.loan_application_history
set xyqb.loan_application_history.progress=15
where id=$loan_application_history_id";
echo con6
echo $con6
mysql -N $mysqld ${DBNAME1} -e"set names utf8; ${con6}"
con7="update xyqb.waiting_funding_corp_operate_people
set xyqb.waiting_funding_corp_operate_people.funding_corp_progress=5
where loan_application_history_id=$loan_application_history_id";
echo con7
echo $con7
mysql -N $mysqld ${DBNAME1} -e"set names utf8; ${con7}"
......@@ -62,7 +62,7 @@ user_authorization_insert="INSERT INTO spider_center.user_authorization ( auth_t
VALUES
(3, now(), NULL, ${spider_center_user_id}, 1),
(0, now(), NULL, ${spider_center_user_id}, 1),
(7, now(), NULL, ${spider_center_user_id}, 1);"
(7, now(), NULL, ${spider_center_user_id}, 1);"
mysql $mysql3 -e"set names utf8; ${user_authorization_insert}"
fi
if [[ ${user_authorization_type[*]} =~ "3" || ${user_authorization_type[*]} =~ "0" && $user_authorization_status != "1" ]];then
......
......@@ -63,7 +63,7 @@ user_authorization_insert="INSERT INTO spider_center.user_authorization ( auth_t
VALUES
(3, now(), NULL, ${spider_center_user_id}, 1),
(0, now(), NULL, ${spider_center_user_id}, 1),
(7, now(), NULL, ${spider_center_user_id}, 1);"
(7, now(), NULL, ${spider_center_user_id}, 1);"
mysql $mysql3 -e"set names utf8; ${user_authorization_insert}"
fi
if [[ ${user_authorization_type[*]} =~ "3" || ${user_authorization_type[*]} =~ "0" && $user_authorization_status != "1" ]];then
......
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