From e7ff00a506c9290dcd75c5e087cae0efbf6fa5c1 Mon Sep 17 00:00:00 2001 From: 101captain <237651143@qq.com> Date: 星期一, 11 七月 2022 17:01:56 +0800 Subject: [PATCH] 导出不带截图接口 --- springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java | 30 +++++++++++------------------- 1 files changed, 11 insertions(+), 19 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java index 0976896..f3aacc8 100644 --- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java +++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/UserApi.java @@ -2,31 +2,22 @@ import static java.util.stream.Collectors.toList; -import java.util.ArrayList; -import java.util.Comparator; -import java.util.Date; -import java.util.List; -import java.util.Objects; -import java.util.Optional; +import java.util.*; import java.util.concurrent.atomic.AtomicBoolean; import java.util.stream.Collectors; import javax.annotation.Resource; +import com.panzhihua.applets.umf.UmfPayUtil; import com.panzhihua.common.constants.HttpStatus; +import com.panzhihua.common.model.vos.community.rentHouse.WxPayOrderVO; +import com.panzhihua.common.utlis.DateUtils; import org.apache.commons.lang.StringUtils; import org.springframework.beans.BeanUtils; import org.springframework.data.redis.core.StringRedisTemplate; import org.springframework.util.ObjectUtils; import org.springframework.validation.annotation.Validated; -import org.springframework.web.bind.annotation.DeleteMapping; -import org.springframework.web.bind.annotation.GetMapping; -import org.springframework.web.bind.annotation.PostMapping; -import org.springframework.web.bind.annotation.PutMapping; -import org.springframework.web.bind.annotation.RequestBody; -import org.springframework.web.bind.annotation.RequestMapping; -import org.springframework.web.bind.annotation.RequestParam; -import org.springframework.web.bind.annotation.RestController; +import org.springframework.web.bind.annotation.*; import com.alibaba.fastjson.JSONArray; import com.alibaba.fastjson.JSONObject; @@ -305,7 +296,7 @@ comActActRegistVOS.forEach(activitySignInVO -> { if (comActActivityVO.getId().equals(activitySignInVO.getActivityId())) { currentList.add(activitySignInVO); - if(comActActivityVO.getType()!=3){ + if(comActActivityVO.getType()!=3&&comActActivityVO.getType()!=5){ comActActivityVO.setIsComment(1); if(comActActivityVO.getTimes()==null){ comActActivityVO.setTimes(1); @@ -336,14 +327,15 @@ } else { comActActivityVO.setActivitySignInList(currentList); } - if(comActActivityVO.getLimit()>0&¤tList.size()>0){ - if(comActActivityVO.getType()==3){ - if(comActActivityVO.getLimit()==currentList.size()||currentList.get(currentList.size()-1).getEndTime()!=null){ + Integer limit = comActActivityVO.getLimit(); + if(limit != null && limit>0 &¤tList.size()>0){ + if(comActActivityVO.getType()==3||comActActivityVO.getType()==5){ + if(limit==currentList.size()&¤tList.get(currentList.size()-1).getEndTime()!=null){ comActActivityVO.setIsRegist(1); } } else { - if(comActActivityVO.getLimit()==currentList.size()){ + if(limit==currentList.size()){ comActActivityVO.setIsRegist(1); } } -- Gitblit v1.7.1