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