正在显示
1 个修改的文件
包含
5 行增加
和
4 行删除
@@ -859,7 +859,8 @@ class User extends Api | @@ -859,7 +859,8 @@ class User extends Api | ||
859 | $UserId = $this->is_token($this->request->header()); | 859 | $UserId = $this->is_token($this->request->header()); |
860 | $params = $this->request->param(); | 860 | $params = $this->request->param(); |
861 | $TimeArray = $this->mFristAndLast($params['Y'], $params['M']); | 861 | $TimeArray = $this->mFristAndLast($params['Y'], $params['M']); |
862 | -// $Map['g.createtime'] = ['between', [$TimeArray['start'], $TimeArray['end']]]; | 862 | + $Map['g.createtime'] = ['between', [$TimeArray['start'], $TimeArray['end']]]; |
863 | + $Map3['createtime'] = ['between', [$TimeArray['start'], $TimeArray['end']]]; | ||
863 | $map2 = []; | 864 | $map2 = []; |
864 | if ($params['type'] != 0) { | 865 | if ($params['type'] != 0) { |
865 | $map2['u.level'] = ['EQ', $params['type']]; | 866 | $map2['u.level'] = ['EQ', $params['type']]; |
@@ -867,11 +868,11 @@ class User extends Api | @@ -867,11 +868,11 @@ class User extends Api | ||
867 | $Array = Db::name('group') | 868 | $Array = Db::name('group') |
868 | ->alias('g') | 869 | ->alias('g') |
869 | ->where('g.fuser_id', $UserId) | 870 | ->where('g.fuser_id', $UserId) |
870 | -// ->where($Map) | 871 | + ->where($Map) |
871 | ->join('user u', 'u.id=g.user_id') | 872 | ->join('user u', 'u.id=g.user_id') |
872 | ->where($map2) | 873 | ->where($map2) |
873 | ->order('id desc') | 874 | ->order('id desc') |
874 | - ->field('g.id,g.user_id,u.avatar,u.nickname,u.level,u.createtime') | 875 | + ->field('g.id,g.user_id,u.avatar,u.nickname,u.level,g.createtime') |
875 | ->select(); | 876 | ->select(); |
876 | if (empty($Array)) { | 877 | if (empty($Array)) { |
877 | $data = [ | 878 | $data = [ |
@@ -887,7 +888,7 @@ class User extends Api | @@ -887,7 +888,7 @@ class User extends Api | ||
887 | $OldList[$k]['Nickname'] = $v['nickname']; | 888 | $OldList[$k]['Nickname'] = $v['nickname']; |
888 | $OldList[$k]['Level'] = $v['level']; | 889 | $OldList[$k]['Level'] = $v['level']; |
889 | $OldList[$k]['Createtime'] = date('Y-m-d', $v['createtime']); | 890 | $OldList[$k]['Createtime'] = date('Y-m-d', $v['createtime']); |
890 | - $CountNum = Db::name('money')->where($Map)->where('touser_id', $v['user_id'])->select(); | 891 | + $CountNum = Db::name('money')->where($Map3)->where('touser_id', $v['user_id'])->select(); |
891 | foreach ($CountNum as $key => $value) { | 892 | foreach ($CountNum as $key => $value) { |
892 | $Count[] = $value['money']; | 893 | $Count[] = $value['money']; |
893 | } | 894 | } |
-
请 注册 或 登录 后发表评论