From 3f07ab2e03e501ae55d1d1b0d031daf50c8e13e5 Mon Sep 17 00:00:00 2001 From: dongyukun <1208714201@qq.com> Date: 星期二, 10 十二月 2024 17:27:44 +0800 Subject: [PATCH] common依赖排除父类 --- iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/warehouse/service/impl/McMzServiceImpl.java | 48 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 48 insertions(+), 0 deletions(-) diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/warehouse/service/impl/McMzServiceImpl.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/warehouse/service/impl/McMzServiceImpl.java new file mode 100644 index 0000000..6ddaedb --- /dev/null +++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/warehouse/service/impl/McMzServiceImpl.java @@ -0,0 +1,48 @@ +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); + } +} -- Gitblit v1.9.3