| | |
| | | and su.type = 1 and su.app_id = #{areaCode} |
| | | </select> |
| | | |
| | | <select id="selectDailyAdd" resultType="com.panzhihua.service_user.model.dtos.UsersStatisticsDTO"> |
| | | SELECT DATE_FORMAT( u.create_at, '%Y-%m-%d' ) as specificDate,count( u.user_id ) total FROM sys_user u |
| | | LEFT JOIN com_act t1 ON u.community_id = t1.community_id WHERE u.type = 1 AND u.app_id = #{appId} AND u.create_at > #{createAt} GROUP BY specificDate; |
| | | </select> |
| | | |
| | | <select id="selectActive" resultType="com.panzhihua.service_user.model.dtos.UsersStatisticsDTO"> |
| | | SELECT DATE_FORMAT( u.last_login_time, '%Y-%m-%d' ) as specificDate,count( u.user_id ) total FROM sys_user u |
| | | LEFT JOIN com_act t1 ON u.community_id = t1.community_id WHERE u.type = 1 AND u.app_id = #{appId} AND u.last_login_time > #{lastLoginTime} GROUP BY specificDate; |
| | | </select> |
| | | |
| | | <update id="gridMemberEditStatus"> |
| | | update sys_user set status = #{gridMemberEditDTO.status} where user_id in |
| | | <foreach item="item" collection="gridMemberEditDTO.ids" separator="," open="(" close=")" index=""> |