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