|
|
@@ -54,10 +54,10 @@ class SupplyDemandLists extends BaseApiDataLists implements ListsSearchInterface
|
|
|
{
|
|
|
$where[] = ['status', '=', 2];
|
|
|
// $where[] = ['expiration_time', '>=', time()];
|
|
|
-// if (!empty($this->params['cate_id'])) {
|
|
|
-//
|
|
|
-// $where[] = ['cate_id', 'like', '%' . ',' .$this->params['cate_id'].',' . '%'];
|
|
|
-// }
|
|
|
+ if (!empty($this->params['flag'])) {
|
|
|
+ $where[] = ['user_id', '=', $this->userId];
|
|
|
+ }
|
|
|
+ outFileLog( $this->userId,'supplydemand','user_id');
|
|
|
//
|
|
|
// if (!empty($this->params['area_id'])) {
|
|
|
//
|
|
|
@@ -79,6 +79,8 @@ class SupplyDemandLists extends BaseApiDataLists implements ListsSearchInterface
|
|
|
*/
|
|
|
public function lists(): array
|
|
|
{
|
|
|
+
|
|
|
+
|
|
|
$orderRaw = 'id desc';
|
|
|
|
|
|
$field = 'id,user_id,title,type,cate_id,mobile,images,address,number,content,status,remark,create_time';
|