...
|
...
|
@@ -44,7 +44,7 @@ class LogisticsController extends AdminBaseController |
|
|
if(isset($param['keyword'])) {
|
|
|
$where['name'] = ['like','%'.$param['keyword'].'%'];
|
|
|
}
|
|
|
$list = $this->singleData($this->table,$where,2,['create_time'=>'DESC']);
|
|
|
$list = $this->singleData($this->table,$where,2,['create_time'=>'DESC','is_del'=>0]);
|
|
|
$list->appends($param);
|
|
|
$this->assign('list',$list->items());
|
|
|
$this->assign('page',$list->render());
|
...
|
...
|
@@ -83,6 +83,9 @@ class LogisticsController extends AdminBaseController |
|
|
$insert['version'] = $update['version'] = $v[2];
|
|
|
$insert['express'] = $update['express'] = $v[3];
|
|
|
$insert['is_del'] = $update['is_del'] = $v[4];
|
|
|
if(empty($v[4])) {
|
|
|
$insert['is_del'] = $update['is_del'] = 0;
|
|
|
}
|
|
|
$info = $this->logistics_model->where(['express'=>$insert['express']])->find();
|
|
|
if($info) {
|
|
|
$update['id'] = $info['id'];
|
...
|
...
|
|