package com.ltkj.hosp.service.impl; import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ltkj.common.utils.DateUtils; import com.ltkj.hosp.domain.TjOtherCheck; import com.ltkj.hosp.mapper.TjOtherCheckMapper; import com.ltkj.hosp.service.ITjOtherCheckService; import org.springframework.stereotype.Service; import javax.annotation.Resource; /** * 体检其他检测Service业务层处理 * * @author ltkj * @date 2023-04-14 */ @Service public class TjOtherCheckServiceImpl extends ServiceImpl implements ITjOtherCheckService { @Resource private TjOtherCheckMapper tjOtherCheckMapper; /** * 查询体检其他检测 * * @param id 体检其他检测主键 * @return 体检其他检测 */ @Override public TjOtherCheck selectTjOtherCheckById(String id) { return tjOtherCheckMapper.selectTjOtherCheckById(id); } /** * 查询体检其他检测列表 * * @param tjOtherCheck 体检其他检测 * @return 体检其他检测 */ @Override public List selectTjOtherCheckList(TjOtherCheck tjOtherCheck) { return tjOtherCheckMapper.selectTjOtherCheckList(tjOtherCheck); } /** * 新增体检其他检测 * * @param tjOtherCheck 体检其他检测 * @return 结果 */ @Override public int insertTjOtherCheck(TjOtherCheck tjOtherCheck) { tjOtherCheck.setCreateTime(DateUtils.getNowDate()); return tjOtherCheckMapper.insertTjOtherCheck(tjOtherCheck); } /** * 修改体检其他检测 * * @param tjOtherCheck 体检其他检测 * @return 结果 */ @Override public int updateTjOtherCheck(TjOtherCheck tjOtherCheck) { tjOtherCheck.setUpdateTime(DateUtils.getNowDate()); return tjOtherCheckMapper.updateTjOtherCheck(tjOtherCheck); } /** * 批量删除体检其他检测 * * @param ids 需要删除的体检其他检测主键 * @return 结果 */ @Override public int deleteTjOtherCheckByIds(String[] ids) { return tjOtherCheckMapper.deleteTjOtherCheckByIds(ids); } /** * 删除体检其他检测信息 * * @param id 体检其他检测主键 * @return 结果 */ @Override public int deleteTjOtherCheckById(String id) { return tjOtherCheckMapper.deleteTjOtherCheckById(id); } }