|
@@ -105,7 +105,7 @@ class Maintain extends Apic
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- $field = ['mt.id','mt.orderno','uc.projectname','mt.info','uc.header','mt.status'];
|
|
|
+ $field = ['mt.id','mt.orderno','uc.projectname','mt.info','uc.header','mt.status','mt.price'];
|
|
|
$list = Db::name($this->table)->alias('mt')
|
|
|
->join('user_company uc','mt.uc_id = uc.id','LEFT')
|
|
|
->field($field)
|
|
@@ -445,4 +445,18 @@ class Maintain extends Apic
|
|
|
$this->success();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ public function set_price(){
|
|
|
+ $id = input('id',0);
|
|
|
+ $price = input('price',0);
|
|
|
+
|
|
|
+ $update = [
|
|
|
+ 'price' => $price,
|
|
|
+ 'updatetime' => time(),
|
|
|
+ ];
|
|
|
+ $rs_update = Db::name($this->table)->where('id',$id)->update($update);
|
|
|
+
|
|
|
+ $this->success();
|
|
|
+ }
|
|
|
+
|
|
|
}
|