package com.iailab.module.pms.production.warehouse.service.impl;
|
|
import com.iailab.framework.common.pojo.PageResult;
|
import com.iailab.framework.common.util.object.BeanUtils;
|
import com.iailab.module.pms.production.warehouse.dao.McMzDao;
|
import com.iailab.module.pms.production.warehouse.entity.McMzEntity;
|
import com.iailab.module.pms.production.warehouse.service.McMzService;
|
import com.iailab.module.pms.production.warehouse.vo.McMzPageReqVO;
|
import org.springframework.stereotype.Service;
|
|
import javax.annotation.Resource;
|
|
@Service
|
public class McMzServiceImpl implements McMzService {
|
|
@Resource
|
private McMzDao mcMzDao;
|
|
|
@Override
|
public String create(McMzEntity createEntity) {
|
McMzEntity dto = BeanUtils.toBean(createEntity, McMzEntity.class);
|
mcMzDao.insert(dto);
|
return dto.getId();
|
}
|
|
@Override
|
public String update(McMzEntity createEntity) {
|
McMzEntity dto = BeanUtils.toBean(createEntity, McMzEntity.class);
|
mcMzDao.updateById(dto);
|
return dto.getId();
|
}
|
|
@Override
|
public void delete(String id) {
|
mcMzDao.deleteById(id);
|
}
|
|
@Override
|
public McMzEntity getInfo(String id) {
|
return mcMzDao.selectById(id);
|
}
|
|
@Override
|
public PageResult<McMzEntity> getPage(McMzPageReqVO PageReqVO) {
|
return mcMzDao.selectPage(PageReqVO);
|
}
|
}
|