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(); } }
标签:return,policyMapper,List,6.16,import,com,public From: https://www.cnblogs.com/zzqq1314/p/18253425