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}"
select_update_repayment_plan="UPDATE baitiao_bill_repayment_plan as aa set aa.deadline='${deadline1}' WHERE aa.id=${id}"
# 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}
mysql -N$mysqld xyqb -e"${select_update_repayment_plan}"