edit-upda-order_time
This commit is contained in:
@@ -35,9 +35,9 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="am-form-group wp50 fl">
|
||||
<label class="am-para-label">精品最低价:</label>
|
||||
<label class="am-para-label">精品底价:</label>
|
||||
<div class="am-para-input">
|
||||
<input type="text" placeholder="请输入精品最低价" name="price_fine_floor" v-model="info.price_fine_floor" style="display: inline;width: 60%"/>
|
||||
<input type="text" placeholder="请输入精品底价" name="price_fine_floor" v-model="info.price_fine_floor" style="display: inline;width: 60%"/>
|
||||
<span>元</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -54,7 +54,7 @@
|
||||
<th width="7%"><span>定金</span></th>
|
||||
<th width="7%"><span>保险报价</span></th>
|
||||
<th width="7%"><span>精品报价</span></th>
|
||||
<th width="7%"><span>精品最低价</span></th>
|
||||
<th width="7%"><span>精品底价</span></th>
|
||||
<th width="7%"><span>金融报价</span></th>
|
||||
<th width="7%"><span>公司加价</span></th>
|
||||
<th width="9%"><span>一级分销佣金</span></th>
|
||||
|
||||
@@ -160,7 +160,11 @@ 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,'order_time' => date('Y-m-d H:i:s')], ['id' => $row['id']]);
|
||||
$order_update = [
|
||||
'status' => $status,
|
||||
];
|
||||
$row['order_time'] == '0000-00-00 00:00:00' && $order_update['order_time'] = date('Y-m-d H:i:s');
|
||||
$this->orders_model->update($order_update, ['id' => $row['id']]);
|
||||
if(!$next_row){
|
||||
$add_data = [
|
||||
'o_id' => $row['id'],
|
||||
@@ -214,11 +218,8 @@ class Payment_service extends HD_Service{
|
||||
$pay_price && $upd['pay_price'] = $pay_price;
|
||||
$res = $this->app_liche_orders_model->update($upd,array('id'=>$order['id']));
|
||||
if($res) {
|
||||
//更新订单状态
|
||||
$row = $this->orders_model->get(['id' => $order['o_id']]);
|
||||
if($order['total_price']==$row['deposit']){ //意向金等于定金 更新订单下定时间
|
||||
$this->orders_model->update(['order_time' => date('Y-m-d H:i:s')], ['id' => $row['id']]);
|
||||
}
|
||||
//更新订单下定时间
|
||||
$this->orders_model->update(['order_time' => date('Y-m-d H:i:s')], ['id' => $order['o_id']]);
|
||||
return array('code'=>1,'msg'=>'操作成功');
|
||||
}else{
|
||||
return array('code'=>0,'msg'=>'更新失败');
|
||||
|
||||
@@ -84,6 +84,7 @@ alter table lc_auto_cars
|
||||
alter table lc_auto_cars modify attrs char(30) not null default '' comment '属性组合:{type0id}_{type1id}_{type2id}';
|
||||
alter table lc_auto_cars drop index attrs;
|
||||
alter table lc_auto_cars add price_floor double(10,2) not null default '0.00' comment '车辆底价' after price_car;
|
||||
alter table lc_auto_cars add price_fine_floor double(10,2) not null default '0.00' comment '精品底价' after price_fine;
|
||||
|
||||
|
||||
-- ----------------------------
|
||||
|
||||
Reference in New Issue
Block a user