Commit 9c2482dc authored by caotao's avatar caotao

1.按月统计里程接口增加筛选、异常轨迹接口增加筛选。

2.增加车辆告警相关功能代码。 3.车辆当月里程导出里程规范
parent 5421f63a
...@@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty; ...@@ -10,6 +10,7 @@ import io.swagger.annotations.ApiModelProperty;
import lombok.Data; import lombok.Data;
import lombok.EqualsAndHashCode; import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors; import lombok.experimental.Accessors;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.format.annotation.DateTimeFormat; import org.springframework.format.annotation.DateTimeFormat;
import java.math.BigDecimal; import java.math.BigDecimal;
......
...@@ -1415,14 +1415,14 @@ public class CarController extends AbstractBaseController { ...@@ -1415,14 +1415,14 @@ public class CarController extends AbstractBaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/getCarEquipStateInfo", method = RequestMethod.GET) @RequestMapping(value = "/getCarEquipStateInfo", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "车辆统计-获取设备状态信息", notes = "车辆统计-获取设备状态信息") @ApiOperation(httpMethod = "GET", value = "车辆统计-获取设备状态信息", notes = "车辆统计-获取设备状态信息")
public Page<CarEquipStateInfoDto> getCarEquipStateInfo() { public Page<CarEquipStateInfoDto> getCarEquipStateInfo(@RequestParam(required = false) String keyWord,@RequestParam String flag) {
return iCarService.getCarEquipStateInfo(); return iCarService.getCarEquipStateInfo(keyWord);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/getCarEquipAlarmInfoDto", method = RequestMethod.GET) @RequestMapping(value = "/getCarEquipAlarmInfoDto", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "车辆统计-获取设备告警信息", notes = "车辆统计-获取设备告警信息") @ApiOperation(httpMethod = "GET", value = "车辆统计-获取设备告警信息", notes = "车辆统计-获取设备告警信息")
public Page<CarEquipAlarmInfoDto> getCarEquipAlarmInfoDto(@RequestParam(required = false) String keyWord) { public Page<CarEquipAlarmInfoDto> getCarEquipAlarmInfoDto(@RequestParam(required = false) String keyWord,@RequestParam String flag) {
return iCarService.getCarEquipAlarmInfoDto(keyWord); return iCarService.getCarEquipAlarmInfoDto(keyWord);
} }
...@@ -1475,8 +1475,13 @@ public class CarController extends AbstractBaseController { ...@@ -1475,8 +1475,13 @@ public class CarController extends AbstractBaseController {
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false) @TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/getCarWarningRecord", method = RequestMethod.GET) @RequestMapping(value = "/getCarWarningRecord", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "车辆统计-获取超速信息", notes = "车辆统计-获取超速信息") @ApiOperation(httpMethod = "GET", value = "车辆统计-获取超速信息", notes = "车辆统计-获取超速信息")
public Page<CarSpeedWarningRecord> getCarWarningRecord(@RequestParam(required = false) String keyWord) { public Page<CarSpeedWarningRecord> getCarWarningRecord(@RequestParam(required = false) String keyWord,@RequestParam String flag) {
return iCarService.getCarWarningRecord(keyWord); return iCarService.getCarWarningRecord(keyWord);
} }
@TycloudOperation(ApiLevel = UserType.AGENCY, needAuth = false)
@RequestMapping(value = "/getBizOrgName", method = RequestMethod.GET)
@ApiOperation(httpMethod = "GET", value = "车辆统计-获取归属单位下拉框值", notes = "车辆统计-获取归属单位下拉框值")
public List<Map<String,String>> getBizOrgName(@RequestParam(required = false) String keyWord) {
return iCarService.getBizOrgName();
}
} }
...@@ -22,4 +22,6 @@ public class CarExportDto { ...@@ -22,4 +22,6 @@ public class CarExportDto {
@Excel(name = "里程数(km)") @Excel(name = "里程数(km)")
private String totalTravel; private String totalTravel;
private String totalTravelValue;
} }
...@@ -18,10 +18,7 @@ import com.yeejoin.equipmanage.common.vo.*; ...@@ -18,10 +18,7 @@ import com.yeejoin.equipmanage.common.vo.*;
import com.yeejoin.equipmanage.dto.*; import com.yeejoin.equipmanage.dto.*;
import javassist.compiler.ast.Keyword; import javassist.compiler.ast.Keyword;
import java.util.HashMap; import java.util.*;
import java.util.List;
import java.util.Map;
import java.util.Set;
/** /**
* 消防车信息 服务类 * 消防车信息 服务类
...@@ -197,7 +194,7 @@ public interface ICarService extends IService<Car> { ...@@ -197,7 +194,7 @@ public interface ICarService extends IService<Car> {
// 获取车辆归属单位总数 // 获取车辆归属单位总数
Map<String,Integer> getCountOfCarBelongCompany(); Map<String,Integer> getCountOfCarBelongCompany();
List<ChartIntegerDto> getCarCategoryInfo() ; List<ChartIntegerDto> getCarCategoryInfo() ;
Page<CarEquipStateInfoDto> getCarEquipStateInfo(); Page<CarEquipStateInfoDto> getCarEquipStateInfo(String keyWord);
Page<CarEquipAlarmInfoDto> getCarEquipAlarmInfoDto(String keyWord); Page<CarEquipAlarmInfoDto> getCarEquipAlarmInfoDto(String keyWord);
List<ChartIntegerDto>getCarBelongAreaInfo() ; List<ChartIntegerDto>getCarBelongAreaInfo() ;
Page<CarAreaInfoDto> getCarAreaInfo(String areaName ) ; Page<CarAreaInfoDto> getCarAreaInfo(String areaName ) ;
...@@ -206,6 +203,8 @@ public interface ICarService extends IService<Car> { ...@@ -206,6 +203,8 @@ public interface ICarService extends IService<Car> {
ZZChartsDto getCarMileageInfoByMothOFDay(String iotCode); ZZChartsDto getCarMileageInfoByMothOFDay(String iotCode);
Page<CarExceptionDto> getCarExcepitonTrack(Integer type,String keyWord); Page<CarExceptionDto> getCarExcepitonTrack(Integer type,String keyWord);
Page<CarSpeedWarningRecord> getCarWarningRecord(String keyWord); Page<CarSpeedWarningRecord> getCarWarningRecord(String keyWord);
List<Map<String,String>> getBizOrgName();
/** /**
* 查询车辆启动状态,赋码 * 查询车辆启动状态,赋码
*/ */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment