From 1180be99c94b80d5fe9fea2877558fb29aa97427 Mon Sep 17 00:00:00 2001
From: yujian <yujian@123.com>
Date: 星期四, 11 七月 2019 18:21:02 +0800
Subject: [PATCH] 兼容拼多多、京东提交

---
 fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java |   13 +++++++++----
 1 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java
index 4864721..74fa190 100644
--- a/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java
+++ b/fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java
@@ -8,10 +8,10 @@
 import java.util.UUID;
 
 import javax.annotation.Resource;
-import javax.transaction.Transactional;
 
 import org.springframework.cache.annotation.Cacheable;
 import org.springframework.stereotype.Service;
+import org.springframework.transaction.annotation.Transactional;
 import org.springframework.web.multipart.MultipartFile;
 import org.yeshi.utils.tencentcloud.COSManager;
 
@@ -107,6 +107,11 @@
 			
 		} catch (ParseException e) {
 			e.printStackTrace();
+		}
+		
+		String remark = record.getRemark();
+		if (remark != null && (remark.trim().length() == 0 || remark.equalsIgnoreCase("null"))) {
+			record.setRemark(null);
 		}
 		
 		
@@ -223,7 +228,7 @@
 
 
 	@Override
-	public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order) throws SwiperPictureException {
+	public List<SwiperPicture> getOrderByBannerID(Long bannerId, Integer type, Integer order) {
 		return swiperPictureMapper.getOrderByBannerID(bannerId, type, order);
 	}
 
@@ -234,7 +239,7 @@
 	
 	@Override
 	@Cacheable(value = "bannerCache", key = "'getByBannerCard-'+#card")
-	public List<SwiperPicture> getByBannerCard(String card) throws SwiperPictureException {
+	public List<SwiperPicture> getByBannerCard(String card) {
 		List<SwiperPicture> list = swiperPictureMapper.getByBannerCard(card);
 		if (list != null && list.size() > 0) {
 			for (SwiperPicture swiperPicture: list) {
@@ -252,7 +257,7 @@
 	
 	@Override
 	@Cacheable(value = "bannerCache", key = "'getByBannerId-'+#bannerId")
-	public List<SwiperPicture> getByBannerId(Long bannerId) throws SwiperPictureException {
+	public List<SwiperPicture> getByBannerId(Long bannerId) {
 		return swiperPictureMapper.getByBannerId(bannerId);
 	}
 	

--
Gitblit v1.8.0