From 48c2e5ffb3f9ad3509006e50f3142ea4d0e7f619 Mon Sep 17 00:00:00 2001 From: Jay <csj123456> Date: 星期三, 16 十月 2024 09:32:16 +0800 Subject: [PATCH] 修改拼接sql逻辑以及返回逻辑 --- iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java | 14 ++++++++++++-- 1 files changed, 12 insertions(+), 2 deletions(-) diff --git a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java index 83af85f..4f28365 100644 --- a/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java +++ b/iailab-module-data/iailab-module-data-biz/src/main/java/com/iailab/module/data/point/service/impl/DaPointServiceImpl.java @@ -73,9 +73,19 @@ } @Override + public DaPointDTO getSimpleInfoById(String id) { + return ConvertUtils.sourceToTarget(daPointDao.selectById(id), DaPointDTO.class); + } + + @Override + public DaPointDTO getSimpleInfoByNo(String no) { + QueryWrapper<DaPointEntity> queryWrapper = new QueryWrapper(); + queryWrapper.eq("pointNo", no); + return ConvertUtils.sourceToTarget(daPointDao.selectOne(queryWrapper), DaPointDTO.class); + } + + @Override public List<DaPointDTO> list(Map<String, Object> params) { - Object page = params.get("page"); - Object limit = params.get("limit"); Object pointType = params.get("pointType"); List<String> pointNos = new ArrayList<>(); if (params.get("pointNos") != null) { -- Gitblit v1.9.3