| | |
| | | values.put("newDate",new Date()); |
| | | values.put("status",UserClubMember.STATUS_NORMAL); |
| | | sqlSentence.sqlSentence("SELECT * FROM user_club_member WHERE isDel = 0 AND status = #{m.status} AND type = #{m.type} AND userId = #{m.userId}" + |
| | | " AND (durationType = 0 OR (durationType = 1 AND startTime >= #{m.newDate} AND #{m.newDate} <= endTime)) ORDER BY durationType ASC,endTime DESC LIMIT 1",values); |
| | | " AND (durationType = 0 OR (durationType = 1 AND #{m.newDate} >= startTime AND #{m.newDate} <= endTime)) ORDER BY durationType ASC,endTime DESC LIMIT 1",values); |
| | | UserClubMember userClubMember = commonService.selectOne(UserClubMemberMapper.class,sqlSentence); |
| | | |
| | | //没有等级就默认潜客 |