package com.example.spring2.service;标签:Map,return,name,6.11,userMapper,import,public From: https://www.cnblogs.com/kongxiangzeng/p/18246604
import com.example.spring2.entity.User;
import com.example.spring2.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
import java.util.Map;
@Service
public class UserService {
@Autowired
private UserMapper userMapper;
public Map<String, User> getCountByName(String name) {
return userMapper.getCountByName(name);
}
public Map<String, User> getCountByDocument(String name) {
return userMapper.getCountByDocument(name);
}
public Map<String, User> getCountByOrgan(String name) {
return userMapper.getCountByOrgan(name);
}
public Map<String, User> getCountByText(String name) {
return userMapper.getCountByText(name);
}
public Map<String, User> getTotalCount() {
return userMapper.getTotalCount();
}
public List<User> getAllPolicies(){return userMapper.getAllPolicies();}
public List<String> getAllPolicies2(String name){return userMapper.getAllPolicies2(name);}
public List<User> getAllPolicies3(String name){return userMapper.getAllPolicies3(name);}
}