|
|
@@ -3,9 +3,13 @@ package com.aoyang.tms.service.impl;
|
|
|
import com.aoyang.tms.entity.TruckEscort;
|
|
|
import com.aoyang.tms.mapper.TruckEscortMapper;
|
|
|
import com.aoyang.tms.service.TruckEscortService;
|
|
|
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
+import com.baomidou.mybatisplus.core.toolkit.Wrappers;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
+import javax.annotation.Resource;
|
|
|
+
|
|
|
/**
|
|
|
* <p>
|
|
|
* 车辆押运员表 服务实现类
|
|
|
@@ -17,4 +21,14 @@ import org.springframework.stereotype.Service;
|
|
|
@Service
|
|
|
public class TruckEscortServiceImpl extends ServiceImpl<TruckEscortMapper, TruckEscort> implements TruckEscortService {
|
|
|
|
|
|
+ @Resource
|
|
|
+ TruckEscortMapper truckEscortMapper;
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public TruckEscort findTruckEscort(TruckEscort truckEscort) {
|
|
|
+ QueryWrapper<TruckEscort> queryWrapper = Wrappers.query();
|
|
|
+ queryWrapper.eq("truck_id", truckEscort.getTruckId());
|
|
|
+ TruckEscort truckEscort1 = truckEscortMapper.selectOne(queryWrapper);
|
|
|
+ return truckEscort1;
|
|
|
+ }
|
|
|
}
|