package com.stylefeng.guns.modular.smallLogistics.server;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.smallLogistics.model.OrderLogistics;
|
import com.stylefeng.guns.modular.system.model.Region;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
import org.apache.ibatis.annotations.Param;
|
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IOrderLogisticsService extends IService<OrderLogistics> {
|
|
|
/**
|
* 根据起点和终点坐标判断是不是同一个市内
|
* @param startLonLat
|
* @param endAddress
|
* @return
|
*/
|
ResultUtil judgingTheCity(String startLonLat, String endAddress) throws Exception;
|
|
|
/**
|
* 获取小件物流的单价数据
|
* @param type
|
* @param startLonLat
|
* @param endAddress
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil queryLogisticsUnitPrice(Integer type, String startLonLat, String endAddress, Integer uid) throws Exception;
|
|
|
/**
|
* 获取支付金额
|
* @param type
|
* @param startLonLat
|
* @param endAddress
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil queryPayMoney(Integer number, Integer type, String startLonLat, String endAddress) throws Exception;
|
|
|
/**
|
* 小件物流下单操作
|
* @param type
|
* @param cargoType
|
* @param cargoNumber
|
* @param remark
|
* @param placementLon
|
* @param placementLat
|
* @param startLon
|
* @param startLat
|
* @param startAddress
|
* @param recipient
|
* @param recipientPhone
|
* @param endAddress
|
* @param travelTime
|
* @param orderSource
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil smallLogistics(Integer type, Integer cargoType, Integer cargoNumber, String remark, String placementLon, String placementLat, String startLon, String startLat, String startAddress,
|
String recipient, String recipientPhone, String endAddress, Integer urgent, Double tipMoney, Date travelTime, Integer orderSource, Integer uid) throws Exception;
|
|
|
|
|
/**
|
* 订单完成支付订单操作
|
* @param payType
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil payLogisticsOrder(Integer payType, Integer orderId, Integer type)throws Exception;
|
|
|
/**
|
* 订单补差价支付操作
|
* @param payType
|
* @param orderId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil payLogisticsOrder_(Integer payType, Integer orderId, Integer type)throws Exception;
|
|
|
|
/**
|
* 支付完成后的订单处理
|
* @param id 订单=id
|
* @param order_id 工行支付单号
|
* @param type 1=微信,2=支付宝
|
* @throws Exception
|
*/
|
void payOrderLogisticsCallback(Integer id, String order_id, Integer type) throws Exception;
|
|
|
|
/**
|
* 差价支付完成后的回调处理
|
* @param id 订单=id
|
* @param order_id 工行支付单号
|
* @param type 1=微信,2=支付宝
|
* @throws Exception
|
*/
|
void payOrderLogisticsSpreadCallback(Integer id, String order_id, Integer type) throws Exception;
|
|
|
|
/**
|
* 获取首页订单数量
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
int queryLogisticsNumber(Integer uid) throws Exception;
|
|
|
|
/**
|
* 获取用户的订单列表
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryMyOrderList(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
|
/**
|
* 获取历史消费记录
|
* @param uid
|
* @return
|
*/
|
List<Map<String, Object>> queryMyTravelRecord(Integer uid);
|
|
|
|
/**
|
* 获取用户端发票页面中的订单列表数据
|
* @param type 开票状态(1=未开票,2=已开票)
|
* @param startTime 订单开始时间
|
* @param endTime 订单结束时间
|
* @param startMoney 订单金额范围
|
* @param endMoney
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryInvoiceOrder(Integer type, Date startTime, Date endTime, Double startMoney,
|
Double endMoney, Integer uid, Integer orderType) throws Exception;
|
|
|
|
/**
|
* 添加取消
|
* @param id
|
* @param reason
|
* @param remark
|
* @param uid
|
* @throws Exception
|
*/
|
ResultUtil addCancle(Integer id, String reason, String remark, Integer uid) throws Exception;
|
|
|
/**
|
* 获取行政区域数据
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryRegion() throws Exception;
|
|
|
/**
|
* 获取行政区域联动数据
|
* @param parentId
|
* @return
|
* @throws Exception
|
*/
|
List<Region> queryRegions(Integer parentId) throws Exception;
|
|
|
/**
|
* 获取用户余额和可用优惠券数量
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryBalance(Integer orderId, Integer uid) throws Exception;
|
}
|