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