admin
2025-02-25 30d8e227e8d823b6c38c3b9c90ac2df03b63befe
fanli/src/main/java/com/yeshi/fanli/service/inter/order/dividents/TeamDividentsSourceOrderUserMapService.java
@@ -1,179 +1,193 @@
package com.yeshi.fanli.service.inter.order.dividents;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrderUserMap;
import com.yeshi.fanli.exception.ParamsException;
import com.yeshi.fanli.vo.order.TeamDividentsVO;
/**
 * 分红源订单与参与分红用户的对应关系
 * @author Administrator
 *
 */
public interface TeamDividentsSourceOrderUserMapService {
   public TeamDividentsSourceOrderUserMap selectByPrimaryKeyForUpdate(Long id);
   /**
    * 发送到用户分红表
    * @Title: send
    * @Description:
    * @param id
    * void 返回类型
    * @throws
    */
   public void send(Long id);
   /**
    * 添加映射
    * @Title: addDividentsSourceOrderUserMap
    * @Description:
    * @param map
    * @throws ParamsException
    * void 返回类型
    * @throws
    */
   public void addDividentsSourceOrderUserMap(TeamDividentsSourceOrderUserMap map) throws ParamsException;
   /**
    * 获取可以发送的列表
    * @Title: listCanSend
    * @Description:
    * @param sourceUid
    * @param maxPreSendTime
    * @param page
    * @param pageSize
    * @return
    * List<TeamDividentsSourceOrderUserMap> 返回类型
    * @throws
    */
   public List<TeamDividentsSourceOrderUserMap> listCanSend(Long sourceUid, Date maxPreSendTime, int page,
         int pageSize);
   /**
    * 获取可以发送的列表数量
    * @Title: countCanSend
    * @Description:
    * @param sourceUid
    * @param maxPreSendTime
    * @return
    * long 返回类型
    * @throws
    */
   public long countCanSend(Long sourceUid, Date maxPreSendTime);
   /**
    * 根据源订单主键查询
    * @Title: countBySourceOrderId
    * @Description:
    * @param sourceOrderId
    * @return
    * long 返回类型
    * @throws
    */
   public long countBySourceOrderId(Long sourceOrderId);
   /**
    * 根据源订单主键查询
    * @Title: listBySourceOrderId
    * @Description:
    * @param sourceOrderId
    * @return
    * List<TeamDividentsSourceOrderUserMap> 返回类型
    * @throws
    */
   public List<TeamDividentsSourceOrderUserMap> listBySourceOrderId(Long sourceOrderId);
   /**
    * 获取能够分红的订单源用户列表
    * @Title: listCanSendSourceUidByPreSendTime
    * @Description:
    * @param preSendTime
    * @param page
    * @param count
    * @return
    * List<Long> 返回类型
    * @throws
    */
   public List<Long> listCanSendSourceUidByPreSendTime(Date preSendTime, int page, int count);
   /**
    * 获取能够分红的订单源用户ID数量
    * @Title: countCanSendUidByPreSendTime
    * @Description:
    * @param preSendTime
    * @return
    * Long 返回类型
    * @throws
    */
   public Long countCanSendSourceUidByPreSendTime(Date preSendTime);
   /**
    * 订单失效
    * @Title: invalidBySourceOrderId
    * @Description:
    * @param sourceOrderId
    * void 返回类型
    * @throws
    */
   public void invalidBySourceOrderId(Long sourceOrderId);
   /**
    * 用户对应的订单失效
    * @Title: invalidOrderBySourceUid
    * @Description:
    * @param sourceUid
    * void 返回类型
    * @throws
    */
   public void invalidOrderBySourceUid(Long sourceUid,String beiZhu);
   /**
    * 订单结算
    * @Title: orderSettle
    * @Description:
    * @param sourceOrderId
    * @param income
    * void 返回类型
    * @throws
    */
   public void orderSettle(Long sourceOrderId, Date preSendTime, BigDecimal income);
   /**
    * 订单变化更新资金
    * @Title: updateMoney
    * @Description:
    * @param sourceOrderId
    * @param income
    * void 返回类型
    * @throws
    */
   public void updateMoney(Long sourceOrderId, BigDecimal income);
   /**
    * 查询分红信息
    * @param sourceOrderId
    * @param targetUid
    * @return
    */
   public List<TeamDividentsSourceOrderUserMap> listBySourceOrderIdAndTargetUid(Long sourceOrderId, Long targetUid);
   /**
    * 统计每个订单补贴-分红
    * @param start
    * @param count
    * @param targetUid
    * @param minTime
    * @param maxTime
    * @return
    */
   public List<TeamDividentsVO> listByDateAndTargetUid(long start, int count, Long targetUid, Date minTime, Date maxTime);
   public long countByDateAndTargetUid(Long targetUid, Date minTime, Date maxTime);
   public TeamDividentsVO sumByDateAndTargetUid(Long targetUid, Date minTime, Date maxTime);
}
package com.yeshi.fanli.service.inter.order.dividents;
import java.math.BigDecimal;
import java.util.Date;
import java.util.List;
import com.yeshi.fanli.entity.order.dividents.TeamDividentsSourceOrderUserMap;
import com.yeshi.fanli.exception.ParamsException;
import com.yeshi.fanli.vo.order.TeamDividentsVO;
import com.yeshi.fanli.vo.order.TeamOrderVO;
/**
 * 分红源订单与参与分红用户的对应关系
 * @author Administrator
 *
 */
public interface TeamDividentsSourceOrderUserMapService {
   public TeamDividentsSourceOrderUserMap selectByPrimaryKeyForUpdate(Long id);
   /**
    * 发送到用户分红表
    * @Title: send
    * @Description:
    * @param id
    * void 返回类型
    * @throws
    */
   public void send(Long id);
   /**
    * 添加映射
    * @Title: addDividentsSourceOrderUserMap
    * @Description:
    * @param map
    * @throws ParamsException
    * void 返回类型
    * @throws
    */
   public void addDividentsSourceOrderUserMap(TeamDividentsSourceOrderUserMap map) throws ParamsException;
   /**
    * 获取可以发送的列表
    * @Title: listCanSend
    * @Description:
    * @param sourceUid
    * @param maxPreSendTime
    * @param page
    * @param pageSize
    * @return
    * List<TeamDividentsSourceOrderUserMap> 返回类型
    * @throws
    */
   public List<TeamDividentsSourceOrderUserMap> listCanSend(Long sourceUid, Date maxPreSendTime, int page,
         int pageSize);
   /**
    * 获取可以发送的列表数量
    * @Title: countCanSend
    * @Description:
    * @param sourceUid
    * @param maxPreSendTime
    * @return
    * long 返回类型
    * @throws
    */
   public long countCanSend(Long sourceUid, Date maxPreSendTime);
   /**
    * 根据源订单主键查询
    * @Title: countBySourceOrderId
    * @Description:
    * @param sourceOrderId
    * @return
    * long 返回类型
    * @throws
    */
   public long countBySourceOrderId(Long sourceOrderId);
   /**
    * 根据源订单主键查询
    * @Title: listBySourceOrderId
    * @Description:
    * @param sourceOrderId
    * @return
    * List<TeamDividentsSourceOrderUserMap> 返回类型
    * @throws
    */
   public List<TeamDividentsSourceOrderUserMap> listBySourceOrderId(Long sourceOrderId);
   /**
    * 获取能够分红的订单源用户列表
    * @Title: listCanSendSourceUidByPreSendTime
    * @Description:
    * @param preSendTime
    * @param page
    * @param count
    * @return
    * List<Long> 返回类型
    * @throws
    */
   public List<Long> listCanSendSourceUidByPreSendTime(Date preSendTime, int page, int count);
   /**
    * 获取能够分红的订单源用户ID数量
    * @Title: countCanSendUidByPreSendTime
    * @Description:
    * @param preSendTime
    * @return
    * Long 返回类型
    * @throws
    */
   public Long countCanSendSourceUidByPreSendTime(Date preSendTime);
   /**
    * 订单失效
    * @Title: invalidBySourceOrderId
    * @Description:
    * @param sourceOrderId
    * void 返回类型
    * @throws
    */
   public void invalidBySourceOrderId(Long sourceOrderId);
   /**
    * 用户对应的订单失效
    * @Title: invalidOrderBySourceUid
    * @Description:
    * @param sourceUid
    * void 返回类型
    * @throws
    */
   public void invalidOrderBySourceUid(Long sourceUid,String beiZhu);
   /**
    * 订单结算
    * @Title: orderSettle
    * @Description:
    * @param sourceOrderId
    * @param income
    * void 返回类型
    * @throws
    */
   public void orderSettle(Long sourceOrderId, Date preSendTime, BigDecimal income);
   /**
    * 订单变化更新资金
    * @Title: updateMoney
    * @Description:
    * @param sourceOrderId
    * @param income
    * void 返回类型
    * @throws
    */
   public void updateMoney(Long sourceOrderId, BigDecimal income);
   /**
    * 查询分红信息
    * @param sourceOrderId
    * @param targetUid
    * @return
    */
   public List<TeamDividentsSourceOrderUserMap> listBySourceOrderIdAndTargetUid(Long sourceOrderId, Long targetUid);
   /**
    * 统计每个订单补贴-分红
    * @param start
    * @param count
    * @param targetUid
    * @param minTime
    * @param maxTime
    * @return
    */
   public List<TeamDividentsVO> listByDateAndTargetUid(long start, int count, Long targetUid, Date minTime, Date maxTime, String key);
   public long countByDateAndTargetUid(Long targetUid, Date minTime, Date maxTime, String key);
   public TeamDividentsVO sumByDateAndTargetUid(Long targetUid, Date minTime, Date maxTime, String key);
   /**
    * 根据uid 和订单号搜索
    * @param start
    * @param count
    * @param sourceUid
    * @param targetUid
    * @param key
    * @return
    */
   public List<TeamOrderVO> searchByOrderNoOrSourceUid(long start, int count, Long targetUid, String key);
   public long countSearchByOrderNoOrSourceUid(Long targetUid, String key);
}