Commit eed571df authored by zhuwei's avatar zhuwei

1

parent 7e7e6b52
......@@ -448,7 +448,9 @@ class CostDetail extends Basic
}
$conditions = [];
$conditions["b.district_id"] = $params["district_id"];
if (!empty($params['district_id'])) {
$conditions["b.district_id"] = $params["district_id"];
}
$field = 'a.store_id,b.district_id,c.district_name,b.store_name';
$m_store_cost = new FStoreCost();
$list = $m_store_cost->getAllStoreCost($field, $conditions);
......
......@@ -35,7 +35,6 @@ class CostDetailValidate extends Validate {
protected $scene = [
'getCostInfo' => [ 'id', 'type' ],
'getAllStoreCost' => [ 'district_id' ],
];
}
\ No newline at end of file
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