Commit 1f7c4bf0 authored by 智勇's avatar 智勇

update

parent 57bb97be
...@@ -25,6 +25,11 @@ function authorization() ...@@ -25,6 +25,11 @@ function authorization()
fund_order_id=`mysql -N $mysqld xyqb -e "select id from baitiao_fund_order where order_id='$order_id'"` fund_order_id=`mysql -N $mysqld xyqb -e "select id from baitiao_fund_order where order_id='$order_id'"`
term_no=`mysql -N $mysqld xyqb -e "select count(*) from baitiao_bill_repayment_plan where order_id='$order_id'"` term_no=`mysql -N $mysqld xyqb -e "select count(*) from baitiao_bill_repayment_plan where order_id='$order_id'"`
baitiao_fund_repayment_plan=`mysql -N $mysqld xyqb -e "select id from baitiao_fund_repayment_plan where plan_id='$plan_id'"`
if [[ -n "baitiao_fund_repayment_plan" ]]; then
echo "finish~"
exit
else
insert_sql0="insert into baitiao_fund_repayment_plan("plan_id","fund_order_id","term_no","principal","interest","discount","finance_record_id","status") values ($plan_id,'$fund_order_id',1,'0','0','0',NULL,'0')" insert_sql0="insert into baitiao_fund_repayment_plan("plan_id","fund_order_id","term_no","principal","interest","discount","finance_record_id","status") values ($plan_id,'$fund_order_id',1,'0','0','0',NULL,'0')"
mysql $mysqld ${DBNAME} -e "${insert_sql0}" mysql $mysqld ${DBNAME} -e "${insert_sql0}"
#echo $insert_sql0 #echo $insert_sql0
...@@ -79,6 +84,7 @@ function authorization() ...@@ -79,6 +84,7 @@ function authorization()
echo "done!!! $date_now" echo "done!!! $date_now"
fi fi
fi
} }
authorization $ip $phone_no authorization $ip $phone_no
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