package com.smartor.service.impl; import com.ruoyi.common.utils.DateUtils; import com.smartor.domain.PatMaternityArchive; import com.smartor.mapper.PatMaternityArchiveMapper; import com.smartor.service.IPatMaternityArchiveService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; import java.util.List; /** * 妇科档案Service业务层处理 * * @author ruoyi * @date 2026-10-09 */ @Service public class PatMaternityArchiveServiceImpl implements IPatMaternityArchiveService { @Autowired private PatMaternityArchiveMapper patMaternityArchiveMapper; @Override public PatMaternityArchive selectPatMaternityArchiveById(Long id) { return patMaternityArchiveMapper.selectPatMaternityArchiveById(id); } @Override public List selectPatMaternityArchiveList(PatMaternityArchive patMaternityArchive) { return patMaternityArchiveMapper.selectPatMaternityArchiveList(patMaternityArchive); } @Override public int insertPatMaternityArchive(PatMaternityArchive patMaternityArchive) { patMaternityArchive.setCreateTime(DateUtils.getNowDate()); return patMaternityArchiveMapper.insertPatMaternityArchive(patMaternityArchive); } @Override public int updatePatMaternityArchive(PatMaternityArchive patMaternityArchive) { patMaternityArchive.setUpdateTime(DateUtils.getNowDate()); return patMaternityArchiveMapper.updatePatMaternityArchive(patMaternityArchive); } @Override public int deletePatMaternityArchiveByIds(Long[] ids) { return patMaternityArchiveMapper.deletePatMaternityArchiveByIds(ids); } @Override public int deletePatMaternityArchiveById(Long id) { return patMaternityArchiveMapper.deletePatMaternityArchiveById(id); } }