|
|
|
@ -6,6 +6,8 @@ import com.taxi.servicedriveruser.mapper.DriverUserMapper;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
|
|
|
|
import java.time.LocalDateTime;
|
|
|
|
|
|
|
|
|
|
@Service
|
|
|
|
|
public class DriverUserService {
|
|
|
|
|
|
|
|
|
@ -13,7 +15,9 @@ public class DriverUserService {
|
|
|
|
|
private DriverUserMapper driverUserMapper;
|
|
|
|
|
|
|
|
|
|
public ResponseResult addDriverUser(DriverUser driverUser){
|
|
|
|
|
|
|
|
|
|
LocalDateTime localDate = LocalDateTime.now();
|
|
|
|
|
driverUser.setGmtCreate(localDate);
|
|
|
|
|
driverUser.setGmtModified(localDate);
|
|
|
|
|
driverUserMapper.insert(driverUser);
|
|
|
|
|
return ResponseResult.success();
|
|
|
|
|
}
|
|
|
|
|