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.HourVolumeService; import com.iailab.module.pms.production.wash.vo.HourVolumePageReqVO; import com.iailab.module.pms.production.wash.entity.HourVolumeEntity; import com.iailab.module.pms.production.wash.dao.HourVolumeDao; 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 HourVolumeServiceImpl implements HourVolumeService { @Resource private HourVolumeDao hourVolumeDao; @Override public String create(HourVolumeEntity createEntity) { HourVolumeEntity dto = BeanUtils.toBean(createEntity, HourVolumeEntity.class); hourVolumeDao.insert(dto); return dto.getId(); } @Override public String update(HourVolumeEntity createEntity) { HourVolumeEntity dto = BeanUtils.toBean(createEntity, HourVolumeEntity.class); hourVolumeDao.updateById(dto); return dto.getId(); } @Override public void delete(String id) { hourVolumeDao.deleteById(id); } @Override public HourVolumeEntity getInfo(String id) { return hourVolumeDao.selectById(id); } @Override public PageResult getPage(HourVolumePageReqVO PageReqVO) { return hourVolumeDao.selectPage(PageReqVO); } }