edit-admin-order_loan

This commit is contained in:
lccsw
2021-11-16 15:20:05 +08:00
parent ab2262fea3
commit 91b16bb314
4 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -172,9 +172,9 @@ class Orders extends HD_Controller
if ($money_json['price_loan']) {
$srv_money = $this->orders_entity->order_srv_money($row['id']);
if ($srv_money > $deposit) {
$loan['first_pay'] = $money_json['price_car'] - $money_json['price_loan'];
$loan['first_pay'] = $sale_price - $money_json['price_loan'];
} else {
$loan['first_pay'] = $money_json['price_car'] - $money_json['price_loan'] - $deposit;
$loan['first_pay'] = $sale_price - $money_json['price_loan'] - $deposit;
}
}
!$loan['num'] && $loan['num'] = 12;
+1 -1
View File
@@ -50,7 +50,7 @@ class Sys_finance_model extends HD_Model
* @return array
*/
public function get_nums(){
$nums = [12,24,36,48,60];
$nums = [12,18,24,36,48,60];
return $nums;
}
}
+1 -1
View File
@@ -160,7 +160,7 @@ class Payment_service extends HD_Service{
$this->load->model('receiver/order/receiver_order_loans_model', 'next_model');
}
$next_row = $this->next_model->get(['o_id'=>$row['id']]);
$this->orders_model->update(['status' => $status], ['id' => $row['id']]);
$this->orders_model->update(['status' => $status,'order_time' => date('Y-m-d H:i:s')], ['id' => $row['id']]);
if(!$next_row){
$add_data = [
'o_id' => $row['id'],
+1
View File
@@ -198,3 +198,4 @@ alter table lc_receiver_orders add money_json json default null comment "价格j
alter table lc_receiver_orders add srv_ids varchar(100) not null default '' comment '服务id多个逗号隔开' after pack_id;
alter table lc_receiver_orders add fine_ids varchar(100) not null default '' comment '精品id多个逗号隔开' after srv_ids;
alter table lc_receiver_orders add bill_time timestamp not null default '0000-00-00 00:00:00' comment '开票时间' after delry_time;
alter table lc_receiver_orders add order_time timestamp not null default '0000-00-00 00:00:00' comment '下定时间' after bill_time;