package com.yssh.service.impl;
|
|
import com.yssh.dao.LocationMapper;
|
import com.yssh.entity.Location;
|
import com.yssh.service.ILocationService;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
import java.util.List;
|
|
/**
|
* @author wMeng
|
* @date 2022/10/30 13:25
|
* @version 1.0
|
*/
|
@Service
|
public class LocationServiceImpl implements ILocationService {
|
@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);
|
}
|
}
|