package com.smartor.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.smartor.mapper.PatMedPhysicalMapper; 
 | 
import com.smartor.domain.PatMedPhysical; 
 | 
import com.smartor.service.IPatMedPhysicalService; 
 | 
  
 | 
/** 
 | 
 * 患者体检记录Service业务层处理 
 | 
 *  
 | 
 * @author smartor 
 | 
 * @date 2023-03-04 
 | 
 */ 
 | 
@Service 
 | 
public class PatMedPhysicalServiceImpl implements IPatMedPhysicalService  
 | 
{ 
 | 
    @Autowired 
 | 
    private PatMedPhysicalMapper patMedPhysicalMapper; 
 | 
  
 | 
    /** 
 | 
     * 查询患者体检记录 
 | 
     *  
 | 
     * @param id 患者体检记录主键 
 | 
     * @return 患者体检记录 
 | 
     */ 
 | 
    @Override 
 | 
    public PatMedPhysical selectPatMedPhysicalById(Long id) 
 | 
    { 
 | 
        return patMedPhysicalMapper.selectPatMedPhysicalById(id); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 查询患者体检记录列表 
 | 
     *  
 | 
     * @param patMedPhysical 患者体检记录 
 | 
     * @return 患者体检记录 
 | 
     */ 
 | 
    @Override 
 | 
    public List<PatMedPhysical> selectPatMedPhysicalList(PatMedPhysical patMedPhysical) 
 | 
    { 
 | 
        return patMedPhysicalMapper.selectPatMedPhysicalList(patMedPhysical); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 新增患者体检记录 
 | 
     *  
 | 
     * @param patMedPhysical 患者体检记录 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int insertPatMedPhysical(PatMedPhysical patMedPhysical) 
 | 
    { 
 | 
        patMedPhysical.setCreateTime(DateUtils.getNowDate()); 
 | 
        return patMedPhysicalMapper.insertPatMedPhysical(patMedPhysical); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 修改患者体检记录 
 | 
     *  
 | 
     * @param patMedPhysical 患者体检记录 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int updatePatMedPhysical(PatMedPhysical patMedPhysical) 
 | 
    { 
 | 
        patMedPhysical.setUpdateTime(DateUtils.getNowDate()); 
 | 
        return patMedPhysicalMapper.updatePatMedPhysical(patMedPhysical); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 批量删除患者体检记录 
 | 
     *  
 | 
     * @param ids 需要删除的患者体检记录主键 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int deletePatMedPhysicalByIds(Long[] ids) 
 | 
    { 
 | 
        return patMedPhysicalMapper.deletePatMedPhysicalByIds(ids); 
 | 
    } 
 | 
  
 | 
    /** 
 | 
     * 删除患者体检记录信息 
 | 
     *  
 | 
     * @param id 患者体检记录主键 
 | 
     * @return 结果 
 | 
     */ 
 | 
    @Override 
 | 
    public int deletePatMedPhysicalById(Long id) 
 | 
    { 
 | 
        return patMedPhysicalMapper.deletePatMedPhysicalById(id); 
 | 
    } 
 | 
} 
 |