|
@@ -1,6 +1,7 @@
|
|
|
package org.jeecg.modules.system.app.service.impl;
|
|
|
|
|
|
import cn.hutool.core.collection.CollUtil;
|
|
|
+import cn.hutool.core.util.ObjectUtil;
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
|
|
@@ -838,9 +839,11 @@ public class AppSitePlaceServiceImpl extends ServiceImpl<AppSitePlaceMapper, App
|
|
|
|
|
|
if (ObjectUtils.isNotEmpty(appSitePlace)) {
|
|
|
schoolPlaceAddDTO
|
|
|
- .setCover(appSitePlace.getCover().split( ",")[0])
|
|
|
.setInsureIds(appSitePlace.getInsureIds())
|
|
|
.setReminder(appSitePlace.getReminder());
|
|
|
+ if (ObjectUtil.isNotEmpty(appSitePlace.getCover())) {
|
|
|
+ schoolPlaceAddDTO.setCover(appSitePlace.getCover().split( ",")[0]);
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
if ("admin".equals(loginUser.getRoleCode())) {
|
|
@@ -855,7 +858,7 @@ public class AppSitePlaceServiceImpl extends ServiceImpl<AppSitePlaceMapper, App
|
|
|
public AppSitePlaceParkDTO queryPack(String siteId) {
|
|
|
AppSitePlaceParkDTO appSitePlaceParkDTO = new AppSitePlaceParkDTO();
|
|
|
AppSite site = appSiteMapper.selectById(siteId);
|
|
|
- List<AppSitePlace> appSitePlaceList = this.baseMapper.selectList(Wrappers.<AppSitePlace>lambdaQuery().eq(AppSitePlace::getSiteId, site.getId()).eq(AppSitePlace::getType, 1));
|
|
|
+ List<AppSitePlace> appSitePlaceList = this.baseMapper.selectList(Wrappers.<AppSitePlace>lambdaQuery().eq(AppSitePlace::getSiteId, site.getId()).eq(AppSitePlace::getType, SitePlaceTypeEnum.PACKAGE.getCode()));
|
|
|
if (ObjectUtils.isNotEmpty(appSitePlaceList)) {
|
|
|
List<AppSiteCategoryRuleDTO> appSiteCategoryRuleDTOS = new ArrayList<>();
|
|
|
if (CollUtil.isNotEmpty(appSitePlaceList)) {
|