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/device/service/impl/RunTimeServiceImpl.java | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 58 insertions(+), 0 deletions(-) diff --git a/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/device/service/impl/RunTimeServiceImpl.java b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/device/service/impl/RunTimeServiceImpl.java new file mode 100644 index 0000000..15ad56d --- /dev/null +++ b/iailab-xmc-pms-biz/src/main/java/com/iailab/module/pms/production/device/service/impl/RunTimeServiceImpl.java @@ -0,0 +1,58 @@ +package com.iailab.module.pms.production.device.service.impl; + + +import com.iailab.framework.common.pojo.PageResult; +import com.iailab.framework.common.util.object.BeanUtils; +import com.iailab.module.pms.production.device.dao.RunTimeDao; +import com.iailab.module.pms.production.device.entity.RunTimeEntity; +import com.iailab.module.pms.production.device.service.RunTimeService; +import com.iailab.module.pms.production.device.vo.RunTimePageReqVO; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; +import java.util.*; + +/** + * 运行时长统计 + * + * @author DongYukun + * @Description + * @createTime 2023年01月10日 11:11:00 + */ +@Service +public class RunTimeServiceImpl implements RunTimeService { + + @Resource + private RunTimeDao runTimeDao; + + + @Override + public String create(RunTimeEntity createEntity) { + RunTimeEntity dto = BeanUtils.toBean(createEntity, RunTimeEntity.class); + runTimeDao.insert(dto); + return dto.getId(); + } + + @Override + public String update(RunTimeEntity createEntity) { + RunTimeEntity dto = BeanUtils.toBean(createEntity, RunTimeEntity.class); + runTimeDao.updateById(dto); + return dto.getId(); + } + + @Override + public void delete(String id) { + runTimeDao.deleteById(id); + } + + @Override + public RunTimeEntity getInfo(String id) { + return runTimeDao.selectById(id); + } + + @Override + public PageResult<RunTimeEntity> getPage(RunTimePageReqVO PageReqVO) { + return runTimeDao.selectPage(PageReqVO); + } + +} \ No newline at end of file -- Gitblit v1.9.3