package com.stylefeng.guns.modular.system.service;
|
|
import com.baomidou.mybatisplus.service.IService;
|
import com.stylefeng.guns.modular.system.model.Driver;
|
import com.stylefeng.guns.modular.system.util.ResultUtil;
|
import com.stylefeng.guns.modular.system.warpper.*;
|
import org.apache.ibatis.annotations.Param;
|
|
import javax.servlet.http.HttpServletRequest;
|
import java.util.Date;
|
import java.util.List;
|
import java.util.Map;
|
|
public interface IDriverService extends IService<Driver> {
|
|
/**
|
* 获取短信验证码
|
* @param phone
|
* @return
|
*/
|
ResultUtil queryCaptcha(String phone, Integer type, Integer language) throws Exception;
|
|
|
/**
|
* 获取邮件验证码
|
* @param email
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil queryEmailCaptcha(String email, Integer language) throws Exception;
|
|
|
/**
|
* 验证短信验证码
|
* @param phone
|
* @param code
|
* @return
|
* @throws Exception
|
*/
|
boolean checkCaptcha(String email, String phone, String code) throws Exception;
|
|
|
/**
|
* 司机提交注册申请
|
* @throws Exception
|
*/
|
ResultUtil registeredDriver(String phoneOperator, String phone, String code, String password, Integer uid, Integer type, Integer userType, Integer language) throws Exception;
|
|
|
/**
|
* 司机注册
|
* @param phone
|
* @param code
|
* @param password
|
* @param uid
|
* @param uType
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<LoginWarpper> registeredDriver(String phoneOperator, String phone, String code, String password,Integer uid,Integer uType, Integer language) throws Exception;
|
|
|
/**
|
* 根据城市code获取是否需要网约车资格证
|
* @param code
|
* @return
|
* @throws Exception
|
*/
|
Integer queryNeedCertificate(String code) throws Exception;
|
|
|
/**
|
* 完善个人信息
|
* @param registeredWarpper
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil updateDriver(RegisteredWarpper registeredWarpper, Integer uid, Integer language) throws Exception;
|
|
|
|
/**
|
* 重置密码
|
* @param phone
|
* @param code
|
* @param password
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil resetPassword(String phone, String code, String password, Integer language) throws Exception;
|
|
|
/**
|
* 根据定位的城市行政编号获取分公司的客服电话
|
* @param code
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryPhone(Double lat, Double lnt) throws Exception;
|
|
|
/**
|
* 司机登录
|
* @param phone
|
* @param password
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil<LoginWarpper> driverLogin(String phone, String password, Integer language) throws Exception;
|
|
|
/**
|
* 获取首页统计数据
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryHomeData(Integer uid, Integer language) throws Exception;
|
|
|
/**
|
* 从redis中获取用户id
|
* @param request
|
* @return
|
* @throws Exception
|
*/
|
Integer getUserIdFormRedis(HttpServletRequest request) throws Exception;
|
|
|
/**
|
* 上下班操作
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil work(Integer uid, String type, Integer language) throws Exception;
|
|
|
|
/**
|
* 上下班操作
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil work2(Integer uid, String type, Integer language) throws Exception;
|
|
|
/**
|
* 获取首页统计数据
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryHomeNum(Integer uid, Integer language) throws Exception;
|
|
|
/**
|
* 获取司机的业务类型
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<BaseWarpper> queryMyBusiness(Integer uid, Integer language) throws Exception;
|
|
|
/**
|
* 获取个人中心详情
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryInfo(Integer language, Integer uid) throws Exception;
|
|
|
/**
|
* 修改手机号码
|
* @param phone
|
* @param code
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil updatePhone(String phoneOperator, String phone, String code, Integer uid, Integer language) throws Exception;
|
|
|
/**
|
* 修改语言设置
|
* @param language
|
* @param uid
|
* @throws Exception
|
*/
|
void editLanguage(Integer language, Integer uid) throws Exception;
|
|
|
/**
|
* 电话号码查询司机
|
* @param phone
|
* @return
|
* @throws Exception
|
*/
|
Driver queryByPhone(String phone) throws Exception;
|
|
|
/**
|
* 修改密码
|
* @param password
|
* @param uid
|
* @throws Exception
|
*/
|
void updatePassword(String password, Integer uid, Integer language) throws Exception;
|
|
|
/**
|
* 更换车辆
|
* @param carId
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil replaceCar(Integer carId, Integer uid, Integer language) throws Exception;
|
|
|
/**
|
* 获取客服电话
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
Map<String, Object> queryPhone(Integer uid) throws Exception;
|
|
|
/**
|
* 获取处罚历史数据
|
* @param pageNum
|
* @param size
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryPenalties(Integer language, Integer pageNum, Integer size, Integer uid) throws Exception;
|
|
|
/**
|
* 获取活动奖励列表
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryActivityIncome(Integer language, Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 获取历史总收入(业务)
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryTotalRevenue(Integer language, Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 获取当天有效的活动
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<ActivityWarpper> queryMyActivity(Integer uid, Date time, Integer language) throws Exception;
|
|
|
/**
|
* 获取历史活动
|
* @param uid
|
* @return
|
* @throws Exception
|
*/
|
List<Map<String, Object>> queryHistory(Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
|
/**
|
* 给所有司机添加当天有效的活动数据
|
* @throws Exception
|
*/
|
void addTodayActivity() throws Exception;
|
|
|
/**
|
* 每分钟执行的定时任务
|
* @throws Exception
|
*/
|
void taskMinute() throws Exception;
|
|
|
/**
|
* 使用工号登录
|
* @param jobNum
|
* @return
|
*/
|
ResultUtil loginByJobNumber(String jobNum, Integer language);
|
|
|
/**
|
* 获取上班中的司机
|
* @return
|
* @throws Exception
|
*/
|
List<Driver> queryWorkDriver() throws Exception;
|
|
|
/**
|
* 身份证号码登录
|
* @param identification
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil loginByIdentification(String identification, Integer language) throws Exception;
|
|
|
/**
|
* 出租车资格证号码登录
|
* @param taxiAptitudeCard
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil loginByTaxiAptitudeCard(String taxiAptitudeCard, Integer language) throws Exception;
|
|
|
/**
|
* 定时下班操作
|
* @throws Exception
|
*/
|
void taskOffWork() throws Exception;
|
|
|
/**
|
* 验证登录密码是否有效
|
* @param password
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil verificationPassword(String password, Integer driverId, Integer language) throws Exception;
|
|
|
/**
|
* 设置提现密码
|
* @param withdrawPassword
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil setWithdrawPassword(String withdrawPassword, Integer driverId, Integer language) throws Exception;
|
|
|
/**
|
* 验证提现密码是否有效
|
* @param withdrawPassword
|
* @param driverId
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil verificationWithdrawPassword(String withdrawPassword, Integer driverId, Integer language) throws Exception;
|
|
|
/**
|
* 退出登录
|
* @param id
|
* @return
|
* @throws Exception
|
*/
|
ResultUtil loginOut(Integer id) throws Exception;
|
|
/**
|
* 查询司机的邀请列表
|
* @author yxh
|
* @date 2021/3/27 10:18
|
* @param type
|
* @param uid
|
* @param pageNum
|
* @param size
|
* @return java.util.List<Map<String,Object>>
|
*/
|
List<Map<String,Object>> queryMyInviteList(Integer language, Integer type,Integer uid, Integer pageNum, Integer size) throws Exception;
|
|
/**
|
*
|
* @param type
|
* @return
|
*/
|
Integer getAppOpenInfo(@Param("type") Integer type);
|
|
|
/**
|
* 获取提现规则
|
* @return
|
*/
|
Integer getWithdrawalRule();
|
|
|
/**
|
* 获取司机在线时长
|
* @param driverId
|
* @param type 1=今日,2=本周,3=本月
|
* @return
|
*/
|
Integer getDriverOnlineTime(@Param("driverId") Integer driverId,@Param("type") Integer type);
|
|
/**
|
* 获取这周司机的收益
|
* @param driverId
|
* @return
|
*/
|
Double getThisWeekMoney(@Param("driverId") Integer driverId);
|
}
|