Commit e4c3e16c authored by zhuwei's avatar zhuwei

1

parent 9d9fd51a
...@@ -16,6 +16,7 @@ use app\index\extend\Basic; ...@@ -16,6 +16,7 @@ use app\index\extend\Basic;
use app\model\AAgents; use app\model\AAgents;
use app\model\AStore; use app\model\AStore;
use app\model\FOffice; use app\model\FOffice;
use app\model\FStoreData;
use think\Request; use think\Request;
class StoreFee extends Basic class StoreFee extends Basic
...@@ -343,6 +344,10 @@ class StoreFee extends Basic ...@@ -343,6 +344,10 @@ class StoreFee extends Basic
$conditions['office_id'] = 0; $conditions['office_id'] = 0;
$conditions['id'] = $params['store_id']; $conditions['id'] = $params['store_id'];
$return = $m_store->updateStore($conditions); $return = $m_store->updateStore($conditions);
//门店参数表数据删除
$m_store_data = new FStoreData();
$m_store_data->delData($params['store_id']);
} else { } else {
$store_params['id'] = $params['store_id']; $store_params['id'] = $params['store_id'];
$store_params['office_id'] = array('gt', 0); $store_params['office_id'] = array('gt', 0);
......
...@@ -140,4 +140,14 @@ class FStoreData extends BaseModel ...@@ -140,4 +140,14 @@ class FStoreData extends BaseModel
->group('a.store_id') ->group('a.store_id')
->select(); ->select();
} }
public function delData($store_id)
{
$result = $this->where(['store_id'=>$store_id])->update(['is_del'=>1]);
//dump($this->getLastSql());
// big_log($this->getLastSql());
return $result;
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment