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