Commit 830a49f5 authored by zhuwei's avatar zhuwei

1

parent b64e299a
...@@ -162,9 +162,9 @@ class User extends Basic ...@@ -162,9 +162,9 @@ class User extends Basic
} }
if (isset($params['site_id']) ) { if (isset($params['site_id']) ) {
$conditions['a.site_id'] = [ 'LIKE', '%' . $params['site_id'] . '%' ]; $conditions['a.site_ids'] = [ 'LIKE', '%' . $params['site_id'] . '%' ];
}else{ }else{
$conditions['a.site_id'] = [ 'LIKE', '%' . $this->siteId. '%' ]; $conditions['a.site_ids'] = [ 'LIKE', '%' . $this->siteId. '%' ];
} }
$return_user_list = $this->userModel->selectUserList($field, $conditions, $pageNo, $pageSize, $order); $return_user_list = $this->userModel->selectUserList($field, $conditions, $pageNo, $pageSize, $order);
break; break;
......
...@@ -38,21 +38,21 @@ class CostDetail extends Basic ...@@ -38,21 +38,21 @@ class CostDetail extends Basic
);*/ );*/
$pageNo = empty($params['pageNo']) ? 1 : $params['pageNo']; $pageNo = empty($params['pageNo']) ? 1 : $params['pageNo'];
$pageSize = empty($params['pageSize']) ? 15 : $params['pageSize']; $pageSize = empty($params['pageSize']) ? 15 : $params['pageSize'];
$activityModel = new CActivity();
$conditions = []; $conditions = [];
// if (!empty($params["title"])) { //计入月份
// $conditions["title"] = array("like", "%" . trim($params['title']) . "%"); if (!empty($params["setting_date"])) {
// } $conditions["setting_date"] = $params["setting_date"];
}
// if (!empty($params["id"])) { // if (!empty($params["id"])) {
// $conditions["id"] = $params['id']; // $conditions["id"] = $params['id'];
// } // }
$field = 'a.id,a.cost_id,b.setting_date,a.create_time,b.operator_name, $field = 'a.id,a.cost_id,b.setting_date,a.create_time,b.operator_name,
'; a.type,a.fee_item,a.purpose,b.store_id,a.assume_fee';
$list = $this->storeCostExt->getStoreCostExt($field, $conditions, $pageNo, $pageSize); $list = $this->storeCostExt->getStoreCostExt($field, $conditions, $pageNo, $pageSize);
$count = $this->storeCostExt->getStoreCostExtTotal($field, $conditions); $count = $this->storeCostExt->getStoreCostExtTotal($field, $conditions);
$result["list"] = $list; $result["list"] = $list;
$result["total"] = $count; $result["total"] = $count;
return $this->response("200", "success", $result); return $this->response("200", "success", $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