From 64f902d5be49b539ea9ace72454c22539daad3ea Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Tue, 21 Jul 2020 18:20:51 +0800 Subject: [PATCH] =?UTF-8?q?heart-work:preview=20=E9=A2=84=E8=A7=88?= =?UTF-8?q?=E6=B4=BB=E5=8A=A8=E8=AF=A6=E6=83=85api?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/epmet/dao/LatestActContentDao.java | 10 ++++++++ .../java/com/epmet/dao/LatestActInfoDao.java | 10 ++++++++ .../impl/LatestActContentServiceImpl.java | 6 ++--- .../impl/LatestActInfoServiceImpl.java | 2 +- .../resources/mapper/LatestActContentDao.xml | 13 +++++++++++ .../resources/mapper/LatestActInfoDao.xml | 23 +++++++++++++++++++ 6 files changed, 60 insertions(+), 4 deletions(-) diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActContentDao.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActContentDao.java index 12568cd4e6..a0cbb2b6e5 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActContentDao.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActContentDao.java @@ -19,6 +19,7 @@ package com.epmet.dao; import com.epmet.commons.mybatis.dao.BaseDao; import com.epmet.dto.result.work.ActDraftContentDTOResultDTO; +import com.epmet.dto.result.work.ActPreviewContentResultDTO; import com.epmet.entity.LatestActContentEntity; import org.apache.ibatis.annotations.Mapper; @@ -50,4 +51,13 @@ public interface LatestActContentDao extends BaseDao { * @Date 2020/7/20 23:01 **/ List selectActContentList(String actId); + + /** + * @return java.util.List + * @param actId + * @author yinzuomei + * @description 预览-查看活动详情 + * @Date 2020/7/21 18:07 + **/ + List previewActContent(String actId); } \ No newline at end of file diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActInfoDao.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActInfoDao.java index 0cd96b4a67..d1a00cb15d 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActInfoDao.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/dao/LatestActInfoDao.java @@ -18,6 +18,7 @@ package com.epmet.dao; import com.epmet.commons.mybatis.dao.BaseDao; +import com.epmet.dto.result.work.ActPreviewResultDTO; import com.epmet.dto.result.work.LatestDraftActInfoResultDTO; import com.epmet.entity.LatestActInfoEntity; import org.apache.ibatis.annotations.Mapper; @@ -48,4 +49,13 @@ public interface LatestActInfoDao extends BaseDao { * @Date 2020/7/20 23:05 **/ LatestDraftActInfoResultDTO selectLatestActDraft(String userId); + + /** + * @return com.epmet.dto.result.work.ActPreviewResultDTO + * @param actDraftId + * @author yinzuomei + * @description 预览-查看活动详情 + * @Date 2020/7/21 17:56 + **/ + ActPreviewResultDTO previewActInfo(String actDraftId); } \ No newline at end of file diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActContentServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActContentServiceImpl.java index 03c0e5621d..e60c7d539e 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActContentServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActContentServiceImpl.java @@ -142,15 +142,15 @@ public class LatestActContentServiceImpl extends BaseServiceImpl * @author yinzuomei * @description 预览-查看活动详情 * @Date 2020/7/21 17:47 **/ @Override - public List previewActContent(String actDraftId) { - return null; + public List previewActContent(String actId) { + return baseDao.previewActContent(actId); } } \ No newline at end of file diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActInfoServiceImpl.java b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActInfoServiceImpl.java index dba3dc1f94..fb1a572fde 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActInfoServiceImpl.java +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/java/com/epmet/service/impl/LatestActInfoServiceImpl.java @@ -174,7 +174,7 @@ public class LatestActInfoServiceImpl extends BaseServiceImpl + + + \ No newline at end of file diff --git a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/LatestActInfoDao.xml b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/LatestActInfoDao.xml index e8d11c7b25..28b43cd8cf 100644 --- a/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/LatestActInfoDao.xml +++ b/epmet-module/epmet-heart/epmet-heart-server/src/main/resources/mapper/LatestActInfoDao.xml @@ -95,4 +95,27 @@ lai.CREATED_TIME DESC LIMIT 1 + + + \ No newline at end of file