From 8a9641217be954f000ba71951838369796005715 Mon Sep 17 00:00:00 2001
From: gao <gaoleox@163>
Date: Thu, 28 May 2020 16:45:59 +0800
Subject: [PATCH] banner图

---
 src/main/java/com/xcong/excoin/modules/platform/service/impl/PlatformBannerServiceImpl.java |   28 ++++++++++++++
 src/main/java/com/xcong/excoin/modules/platform/service/PlatformBannerService.java          |   11 +++++
 src/main/java/com/xcong/excoin/modules/platform/dao/PlatformBannerDao.java                  |    9 ++++
 src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java            |   29 +++++++-------
 4 files changed, 63 insertions(+), 14 deletions(-)

diff --git a/src/main/java/com/xcong/excoin/modules/platform/dao/PlatformBannerDao.java b/src/main/java/com/xcong/excoin/modules/platform/dao/PlatformBannerDao.java
new file mode 100644
index 0000000..38395e7
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/platform/dao/PlatformBannerDao.java
@@ -0,0 +1,9 @@
+package com.xcong.excoin.modules.platform.dao;
+
+import com.baomidou.mybatisplus.core.mapper.BaseMapper;
+import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity;
+
+public interface PlatformBannerDao extends BaseMapper<PlatformPaymentMethodEntity> {
+
+	
+}
diff --git a/src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java b/src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java
index f3ef012..6a511c6 100644
--- a/src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java
+++ b/src/main/java/com/xcong/excoin/modules/platform/entity/PlatformBannerEntity.java
@@ -1,18 +1,17 @@
 package com.xcong.excoin.modules.platform.entity;
 
-import com.baomidou.mybatisplus.annotation.IdType;
-import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
+import com.xcong.excoin.common.system.base.BaseEntity;
 
 import lombok.Data;
 @Data
 @TableName("platform_banner")
-public class PlatformBannerEntity{
+public class PlatformBannerEntity extends BaseEntity{
 
-	
-	@TableId(value = "id",type = IdType.AUTO)
-	private Long id;
-
+	/**
+	 * 
+	 */
+	private static final long serialVersionUID = 1L;
 	/**
 	 * 标题
 	 */
@@ -20,27 +19,29 @@
 	/**
 	 * 图片链接
 	 */
-	private String image_url;
+	private String imageUrl;
 	/**
 	 * 是否可跳转 1-是2-否
 	 */
-	private String is_jump;
+	private String isJump;
 	/**
 	 * 跳转外部或内部 1-内2-外
 	 */
-	private int is_inside;
+	private int isInside;
 	/**
 	 * 跳转链接
 	 */
-	private String jump_url;
+	private String jumpUrl;
 	/**
 	 * 显示端口 1-pc2-手机
 	 */
-	private int show_port;
+	private int showPort;
 	/**
 	 * 联系方式
 	 */
 	private String sort;
-	
-	private String is_top;
+	/**
+	 * 是否置顶 1-是2-否
+	 */
+	private String isTop;
 }
diff --git a/src/main/java/com/xcong/excoin/modules/platform/service/PlatformBannerService.java b/src/main/java/com/xcong/excoin/modules/platform/service/PlatformBannerService.java
new file mode 100644
index 0000000..364b319
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/platform/service/PlatformBannerService.java
@@ -0,0 +1,11 @@
+package com.xcong.excoin.modules.platform.service;
+
+import com.baomidou.mybatisplus.extension.service.IService;
+import com.xcong.excoin.common.response.Result;
+import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity;
+
+public interface PlatformBannerService extends IService<PlatformPaymentMethodEntity> {
+
+	public Result findAll();
+	
+}
diff --git a/src/main/java/com/xcong/excoin/modules/platform/service/impl/PlatformBannerServiceImpl.java b/src/main/java/com/xcong/excoin/modules/platform/service/impl/PlatformBannerServiceImpl.java
new file mode 100644
index 0000000..ceca0ec
--- /dev/null
+++ b/src/main/java/com/xcong/excoin/modules/platform/service/impl/PlatformBannerServiceImpl.java
@@ -0,0 +1,28 @@
+package com.xcong.excoin.modules.platform.service.impl;
+
+import java.util.List;
+
+import javax.annotation.Resource;
+
+import org.springframework.stereotype.Service;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.xcong.excoin.common.response.Result;
+import com.xcong.excoin.modules.platform.dao.PlatformPaymentMethodDao;
+import com.xcong.excoin.modules.platform.entity.PlatformPaymentMethodEntity;
+import com.xcong.excoin.modules.platform.service.PlatformPaymentMethodService;
+
+@Service
+public class PlatformBannerServiceImpl extends ServiceImpl<PlatformPaymentMethodDao, PlatformPaymentMethodEntity> implements PlatformPaymentMethodService{
+	@Resource
+	PlatformPaymentMethodDao platformPaymentMethodDao;
+	
+	@Override
+	public Result findAll() {
+		QueryWrapper<PlatformPaymentMethodEntity> queryWrapper = new QueryWrapper<>();
+		List<PlatformPaymentMethodEntity> paymentMethodList = platformPaymentMethodDao.selectList(queryWrapper);
+		return Result.ok(paymentMethodList);
+	}
+	
+}

--
Gitblit v1.9.1