xieb
2023-10-28 69f4eab5670f9aa5b5325e6d4d3a8e97f63106cc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package com.dji.sample.log.service.impl;
 
import com.dji.sample.log.dao.IDroneFlightLogMapper;
import com.dji.sample.log.model.entity.DroneFlightLogEntity;
import com.dji.sample.log.service.IDroneFlightLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
/**
 * @PROJECT_NAME: iot_drone_api
 * @DESCRIPTION:
 * @USER: aix
 * @DATE: 2023/10/27 17:58
 */
@Service
public class DroneFlightLogServiceImpl implements IDroneFlightLogService {
 
    @Autowired
    private IDroneFlightLogMapper mapper;
 
    @Override
    public void save(DroneFlightLogEntity entity) {
        mapper.insert(entity);
    }
 
    @Override
    public void update(DroneFlightLogEntity entity) {
        mapper.updateById(entity);
    }
 
}