From 5dc04f3291c00d66f8733a49896612ea1e3b31c5 Mon Sep 17 00:00:00 2001 From: 罗元桥 <2376770955@qq.com> Date: 星期四, 16 九月 2021 13:19:14 +0800 Subject: [PATCH] Merge branch 'test' into 'zzj' --- springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyAlarmServiceImpl.java | 38 ++++++++++++++++++++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyAlarmServiceImpl.java b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyAlarmServiceImpl.java new file mode 100644 index 0000000..7281042 --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/service_property/src/main/java/com/panzhihua/service_property/service/impl/ComPropertyAlarmServiceImpl.java @@ -0,0 +1,38 @@ +package com.panzhihua.service_property.service.impl; + +import com.baomidou.mybatisplus.core.metadata.IPage; +import com.baomidou.mybatisplus.extension.plugins.pagination.Page; +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.panzhihua.common.model.dtos.property.CommonPage; +import com.panzhihua.common.model.vos.R; +import com.panzhihua.common.model.vos.property.ComPropertyAlarmVO; +import com.panzhihua.service_property.entity.ComPropertyAlarm; +import com.panzhihua.service_property.dao.ComPropertyAlarmDao; +import com.panzhihua.service_property.service.ComPropertyAlarmService; +import lombok.extern.slf4j.Slf4j; +import org.springframework.stereotype.Service; + +import javax.annotation.Resource; + +/** + * (ComPropertyAlarm)表服务实现类 + * + * @author makejava + * @since 2021-09-07 13:29:50 + */ +@Slf4j +@Service +public class ComPropertyAlarmServiceImpl extends ServiceImpl<ComPropertyAlarmDao, ComPropertyAlarm> implements ComPropertyAlarmService { + @Resource + private ComPropertyAlarmDao comPropertyAlarmDao; + @Override + public R pageList(CommonPage commonPage) { + IPage<ComPropertyAlarmVO> page=comPropertyAlarmDao.selectList(new Page(commonPage.getPage(), commonPage.getSize()),commonPage); + return R.ok(page); + } + + @Override + public R selectDetail(Integer id) { + return R.ok(comPropertyAlarmDao.selectById(id)); + } +} -- Gitblit v1.7.1