Commit 1aa8e457 authored by liu_cheng_jiu's avatar liu_cheng_jiu

init

parent bb695383
package cn.exploring.engine.server.db.service;
import cn.exploring.engine.server.db.dao.StudentPointInfoMapper;
import cn.exploring.engine.server.db.domain.StudentPointInfo;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
import java.time.LocalDateTime;
import java.util.List;
@Service
public class StudentPointService {
@Resource
StudentPointInfoMapper studentPointInfoMapper;
// public List<StudentPointInfo> selectPointInfo() {
//
// }
public Object addPoint(StudentPointInfo studentPoint) {
LocalDateTime now = LocalDateTime.now();
studentPoint.setUpdateTime(now);
studentPoint.setAddTime(now);
studentPoint.setDeleted(false);
studentPointInfoMapper.insertSelective(studentPoint);
return "add OK";
}
public Object updatePoint(StudentPointInfo studentPoint) {
LocalDateTime now = LocalDateTime.now();
studentPoint.setUpdateTime(now);
studentPointInfoMapper.updateByPrimaryKey(studentPoint);
return "update OK";
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment