GroupsRelationMapper.java 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.UserRecommendGoodsFrontView;
  11. import org.apache.ibatis.annotations.Param;
  12. import org.apache.ibatis.annotations.Update;
  13. import java.util.Date;
  14. import java.util.List;
  15. /**
  16. * @author chan
  17. * @date 2022/9/27 11:10 AM
  18. */
  19. public interface GroupsRelationMapper extends BaseMapper<GroupsRelation> {
  20. List<Long> getAccountIdsByUserIdOrNickNameOrSubmitAccount(@Param("userId") Long userId, @Param("nickName") String nickName, @Param("submitAccount") String submitAccount);
  21. Integer updateExpiryTime(@Param("entity") GroupsRelation relation, @Param("expireTime") Date expireTime);
  22. Long getGroupTripsSkuIdByRelationId(Long relationId);
  23. @Update("update groups_relation set customer_service = null where id = #{id}")
  24. void updateCustomerService(Long id);
  25. Long selectSimilarExpiredRelation(@Param("skuId") Long skuId, @Param("minExpiryTime") DateTime minExpiryTime, @Param("maxNum") Integer maxNum);
  26. List<GroupsRelationView> selectRelationByGoodsId(@Param("goodsId") Long goodsId, @Param("userId") Long userId, @Param("yhsId") Long yhsId);
  27. GroupsRelationView getGroupRelationViewByUserIdAndRelationId(@Param("userId") Long userId, @Param("relationId") Long relationId);
  28. String getBindPhoneByUserId(Long userId);
  29. Integer selectViewPwdCount(Long groupsId);
  30. GroupsRelation selectRandomOneRelationByGroupsId(Long groupsId);
  31. List<GroupsRelation> selectExpiredRelationByCondition(@Param("now") DateTime now, @Param("list") List<Long> filterSkuIds);
  32. GroupsRelation selectOutsideRelationByGroupsId(@Param("groupsId") Long groupsId, @Param("relationNum") Integer relationNum);
  33. List<GroupsRelation> selectExpiredChatGPTRelation(@Param("nextBeginDay") DateTime nextBeginDay, @Param("list") List<Long> gptSkuIds);
  34. List<GroupsRelationUserView> getUserRelationUserViews(@Param("groupsId") Long groupsId, @Param("relationId") Long relationId, @Param("userId") Long userId, @Param("status") List<GroupsRelation.Status> status);
  35. List<Long> getTicketGoodsId(@Param("list") List<Long> userIds, @Param("status") List<String> status);
  36. Page<UserRecommendGoodsFrontView> getRecommendGoodsViews(@Param("page") Page<UserRecommendGoodsFrontView> page, @Param("list") List<Long> filter_goods_id, @Param("isPayNf") Boolean isPayNf);
  37. 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);
  38. Integer selectAvailableRelation(@Param("skuId") Long skuId, @Param("skuNum") Integer skuNum);
  39. Integer selectSpecialGroupsRelationAvailable(@Param("skuId") Long skuId, @Param("maxNum") Integer maxNum, @Param("skuNum") Integer skuNum, @Param("extractNum") Integer extractNum, @Param("tenExpiry") DateTime tenExpiry);
  40. Integer selectNumWaitingGroups(Long skuId);
  41. Integer selectLimitAvailableNum(@Param("skuId") Long skuId, @Param("maxNum") Integer maxNum);
  42. GroupsRelationBackView getGroupRelationAccountView(Long relationId);
  43. PhoneCode getAreaPhoneByUserId(Long userId);
  44. }