package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.system.model.Reassign;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
|
import java.text.ParseException;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IReassignService extends IService<Reassign> {
|
|
|
/**
|
* 提交改派申请
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil saveData(Reassign reassign, Integer uid, Integer type, Integer driverId) throws Exception;
|
|
|
|
|
ResultUtil saveDataCancel(Reassign reassign, Integer uid, Integer type) throws Exception;
|
|
|
|
/**
|
* 提交改派申请
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil saveData_(Reassign reassign, String orderIds, Integer uid, Integer type) throws Exception;
|
|
|
/**
|
* 获取列表数据
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryList(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 改派完成支付后的操作
|
* @param id 改派单id
|
* @param order_id 工行支付订单
|
* @param type 1=微信,2=支付宝
|
* @throws Exception
|
*/
|
void payReassign(String id, String order_id, Integer type) throws Exception;
|
|
/**
|
* 获取司机列表
|
* @param orderId
|
* @return
|
*/
|
List<Map<String, Object>> queryDriver(String orderId) throws Exception;
|
|
/**
|
* 司机响应改派申请
|
* @param reassignId 改派ID
|
* @param driverId 司机ID
|
* @param responseType 响应类型(1=同意,2=拒绝)
|
* @return
|
*/
|
ResultUtil respondReassign(Integer reassignId, Integer driverId, Integer responseType);
|
|
/**
|
* 批量响应改派申请
|
* @param reassignIds 改派ID列表(逗号分隔)
|
* @param driverId 司机ID
|
* @param responseType 响应类型(1=同意,2=拒绝)
|
* @return
|
*/
|
ResultUtil respondReassignBatch(String reassignIds, Integer driverId, Integer responseType);
|
|
/**
|
* 查询待确认的改派申请列表
|
* @param driverId 司机ID
|
* @return
|
*/
|
List<Map<String, Object>> queryPendingReassigns(Integer driverId);
|
|
/**
|
* 改派确认超时后恢复订单状态
|
*/
|
void timeoutReassign(Reassign reassign) throws Exception;
|
}
|