package com.iailab.module.pms.production.wash.service.impl; import com.iailab.framework.common.pojo.PageResult; import com.iailab.framework.common.util.object.BeanUtils; import com.iailab.module.pms.production.wash.service.TransferInService; import com.iailab.module.pms.production.wash.vo.TransferInPageReqVO; import com.iailab.module.pms.production.wash.entity.TransferInEntity; import com.iailab.module.pms.production.wash.dao.TransferInDao; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Service; import javax.annotation.Resource; /** * @author DongYukun * @Description * @createTime 2024年12月03日 */ @Service @Slf4j public class TransferInServiceImpl implements TransferInService { @Resource private TransferInDao transferInDao; @Override public String create(TransferInEntity createEntity) { TransferInEntity dto = BeanUtils.toBean(createEntity, TransferInEntity.class); transferInDao.insert(dto); return dto.getId(); } @Override public String update(TransferInEntity createEntity) { TransferInEntity dto = BeanUtils.toBean(createEntity, TransferInEntity.class); transferInDao.updateById(dto); return dto.getId(); } @Override public void delete(String id) { transferInDao.deleteById(id); } @Override public TransferInEntity getInfo(String id) { return transferInDao.selectById(id); } @Override public PageResult getPage(TransferInPageReqVO PageReqVO) { return transferInDao.selectPage(PageReqVO); } }