From 554de444b87aab5f93cb1593a8095612cf9479a7 Mon Sep 17 00:00:00 2001 From: yujian <yujian@163.com> Date: 星期二, 09 六月 2020 17:34:30 +0800 Subject: [PATCH] 订单 --- fanli/src/main/java/com/yeshi/fanli/service/impl/homemodule/SwiperPictureServiceImpl.java | 18 ++++++++++++++---- 1 files changed, 14 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 213727c..7f4e743 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 @@ -84,9 +84,8 @@ } @Override - public List<BannerVO> queryByBannerID(long start, int count, Long bannerId) throws SwiperPictureException { - List<SwiperPicture> list = swiperPictureMapper.queryByBannerID(start, count, bannerId); - return transformVO(list); + public List<SwiperPicture> queryByBannerID(long start, int count, Long bannerId) throws SwiperPictureException { + return swiperPictureMapper.queryByBannerID(start, count, bannerId); } @Override @@ -107,7 +106,7 @@ } String params = record.getParams(); - if (params == null || params.trim().length() == 0 || "null".equalsIgnoreCase(params)) { + if (params == null || params.trim().length() == 0 || "null".equalsIgnoreCase(params) || "\"null\"".equalsIgnoreCase(params)) { record.setParams(null); } else if (!StringUtil.isJson(params)) { throw new SwiperPictureException(1, "璺宠浆鍙傛暟闈濲SON鏍煎紡"); @@ -115,6 +114,17 @@ record.setParams(params.trim()); } + String title = record.getTitle(); + if (!StringUtil.isNullOrEmpty(title) && ("null".equalsIgnoreCase(title) || "\"null\"".equalsIgnoreCase(title))) { + record.setTitle(null); + } + + String desc = record.getDesc(); + if (!StringUtil.isNullOrEmpty(desc) && ("null".equalsIgnoreCase(desc) || "\"null\"".equalsIgnoreCase(desc))) { + record.setDesc(null); + } + + if (!StringUtil.isNullOrEmpty(jumpType)) { List<JumpDetailV2> listByType = jumpDetailV2Service.listByType(jumpType); if (listByType != null && listByType.size() > 0) { -- Gitblit v1.8.0