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 org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ltkj.hosp.mapper.TjDiscardInspectionMapper; import com.ltkj.hosp.domain.TjDiscardInspection; import com.ltkj.hosp.service.ITjDiscardInspectionService; import javax.annotation.Resource; /** * 弃检Service业务层处理 * * @author ltkj_赵佳豪&李格 * @date 2023-03-24 */ @Service public class TjDiscardInspectionServiceImpl extends ServiceImpl implements ITjDiscardInspectionService { @Resource private TjDiscardInspectionMapper tjDiscardInspectionMapper; /** * 查询弃检 * * @param id 弃检主键 * @return 弃检 */ @Override public TjDiscardInspection selectTjDiscardInspectionById(Long id) { return tjDiscardInspectionMapper.selectTjDiscardInspectionById(id); } /** * 查询弃检列表 * * @param tjDiscardInspection 弃检 * @return 弃检 */ @Override public List selectTjDiscardInspectionList(TjDiscardInspection tjDiscardInspection) { return tjDiscardInspectionMapper.selectTjDiscardInspectionList(tjDiscardInspection); } /** * 新增弃检 * * @param tjDiscardInspection 弃检 * @return 结果 */ @Override public int insertTjDiscardInspection(TjDiscardInspection tjDiscardInspection) { tjDiscardInspection.setCreateTime(DateUtils.getNowDate()); return tjDiscardInspectionMapper.insertTjDiscardInspection(tjDiscardInspection); } /** * 修改弃检 * * @param tjDiscardInspection 弃检 * @return 结果 */ @Override public int updateTjDiscardInspection(TjDiscardInspection tjDiscardInspection) { tjDiscardInspection.setUpdateTime(DateUtils.getNowDate()); return tjDiscardInspectionMapper.updateTjDiscardInspection(tjDiscardInspection); } /** * 批量删除弃检 * * @param ids 需要删除的弃检主键 * @return 结果 */ @Override public int deleteTjDiscardInspectionByIds(Long[] ids) { return tjDiscardInspectionMapper.deleteTjDiscardInspectionByIds(ids); } /** * 删除弃检信息 * * @param id 弃检主键 * @return 结果 */ @Override public int deleteTjDiscardInspectionById(Long id) { return tjDiscardInspectionMapper.deleteTjDiscardInspectionById(id); } }