|
@@ -28,9 +28,9 @@ public interface UserOpenMapper extends BaseMapper<UserOpen> {
|
|
// @Select(
|
|
// @Select(
|
|
// "select user_id as userId, open_id as openId, nick_name as nickName from sys_user_open limit #{start}, #{count}"
|
|
// "select user_id as userId, open_id as openId, nick_name as nickName from sys_user_open limit #{start}, #{count}"
|
|
// )
|
|
// )
|
|
- @Select("select user_id as userId, open_id as openId, nick_name as nickName from sys_user_open suo \n" +
|
|
|
|
- "left join ms_report mr on mr.user_create=suo.user_id \n" +
|
|
|
|
- "where (mr.report_status<1 or mr.report_status is null) and (mr.report_date = curdate() or mr.report_date is null) limit #{start}, #{count}"
|
|
|
|
|
|
+ @Select("select user_id as userId, open_id as openId, nick_name as nickName from sys_user_open where user_id not in ( select user_id from ( select user_id from sys_user_open suo \n" +
|
|
|
|
+ "inner join ms_report mr on mr.user_create=suo.user_id and mr.report_status=1 and mr.report_date=curdate()) h)" +
|
|
|
|
+ "limit #{start}, #{count}"
|
|
)
|
|
)
|
|
List<UserOpen> getOpenUser(@Param("start") Long start, @Param("count") Long count);
|
|
List<UserOpen> getOpenUser(@Param("start") Long start, @Param("count") Long count);
|
|
|
|
|