|
@@ -0,0 +1,61 @@
|
|
|
|
+package com.yh.saas.plugin.yiliangyiyun.service.impl;
|
|
|
|
+
|
|
|
|
+import com.baomidou.mybatisplus.mapper.EntityWrapper;
|
|
|
|
+import com.baomidou.mybatisplus.plugins.Page;
|
|
|
|
+import com.yh.saas.common.support.util.IdGenerator;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.constant.NumberConstant;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.SearchRecordsInfo;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.entity.VehicleTrajectoryInfo;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.mapper.VehicleTrajectoryInfoMapper;
|
|
|
|
+import com.yh.saas.plugin.yiliangyiyun.service.IVehicleTrajectoryInfoService;
|
|
|
|
+import com.baomidou.mybatisplus.service.impl.ServiceImpl;
|
|
|
|
+import org.springframework.stereotype.Service;
|
|
|
|
+import org.springframework.transaction.annotation.Transactional;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
+
|
|
|
|
+/**
|
|
|
|
+ * <p>
|
|
|
|
+ * 记录车辆轨迹详情 服务实现类
|
|
|
|
+ * </p>
|
|
|
|
+ *
|
|
|
|
+ * @author Gdc
|
|
|
|
+ * @since 2022-05-05
|
|
|
|
+ */
|
|
|
|
+@Service
|
|
|
|
+public class VehicleTrajectoryInfoServiceImpl extends ServiceImpl<VehicleTrajectoryInfoMapper, VehicleTrajectoryInfo> implements IVehicleTrajectoryInfoService {
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ * 新增
|
|
|
|
+ *
|
|
|
|
+ * @param vehicleTrajectoryInfo
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
|
+ public String addInfo(VehicleTrajectoryInfo vehicleTrajectoryInfo) {
|
|
|
|
+ vehicleTrajectoryInfo.setId(IdGenerator.generateUUID());
|
|
|
|
+ this.insert(vehicleTrajectoryInfo);
|
|
|
|
+ return "OK";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ /**
|
|
|
|
+ *列表
|
|
|
|
+ *
|
|
|
|
+ * @param vehicleTrajectoryInfo
|
|
|
|
+ * @return
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public List<VehicleTrajectoryInfo> selectVehicleTrajectoryInfo(VehicleTrajectoryInfo vehicleTrajectoryInfo) {
|
|
|
|
+ //查询
|
|
|
|
+ List<VehicleTrajectoryInfo> vehicleTrajectoryInfos = this.selectList(new EntityWrapper<VehicleTrajectoryInfo>()
|
|
|
|
+ .eq("order_id", vehicleTrajectoryInfo.getOrderId())
|
|
|
|
+ .eq(SearchRecordsInfo.QueryFiles.DELETE_FLAG, NumberConstant.CONSTANT0)
|
|
|
|
+ .eq("comp_id", vehicleTrajectoryInfo.getCompId())
|
|
|
|
+ .orderBy("update_date", false));
|
|
|
|
+ return vehicleTrajectoryInfos;
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+}
|