package com.ycl.platform.service.impl; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ycl.platform.domain.entity.CheckIndexCar; import com.ycl.platform.domain.query.DashboardQuery; import com.ycl.platform.mapper.CheckIndexCarMapper; import com.ycl.platform.service.ICheckIndexCarService; import com.ycl.platform.service.ITMonitorService; import com.ycl.system.mapper.SysConfigMapper; import com.ycl.system.mapper.SysDeptMapper; import lombok.extern.slf4j.Slf4j; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import utils.DateUtils; import java.util.*; /** * 车辆指标概率数据Service业务层处理 * * @author ruoyi * @date 2024-04-29 */ @Service @Slf4j public class CheckIndexCarServiceImpl extends ServiceImpl implements ICheckIndexCarService { @Autowired private CheckIndexCarMapper checkIndexCarMapper; @Autowired private SysConfigMapper sysConfigMapper; @Autowired private ITMonitorService monitorService; @Autowired private SysDeptMapper deptMapper; /** * 查询车辆指标概率数据 * * @param id 车辆指标概率数据主键 * @return 车辆指标概率数据 */ @Override public CheckIndexCar selectCheckIndexCarById(Long id) { return checkIndexCarMapper.selectCheckIndexCarById(id); } /** * 查询车辆指标概率数据列表 * * @param checkIndexCar 车辆指标概率数据 * @return 车辆指标概率数据 */ @Override public List selectCheckIndexCarList(CheckIndexCar checkIndexCar) { return checkIndexCarMapper.selectCheckIndexCarList(checkIndexCar); } /** * 新增车辆指标概率数据 * * @param checkIndexCar 车辆指标概率数据 * @return 结果 */ @Override public int insertCheckIndexCar(CheckIndexCar checkIndexCar) { checkIndexCar.setCreateTime(DateUtils.getNowDate()); return checkIndexCarMapper.insertCheckIndexCar(checkIndexCar); } /** * 修改车辆指标概率数据 * * @param checkIndexCar 车辆指标概率数据 * @return 结果 */ @Override public int updateCheckIndexCar(CheckIndexCar checkIndexCar) { return checkIndexCarMapper.updateCheckIndexCar(checkIndexCar); } /** * 批量删除车辆指标概率数据 * * @param ids 需要删除的车辆指标概率数据主键 * @return 结果 */ @Override public int deleteCheckIndexCarByIds(Long[] ids) { return checkIndexCarMapper.deleteCheckIndexCarByIds(ids); } /** * 删除车辆指标概率数据信息 * * @param id 车辆指标概率数据主键 * @return 结果 */ @Override public int deleteCheckIndexCarById(Long id) { return checkIndexCarMapper.deleteCheckIndexCarById(id); } @Override public CheckIndexCar dashboard(DashboardQuery dashboardQuery) { return checkIndexCarMapper.dashboard(dashboardQuery); } }