admin
2019-08-26 d28bed1a1275131a5ca37f7da37961e2b518ac07
fanli/src/main/java/com/yeshi/fanli/dao/mybatis/ThreeSaleMapper.java
@@ -26,6 +26,23 @@
   int updateByPrimaryKey(ThreeSale record);
   int effectThreeSale(Long workerUid);
   /**
    * 删除失效
    * @param bossId
    * @param workerId
    * @return
    */
   int deleteExpireRecord(@Param("bossId")Long bossId, @Param("workerId")Long workerId);
   /**
    * 失效
    * @param bossId
    * @param workerId
    * @return
    */
   List<ThreeSale> getExpireRecord(@Param("bossId")Long bossId, @Param("workerId")Long workerId);
   /**
    * 查询一度队员集合
@@ -132,7 +149,8 @@
    * @param paramLong1
    * @return
    */
   List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid);
   List<ThreeSale> listFirstTeam(@Param("start") long start, @Param("count") int count,
         @Param("uid") Long uid, @Param("state") Integer state);
   /**
    * 统计一级队员
@@ -151,7 +169,8 @@
    * @param uid
    * @return
    */
   List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count, @Param("uid") Long uid);
   List<ThreeSale> listSecondTeam(@Param("start") long start, @Param("count") int count,
         @Param("uid") Long uid,@Param("state") Integer state);
   /**
    * 统计二级队员
@@ -204,5 +223,31 @@
    */
   ThreeSale getRelationshipByBossIdAndWorkerId(@Param("bossId") Long bossId, @Param("workerId") Long workerId);
   
   /**
    * 根据下级查询成功的邀请关系
    * @param workerId
    * @return
    */
   ThreeSale selectSuccessByWorkerId(Long workerId);
   /**
    * 根据邀请者ID查询未失效关系
    *
    * @param workerId
    * @return
    */
   ThreeSale getByWorkerId(Long workerId);
   /**
    * 查询时间段邀请成功人信息
    * @param bossId
    * @param minTime
    * @param maxTime
    * @return
    */
   List<ThreeSale> getSuccessByDate(@Param("bossId")Long bossId,@Param("minTime")Long minTime, @Param("maxTime")Long maxTime);
}