package com.ltkj.hosp.service.impl;
|
|
import java.util.List;
|
|
import cn.hutool.core.date.DateTime;
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
import com.ltkj.common.utils.DateUtils;
|
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.stereotype.Service;
|
import com.ltkj.hosp.mapper.TjReportPrintMapper;
|
import com.ltkj.hosp.domain.TjReportPrint;
|
import com.ltkj.hosp.service.ITjReportPrintService;
|
|
/**
|
* 打印记录Service业务层处理
|
*
|
* @author ltkj_赵佳豪&李格
|
* @date 2023-04-06
|
*/
|
@Service
|
public class TjReportPrintServiceImpl extends ServiceImpl<TjReportPrintMapper,TjReportPrint> implements ITjReportPrintService {
|
@Autowired
|
private TjReportPrintMapper tjReportPrintMapper;
|
|
/**
|
* 查询打印记录
|
*
|
* @param id 打印记录主键
|
* @return 打印记录
|
*/
|
@Override
|
public TjReportPrint selectTjReportPrintById(Long id) {
|
return tjReportPrintMapper.selectTjReportPrintById(id);
|
}
|
|
/**
|
* 查询打印记录列表
|
*
|
* @param tjReportPrint 打印记录
|
* @return 打印记录
|
*/
|
@Override
|
public List<TjReportPrint> selectTjReportPrintList(TjReportPrint tjReportPrint) {
|
return tjReportPrintMapper.selectTjReportPrintList(tjReportPrint);
|
}
|
|
/**
|
* 新增打印记录
|
*
|
* @param tjReportPrint 打印记录
|
* @return 结果
|
*/
|
@Override
|
public int insertTjReportPrint(TjReportPrint tjReportPrint) {
|
tjReportPrint.setCreateTime(DateUtils.getNowDate());
|
tjReportPrint.setPrintTime(DateUtils.getNowDate());
|
return tjReportPrintMapper.insertTjReportPrint(tjReportPrint);
|
}
|
|
/**
|
* 修改打印记录
|
*
|
* @param tjReportPrint 打印记录
|
* @return 结果
|
*/
|
@Override
|
public int updateTjReportPrint(TjReportPrint tjReportPrint) {
|
tjReportPrint.setUpdateTime(DateUtils.getNowDate());
|
return tjReportPrintMapper.updateTjReportPrint(tjReportPrint);
|
}
|
|
/**
|
* 批量删除打印记录
|
*
|
* @param ids 需要删除的打印记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteTjReportPrintByIds(Long[] ids) {
|
return tjReportPrintMapper.deleteTjReportPrintByIds(ids);
|
}
|
|
/**
|
* 删除打印记录信息
|
*
|
* @param id 打印记录主键
|
* @return 结果
|
*/
|
@Override
|
public int deleteTjReportPrintById(Long id) {
|
return tjReportPrintMapper.deleteTjReportPrintById(id);
|
}
|
}
|