Commit 374d88d5 by 杨林龙

新增权限控制

1 parent 9d538867
......@@ -3,6 +3,7 @@ package cn.com.glsx.admin.modules.mapper;
import cn.com.glsx.admin.modules.entity.ElectricInStoreDrive;
import cn.com.glsx.admin.modules.model.export.ElectricInStoreExport;
import cn.com.glsx.admin.modules.model.param.ElectricInStoreSearch;
import com.glsx.plat.common.annotation.DataPerm;
import com.glsx.plat.mybatis.mapper.CommonBaseMapper;
import org.apache.ibatis.annotations.Mapper;
......@@ -27,6 +28,7 @@ public interface ElectricInStoreDriveMapper extends CommonBaseMapper<ElectricInS
* @param search
* @return
*/
@DataPerm(showSql = true)
List<ElectricInStoreExport> getAllTestDrive(ElectricInStoreSearch search);
/**
......
......@@ -80,6 +80,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param search
* @return
*/
@DataPerm(showSql = true)
List<VehicleInfoPageDTO> searchVehicleInfo(VehicleInfoSearch search);
/**
......@@ -88,6 +89,7 @@ public interface VehicleMapper extends CommonBaseMapper<Vehicle> {
* @param search
* @return
*/
@DataPerm(showSql = true)
List<VehicleInfoReportExport> exportVehicleInfo(VehicleInfoSearch search);
@DataPerm(showSql = true)
......
......@@ -103,7 +103,7 @@ public class DeviceService {
device.setManufacturer(trackInfo.getPartner());
device.setActivateStatus(trackInfo.getIsActive());
device.setActivateTime(trackInfo.getActiveDate());
device.setSource(trackInfo.getSource());
device.setCreatedBy(createId);
device.setCreatedDate(new Date());
return insertDevice(device);
......
......@@ -1098,10 +1098,9 @@ public class VehicleService {
}
}
if (search.getDeviceType() != null) {
vehicleInfoList = vehicleInfoList.stream().filter(vehicleInfoPageDTO -> vehicleInfoPageDTO.getDeviceState().equals(search.getDeviceType())).collect(Collectors.toList());
if (search.getDeviceState() != null) {
vehicleInfoList.removeIf(vehicleInfoPageDTO -> !search.getDeviceState().equals(vehicleInfoPageDTO.getDeviceState()));
}
return new PageInfo<>(vehicleInfoList);
}
......@@ -1229,9 +1228,10 @@ public class VehicleService {
}
}
if (search.getDeviceType() != null) {
vehicleInfoReportExportList = vehicleInfoReportExportList.stream().filter(vehicleInfoReportExport -> vehicleInfoReportExport.getDeviceState().equals(search.getDeviceType())).collect(Collectors.toList());
if (search.getDeviceState() != null) {
vehicleInfoReportExportList.removeIf(vehicleInfoReportExport -> !search.getDeviceState().equals(vehicleInfoReportExport.getDeviceState()));
}
return vehicleInfoReportExportList;
}
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!