package com.ruoyi.system.service.impl;
|
|
import java.util.List;
|
import com.ruoyi.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ruoyi.system.mapper.CjStudentMapper;
|
import com.ruoyi.system.domain.CjStudent;
|
import com.ruoyi.system.service.ICjStudentService;
|
|
/**
|
* 学生花名册Service业务层处理
|
*
|
* @author ruoyi
|
* @date 2026-09-03
|
*/
|
@Service
|
public class CjStudentServiceImpl implements ICjStudentService
|
{
|
@Autowired
|
private CjStudentMapper cjStudentMapper;
|
|
/**
|
* 查询学生花名册
|
*
|
* @param studentId 学生花名册主键
|
* @return 学生花名册
|
*/
|
@Override
|
public CjStudent selectCjStudentByStudentId(Long studentId)
|
{
|
return cjStudentMapper.selectCjStudentByStudentId(studentId);
|
}
|
|
/**
|
* 查询学生花名册列表
|
*
|
* @param cjStudent 学生花名册
|
* @return 学生花名册
|
*/
|
@Override
|
public List<CjStudent> selectCjStudentList(CjStudent cjStudent)
|
{
|
return cjStudentMapper.selectCjStudentList(cjStudent);
|
}
|
|
/**
|
* 新增学生花名册
|
*
|
* @param cjStudent 学生花名册
|
* @return 结果
|
*/
|
@Override
|
public int insertCjStudent(CjStudent cjStudent)
|
{
|
cjStudent.setCreateTime(DateUtils.getNowDate());
|
return cjStudentMapper.insertCjStudent(cjStudent);
|
}
|
|
/**
|
* 修改学生花名册
|
*
|
* @param cjStudent 学生花名册
|
* @return 结果
|
*/
|
@Override
|
public int updateCjStudent(CjStudent cjStudent)
|
{
|
cjStudent.setUpdateTime(DateUtils.getNowDate());
|
return cjStudentMapper.updateCjStudent(cjStudent);
|
}
|
|
/**
|
* 批量删除学生花名册
|
*
|
* @param studentIds 需要删除的学生花名册主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteCjStudentByStudentIds(Long[] studentIds)
|
{
|
return cjStudentMapper.deleteCjStudentByStudentIds(studentIds);
|
}
|
|
/**
|
* 删除学生花名册信息
|
*
|
* @param studentId 学生花名册主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteCjStudentByStudentId(Long studentId)
|
{
|
return cjStudentMapper.deleteCjStudentByStudentId(studentId);
|
}
|
}
|