9月2日 分布式缓存 周日

package com.hao.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.hao.dto.Student;
import com.hao.mapper.IStudentMapper;
import com.hao.service.IStudentService;
@Service
public class StudentServiceImpl implements IStudentService{

    @Autowired
    private IStudentMapper iStudentMapper;

    public List findStudentList() {
        // TODO Auto-generated method stub
        List findStudentList = iStudentMapper.findStudentList();
        for (Student student : findStudentList) {
            String substring = student.getBirthday().substring(0, 10);
            student.setBirthday(substring);
        }
        return findStudentList;
    }

    public Student getObj(Integer id) {
        // TODO Auto-generated method stub
        Student student = new Student();
        student.setId(id);
        Student s = iStudentMapper.getObj(student);
        return s;
    }

}

心软是一种不公平的善良,成全了别人,委屈了自己,却被别人当成了傻逼。

你可能感兴趣的:(2018)