燕山石化溯源三维电子沙盘-【后端】-服务
1
13693261870
2023-07-05 2b8df9f5452218cad1f012a008acea724de81fff
src/main/java/com/yssh/service/impl/LocationServiceImpl.java
@@ -3,37 +3,38 @@
import com.yssh.dao.LocationMapper;
import com.yssh.entity.Location;
import com.yssh.service.ILocationService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.util.List;
/**
 * @author wMeng
 * @ClassName YsshLocationServiceImpl
 * @Description TODO
 * @date 2022/10/30 13:25
 * @Version 1.0
 * @version 1.0
 */
@Service
public class LocationServiceImpl implements ILocationService {
    @Autowired
    @Resource
    private LocationMapper mapper;
    @Override
    public List<Location> query(String name, String type) {
        return mapper.query(name, type);
    }
    @Override
    public List<Location> getAll() {
        return mapper.getAll();
    }
    @Override
    public int insertLocation(Location location) {
        return mapper.insertLocation(location);
    }
    @Override
    public int deleteLocation(String id) {
        return mapper.deleteLocation(id);
    }
}