6.16 4

七安。發表於2024-06-17
package com.example.server;

import com.example.mapper.PolicyMapper;
import com.example.pojo.Policy;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PolicyServer {
    @Autowired
    private PolicyMapper policyMapper;

    public List<Policy> getAll() {
        return policyMapper.getAll();
    }

    public String getById(int id) {
        return policyMapper.getById(id);
    }

    public List<Policy> getByName(String name) {
        return policyMapper.getByName(name);
    }

    public List<Policy> getNation() {
        return policyMapper.getNation();
    }

    public List<Policy> getHebei() {
        return policyMapper.getHebei();
    }

    public List<Policy> getWaisheng() {
        return policyMapper.getWaisheng();
    }
}