| | |
| | | package com.taoke.autopay.service; |
| | | |
| | | import com.taoke.autopay.dao.KeyOrderMapper; |
| | | import com.taoke.autopay.dto.ChannelOrderStatistic; |
| | | import com.taoke.autopay.dto.DYOrderDto; |
| | | import com.taoke.autopay.entity.KeyOrder; |
| | | import com.taoke.autopay.exception.KeyOrderException; |
| | |
| | | **/ |
| | | public KeyOrder selectById(String id); |
| | | |
| | | public KeyOrder selectByIdForUpdate(String id); |
| | | |
| | | /** |
| | | * @return void |
| | | * @author hxh |
| | |
| | | * @date 19:19 2024/6/14 |
| | | * @param: key |
| | | **/ |
| | | public KeyOrder addKeyOrder(SubmitKeyInfo keyInfo, Long uid, String day) throws KeyOrderException, WxOrderCountException; |
| | | public KeyOrder addKeyOrder(SubmitKeyInfo keyInfo, Long uid, String day,Integer orderType, DYOrderDto orderDto) throws KeyOrderException, WxOrderCountException; |
| | | |
| | | /** |
| | | * @return void |
| | |
| | | * @param: day |
| | | * @return void |
| | | **/ |
| | | public void paySuccess(String id, String stateDesc,String day) throws WxOrderCountException ; |
| | | public void paySuccess(String id, String stateDesc,String day,String payMerchant) throws WxOrderCountException ; |
| | | |
| | | |
| | | /** |
| | |
| | | |
| | | public long count(KeyOrderMapper.DaoQuery query); |
| | | |
| | | public List<KeyOrder> listWithUser(KeyOrderMapper.DaoQuery query); |
| | | |
| | | public long countWithUser(KeyOrderMapper.DaoQuery query); |
| | | |
| | | public ChannelOrderStatistic statisticWithUser(KeyOrderMapper.DaoQuery query); |
| | | |
| | | public List<ChannelOrderStatistic> statisticChannelOrders(Long agentId,Date startTime,Date endTime); |
| | | |
| | | |
| | | /** |
| | | * @return java.lang.Long |
| | | * @author hxh |
| | | * @description 获取可用于分配的设备ID信息 |
| | | * @date 16:41 2024/6/17 |
| | | **/ |
| | | public Long getCanDistributeUid(); |
| | | public Long getCanDistributeUid(int maxQueueSize); |
| | | |
| | | /** |
| | | * @return java.util.List<com.taoke.autopay.entity.KeyOrder> |
| | |
| | | * @param: money |
| | | * @return void |
| | | **/ |
| | | public DYOrderDto verifyKey(String orderNoDesc, String orderStatus, String money) throws KeyVerifyException; |
| | | public DYOrderDto verifyKey(String orderNoDesc, String orderStatus, String money, Long uid, String keyId) throws KeyVerifyException; |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 移除分配的设备 |
| | | * @date 21:46 2024/7/26 |
| | | * @param: id |
| | | * @return void |
| | | **/ |
| | | public void removeDistributedClient(String id); |
| | | |
| | | /** |
| | | * 代理ID列表 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | public List<Long> listAgentId(KeyOrderMapper.DaoQuery query); |
| | | |
| | | |
| | | /** |
| | | * 代理ID数量 |
| | | * @param query |
| | | * @return |
| | | */ |
| | | public long countAgentId(KeyOrderMapper.DaoQuery query); |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 统计用户还没处理的订单数量 |
| | | * @date 18:26 2025/2/7 |
| | | * @param: uid |
| | | * @param: minCreateTime |
| | | * @return long |
| | | **/ |
| | | public long countUserNotDoOrder(Long uid, Date minCreateTime); |
| | | |
| | | /** |
| | | * 拒绝支付 |
| | | * @param id |
| | | * @param rejectMsg |
| | | */ |
| | | public void rejectPay(String id,String rejectMsg); |
| | | |
| | | } |