package com.ltkj.hosp.service.impl; import java.util.Date; import java.util.List; import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; import com.ltkj.common.utils.DateUtils; import com.ltkj.hosp.vodomain.TeamTjDwBaoGaoVo; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import com.ltkj.hosp.mapper.TjDwDeptMapper; import com.ltkj.hosp.domain.TjDwDept; import com.ltkj.hosp.service.ITjDwDeptService; /** * 体检单位部门Service业务层处理 * * @author ltkj_赵佳豪&李格 * @date 2023-08-07 */ @Service public class TjDwDeptServiceImpl extends ServiceImpl implements ITjDwDeptService { @Autowired private TjDwDeptMapper tjDwDeptMapper; /** * 查询体检单位部门 * * @param id 体检单位部门主键 * @return 体检单位部门 */ @Override public TjDwDept selectTjDwDeptById(String id) { return tjDwDeptMapper.selectTjDwDeptById(id); } /** * 查询体检单位部门列表 * * @param tjDwDept 体检单位部门 * @return 体检单位部门 */ @Override public List selectTjDwDeptList(TjDwDept tjDwDept) { return tjDwDeptMapper.selectTjDwDeptList(tjDwDept); } /** * 新增体检单位部门 * * @param tjDwDept 体检单位部门 * @return 结果 */ @Override public int insertTjDwDept(TjDwDept tjDwDept) { tjDwDept.setCreateTime(DateUtils.getNowDate()); return tjDwDeptMapper.insertTjDwDept(tjDwDept); } /** * 修改体检单位部门 * * @param tjDwDept 体检单位部门 * @return 结果 */ @Override public int updateTjDwDept(TjDwDept tjDwDept) { tjDwDept.setUpdateTime(DateUtils.getNowDate()); return tjDwDeptMapper.updateTjDwDept(tjDwDept); } /** * 批量删除体检单位部门 * * @param ids 需要删除的体检单位部门主键 * @return 结果 */ @Override public int deleteTjDwDeptByIds(String[] ids) { return tjDwDeptMapper.deleteTjDwDeptByIds(ids); } /** * 删除体检单位部门信息 * * @param id 体检单位部门主键 * @return 结果 */ @Override public int deleteTjDwDeptById(String id) { return tjDwDeptMapper.deleteTjDwDeptById(id); } @Override public List getDwDeptNameList() { return tjDwDeptMapper.getDwDeptNameList(); } @Override public List getDwDeptListByTjDwDeptId(String id) { return tjDwDeptMapper.getDwDeptListByTjDwDeptId(id); } @Override public List getTeamTjDwBaoGaoVoByTjDwDeptId(String dwDeptId, Date beginTime, Date endTime) { return tjDwDeptMapper.getTeamTjDwBaoGaoVoByTjDwDeptId(dwDeptId,beginTime,endTime); } }