|
@@ -249,7 +249,7 @@ class Stock extends Backend
|
|
|
*/
|
|
*/
|
|
|
public function orderstu(){
|
|
public function orderstu(){
|
|
|
$company_id = $_SESSION['think']['admin']['company_id'];//查询对应的公司id
|
|
$company_id = $_SESSION['think']['admin']['company_id'];//查询对应的公司id
|
|
|
- $orderstu = $this->request->request('orderstu');//2
|
|
|
|
|
|
|
+ $orderstu = $this->request->request('orderstu');//处理后状态为2
|
|
|
$arr = ['orderstu' =>$orderstu,'update'=>date("Y-m-d H:i:s")];
|
|
$arr = ['orderstu' =>$orderstu,'update'=>date("Y-m-d H:i:s")];
|
|
|
if(Db::name('order')->where('company_id',$company_id)->where('orderstu','=',1)->update($arr)){
|
|
if(Db::name('order')->where('company_id',$company_id)->where('orderstu','=',1)->update($arr)){
|
|
|
return '处理成功';
|
|
return '处理成功';
|