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