| | |
| | | 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); |
| | | } |
| | | |
| | | } |