package com.stylefeng.guns.modular.system.service;
|
|
import com.alibaba.fastjson.JSONObject;
|
import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
import com.stylefeng.guns.modular.system.controller.resp.TDriverCommissionResp;
|
import com.stylefeng.guns.modular.system.controller.resp.TDriverResp;
|
import com.stylefeng.guns.modular.system.model.TDriver;
|
import com.baomidou.mybatisplus.service.IService;
|
import org.springframework.ui.Model;
|
|
import java.io.File;
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* <p>
|
* 司机基础信息 服务类
|
* </p>
|
*
|
* @author stylefeng
|
* @since 2023-02-20
|
*/
|
public interface ITDriverService extends IService<TDriver> {
|
|
/**
|
* 获取司机分页列表
|
* @param createTime
|
* @param phone
|
* @param status
|
* @return
|
*/
|
EntityWrapper<TDriver> getPageList(String createTime, String phone, Integer status);
|
|
/**
|
* 封装司机放回resp
|
* @param tDrivers
|
* @return
|
*/
|
List<TDriverResp> getTDriverResp(List<TDriver> tDrivers);
|
|
/**
|
* 跳转审核页面
|
* @param id
|
* @param model
|
*/
|
void auditPage(Integer id, Model model);
|
|
/**
|
* 聚合ocr识别
|
* @param file
|
* @return
|
*/
|
JSONObject ocr(File file);
|
|
/**
|
* 新增修改处理数据
|
* @param tDriver
|
*/
|
Object addOrUpdate(TDriver tDriver);
|
|
/**
|
* 查询佣金列表
|
* @param name
|
* @param phone
|
* @param status
|
* @return
|
*/
|
EntityWrapper<TDriver> getCommissionPageList(String name, String phone, Integer status);
|
|
/**
|
* 封装佣金集合
|
* @param list
|
* @return
|
*/
|
List<TDriverCommissionResp> getTDriverCommissionResp(List<TDriver> list);
|
|
/**
|
* 佣金详情
|
* @param tDriverId
|
* @param model
|
*/
|
void driverCommissionDetail(Integer tDriverId,Integer levelFlag, Model model);
|
|
/**
|
* 统计司机数
|
* @param agentId
|
* @param model
|
*/
|
void getDataStatistics(Integer agentId, Model model, Map<String, Object> map);
|
|
/**
|
* 统计司机数
|
* @param ids
|
* @param model
|
* @param map
|
*/
|
void getDataStatisticsByIds(List<Integer> ids, Model model, Map<String, Object> map);
|
|
|
/**
|
* 获取司机详情汇总数据
|
* @param driverId
|
* @param time
|
* @return
|
*/
|
Map<String, Object> querySummaryData(Integer driverId, String time);
|
}
|