GroupsRelationMapper.java 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. package com.cyksj.mapper;
  2. import cn.hutool.core.date.DateTime;
  3. import com.baomidou.mybatisplus.core.mapper.BaseMapper;
  4. import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
  5. import com.cyksj.model.entity.GroupsRelation;
  6. import com.cyksj.model.entity.PhoneCode;
  7. import com.cyksj.model.manage.views.GroupsRelationBackView;
  8. import com.cyksj.model.manage.views.GroupsRelationView;
  9. import com.cyksj.model.views.GroupsRelationUserView;
  10. import com.cyksj.model.views.RenewalView;
  11. import com.cyksj.model.views.UserRecommendGoodsFrontView;
  12. import org.apache.ibatis.annotations.Param;
  13. import org.apache.ibatis.annotations.Update;
  14. import java.util.Date;
  15. import java.util.List;
  16. /**
  17. * @author chan
  18. * @date 2022/9/27 11:10 AM
  19. */
  20. public interface GroupsRelationMapper extends BaseMapper<GroupsRelation> {
  21. List<Long> getAccountIdsByUserIdOrNickNameOrSubmitAccount(@Param("userId") Long userId, @Param("nickName") String nickName, @Param("submitAccount") String submitAccount);
  22. Integer updateExpiryTime(@Param("entity") GroupsRelation relation, @Param("expireTime") Date expireTime);
  23. Long getGroupTripsSkuIdByRelationId(Long relationId);
  24. @Update("update groups_relation set customer_service = null where id = #{id}")
  25. void updateCustomerService(Long id);
  26. Long selectSimilarExpiredRelation(@Param("skuId") Long skuId, @Param("minExpiryTime") DateTime minExpiryTime, @Param("maxNum") Integer maxNum, @Param("ip") String ip);
  27. List<GroupsRelationView> selectRelationByGoodsId(@Param("goodsId") Long goodsId, @Param("userId") Long userId, @Param("yhsId") Long yhsId);
  28. GroupsRelationView getGroupRelationViewByUserIdAndRelationId(@Param("userId") Long userId, @Param("relationId") Long relationId);
  29. String getBindPhoneByUserId(Long userId);
  30. Integer selectViewPwdCount(Long groupsId);
  31. GroupsRelation selectRandomOneRelationByGroupsId(Long groupsId);
  32. List<GroupsRelation> selectExpiredRelationByCondition(@Param("now") DateTime now, @Param("list") List<Long> filterSkuIds);
  33. GroupsRelation selectOutsideRelationByGroupsId(@Param("groupsId") Long groupsId, @Param("relationNum") Integer relationNum);
  34. List<GroupsRelation> selectExpiredChatGPTRelation(@Param("nextBeginDay") DateTime nextBeginDay, @Param("list") List<Long> gptSkuIds);
  35. List<GroupsRelationUserView> getUserRelationUserViews(@Param("groupsId") Long groupsId, @Param("relationId") Long relationId, @Param("userId") Long userId, @Param("status") List<GroupsRelation.Status> status);
  36. List<Long> getTicketGoodsId(@Param("list") List<Long> userIds, @Param("status") List<String> status);
  37. Page<UserRecommendGoodsFrontView> getRecommendGoodsViews(@Param("page") Page<UserRecommendGoodsFrontView> page, @Param("list") List<Long> filter_goods_id, @Param("isPayNf") Boolean isPayNf, @Param("filterCourseGoods") Boolean filterCourseGoods);
  38. Long getOutSideGroupsTripsRelationByGoodsId(@Param("skuId") Long skuId, @Param("beginOfDay") DateTime beginOfDay, @Param("extraNum") Integer extraNum, @Param("userId") Long userId, @Param("skuNum") Integer skuNum, @Param("maxNum") Integer maxNum);
  39. Integer selectAvailableRelation(@Param("skuId") Long skuId, @Param("skuNum") Integer skuNum);
  40. Integer selectSpecialGroupsRelationAvailable(@Param("skuId") Long skuId, @Param("maxNum") Integer maxNum, @Param("skuNum") Integer skuNum, @Param("extractNum") Integer extractNum, @Param("tenExpiry") DateTime tenExpiry);
  41. Integer selectNumWaitingGroups(Long skuId);
  42. Integer selectLimitAvailableNum(@Param("skuId") Long skuId, @Param("maxNum") Integer maxNum);
  43. GroupsRelationBackView getGroupRelationAccountView(Long relationId);
  44. PhoneCode getAreaPhoneByUserId(Long userId);
  45. List<RenewalView> getUserHasPayGoods(@Param("list") List<Long> userIds, @Param("now") DateTime now);
  46. Long getExperienceTicket(@Param("userId") Long userId, @Param("skuId") Long skuId);
  47. Long selectGoodsDonQaByGoodsId(Long goodsId);
  48. GroupsRelation selectRelationByAccountAndNum(@Param("account") String account, @Param("password") String password, @Param("goodsId") Long goodsId, @Param("num") Integer num);
  49. List<GroupsRelation> selectExtraRelation(@Param("userId") Long userId, @Param("skuId") Long skuId, @Param("relationId") Long relationId);
  50. }