6.16 4

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

 

posted @ 2024-06-17 23:12  七安。  阅读(3)  评论(0编辑  收藏  举报