| | |
| | | package com.taoke.autopay.service; |
| | | |
| | | import com.taoke.autopay.dao.KeyOrderMapper; |
| | | import com.taoke.autopay.dto.DYOrderDto; |
| | | import com.taoke.autopay.entity.KeyOrder; |
| | | import com.taoke.autopay.exception.KeyOrderException; |
| | | import com.taoke.autopay.exception.KeyVerifyException; |
| | | import com.taoke.autopay.exception.WxOrderCountException; |
| | | import com.taoke.autopay.vo.SubmitKeyInfo; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | /** |
| | |
| | | public interface KeyOrderService { |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @return com.taoke.autopay.entity.KeyOrder |
| | | * @author hxh |
| | | * @description 根据ID查询 |
| | | * @date 19:39 2024/6/14 |
| | | * @param: id |
| | | * @return com.taoke.autopay.entity.KeyOrder |
| | | **/ |
| | | public KeyOrder selectById(String id); |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @return void |
| | | * @author hxh |
| | | * @description 添加订单 |
| | | * @date 19:19 2024/6/14 |
| | | * @param: key |
| | | * @return void |
| | | * @param: key |
| | | **/ |
| | | public KeyOrder addKeyOrder(String key) throws KeyOrderException; |
| | | public KeyOrder addKeyOrder(SubmitKeyInfo keyInfo, Long uid, String day) throws KeyOrderException, WxOrderCountException; |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @return void |
| | | * @author hxh |
| | | * @description 更新订单信息 |
| | | * @date 19:19 2024/6/14 |
| | | * @param: keyOrder |
| | | * @return void |
| | | **/ |
| | | public void update(KeyOrder keyOrder); |
| | | |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 支付成功 |
| | | * @date 0:11 2024/6/29 |
| | | * @param: id |
| | | * @param: stateDesc |
| | | * @param: day |
| | | * @return void |
| | | **/ |
| | | public void paySuccess(String id, String stateDesc,String day) throws WxOrderCountException ; |
| | | |
| | | |
| | | /** |
| | | * @return void |
| | | * @author hxh |
| | | * @description 设置订单信息 |
| | | * @date 19:41 2024/6/14 |
| | | * @param: id |
| | | * @param: orderNo |
| | | * @param: orderState |
| | | * @return void |
| | | **/ |
| | | public void setOrderInfo(String id,String orderNo, int orderState) throws KeyOrderException; |
| | | public void setOrderInfo(String id, String orderNo, int orderState) throws KeyOrderException; |
| | | |
| | | public List<KeyOrder> list(KeyOrderMapper.DaoQuery query); |
| | | |
| | | public long count(KeyOrderMapper.DaoQuery query); |
| | | |
| | | /** |
| | | * @return java.lang.Long |
| | | * @author hxh |
| | | * @description 获取可用于分配的设备ID信息 |
| | | * @date 16:41 2024/6/17 |
| | | **/ |
| | | public Long getCanDistributeUid(); |
| | | |
| | | public List<KeyOrder> listNotDistributed(int page,int pageSize); |
| | | /** |
| | | * @return java.util.List<com.taoke.autopay.entity.KeyOrder> |
| | | * @author hxh |
| | | * @description 查询还没分配设备ID的数据 |
| | | * @date 16:40 2024/6/17 |
| | | * @param: page |
| | | * @param: pageSize |
| | | **/ |
| | | public List<KeyOrder> listNotDistributed(int page, int pageSize); |
| | | |
| | | /** |
| | | * @return void |
| | | * @author hxh |
| | | * @description 删除所有数据 |
| | | * @date 16:40 2024/6/17 |
| | | * @param: maxCreateTime |
| | | **/ |
| | | public void deleteAll(Date maxCreateTime); |
| | | |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 验证口令 |
| | | * @date 20:38 2024/7/23 |
| | | * @param: id |
| | | * @param: orderNoDesc |
| | | * @param: orderStatus |
| | | * @param: money |
| | | * @return void |
| | | **/ |
| | | public DYOrderDto verifyKey(String orderNoDesc, String orderStatus, String money) throws KeyVerifyException; |
| | | |
| | | /** |
| | | * @author hxh |
| | | * @description 移除分配的设备 |
| | | * @date 21:46 2024/7/26 |
| | | * @param: id |
| | | * @return void |
| | | **/ |
| | | public void removeDistributedClient(String id); |
| | | |
| | | } |