Commit 16a15729 authored by qa_quantgroup's avatar qa_quantgroup

增加谛听支付中心脚本

parent ed6ceb65
#!/bin/bash
ip=$1
phone_no=$2
mysql -h"$ip" -p"3306" -u"qa" -p"qatest" <<EOF
update xyqb.loan_application_history
set xyqb.loan_application_history.progress=40
where business_type=0 and user_id=(select id from xyqb_user.user where phone_no =$phone_no) and is_active=1;
EOF
echo "done!!!"
......@@ -21,7 +21,7 @@ delete from xyqb.loan_application_manifest_history
where loan_application_history_id =111112222233333;
INSERT INTO xyqb.loan_application_manifest_history (user_id, loan_application_history_id, channel_id, product_id, transaction_flow_id, funding_corp_id, funding_corp_name, contract_loan_amount, contract_term, service_fee_per_term, one_time_service_fee, monthly_interest_rate, total_repayment_amount, monthly_repayment, real_loan_amount, annual_interest_rate, principal_and_interest_per_term, total_principal_and_interest, company_income, loan_received_at, loan_paid_at, transaction_status, remark, red_packet_strategy)
VALUES (1, 111112222233333, 1, 32, 0, $fund_id, '测试资金方', 2000.00, 3, 150.00, 0.00, 0.011675, 2496.88, 832.29, 2000.00, 0.140100, 682.29, 2046.88, 46.88, '2017-06-08 18:39:33', '1989-09-29 00:00:00', 0, '', NULL);
VALUES (1, 111112222233333, 1, 32, 0, $fund_id, N'测试资金方', 2000.00, 3, 150.00, 0.00, 0.011675, 2496.88, 832.29, 2000.00, 0.140100, 682.29, 2046.88, 46.88, '2017-06-08 18:39:33', '1989-09-29 00:00:00', 0, '', NULL);
delete from xyqb.loan_application_manifest_history
where loan_application_history_id=(select id from xyqb.loan_application_history where business_type=0 and user_id=(select id from xyqb_user.user where phone_no =$phone_no) and is_active=1);
......
#!/bin/bash
ip=$1
phone_no=$2
date=`date "+%Y-%m-%d %H:%M:%S"`
mysql -h"$ip" -p"3306" -u"qa" -p"qatest" <<EOF
use xyqb;
update xyqb.loan_application_history
set xyqb.loan_application_history.progress=21
where business_type=0 and user_id=(select id from xyqb_user.user where phone_no =$phone_no) and is_active=1;
EOF
echo "done!!!"
#!/bin/bash
ip=$1
phone_no=$2
#把资金方放款时间更新为昨天,便于测试
date=`date -d yesterday "+%Y-%m-%d %H:%M:%S"`
mysql -h"$ip" -p"3306" -u"qa" -p"qatest" <<EOF
use xyqb;
update xyqb.loan_application_history
set xyqb.loan_application_history.progress=15
where business_type=0 and user_id=(select id from xyqb_user.user where phone_no =$phone_no) and is_active=1;
update xyqb.loan_application_manifest_history
set loan_paid_at='$date'
where loan_application_history_id=(select id from xyqb.loan_application_history where business_type=0 and user_id=(select id from xyqb_user.user where phone_no =$phone_no) and is_active=1);
update xyqb.page_state_info
set state='ViewRepayState'
where loan_id=(select id from xyqb.loan_application_history where business_type=0 and user_id=(select id from xyqb_user.user where phone_no =$phone_no) and is_active=1);
EOF
echo "done!!!"
#!/bin/bash
ip=$1
phone_no=$2
mysql -h"$ip" -p"3306" -u"qa" -p"qatest" <<EOF
use payment_center;
delete from payment_center.bank_card where user_id=111112222233333;
delete from payment_center.card_bind_info where user_id=111112222233333;
delete from payment_center.bind_card_order where user_id=111112222233333;
delete from payment_center.bank_card where card_no=6227000010912341234;
delete from payment_center.card_bind_info where card_no=6227000010912341234;
delete from payment_center.bank_card_detail where card_no=6227000010912341234;
INSERT INTO payment_center.bank_card (user_id, card_no, card_top, card_last, card_type, card_holder_name, preserve_phone_no, bank_name, bank_code, branch_no, branch_name, city, province, valid_from, valid_thru)
VALUES
(111112222233333, '6227000010912341234', '622700', '1234', 2, N'小测', '18610271234', N'建设银行', 'CCB', NULL, NULL, '110102', '110000', NULL, NULL);
INSERT INTO payment_center.bank_card_detail (bank_name, bank_code, card_no, account_property, card_type, is_valid)
VALUES
('建设银行', 'CCB', '6227000010912341234', '00', 2, 1);
INSERT INTO payment_center.bind_card_order (user_id, merchant_id, merchant_order_no, pay_approach, ext_data, bind_status, sms_error_code, confirm_error_code, request_id)
VALUES
(111112222233333, 3, '43779518', 1, '', 5, '', '', 'yeepay1488525851371');
INSERT INTO payment_center.card_bind_info (user_id, pay_approach, bind_id, bank_card_id, is_active, card_no, bind_valid_thru)
VALUES
(111112222233333, 1, '1488525851371', 1492596, 1, '6227000010912341234', NULL);
update payment_center.bank_card t set t.user_id=(select id from payment_center.user where phone_no =$phone_no) where t.user_id=111112222233333;
update payment_center.bind_card_order t set t.user_id=(select id from payment_center.user where phone_no =$phone_no) where t.user_id=111112222233333;
update payment_center.card_bind_info t set t.user_id=(select id from payment_center.user where phone_no =$phone_no),bank_card_id=(select id from payment_center.bank_card where card_no=6227000010912341234 and user_id=(select id from payment_center.user where phone_no =$phone_no)) where t.user_id=111112222233333;
EOF
echo "done!!!"
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