| | |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.panzhihua.common.exception.ServiceException; |
| | | import com.panzhihua.common.model.vos.R; |
| | | import com.panzhihua.common.model.vos.SystemmanagementConfigVO; |
| | | import com.panzhihua.common.model.vos.community.*; |
| | | import com.panzhihua.common.model.vos.user.UserPhoneVO; |
| | | import com.panzhihua.service_community.model.dos.ComActActPrizeDO; |
| | |
| | | R r = comActActivityService.listActivitySign(activitySignVO); |
| | | if (R.isOk(r)) { |
| | | List<ActivitySignVO> activitySignVOS = (List<ActivitySignVO>) r.getData(); |
| | | comActActivityVO.setActivitySignVOList(activitySignVOS); |
| | | int size = activitySignVOS.size(); |
| | | if (size>=6) { |
| | | comActActivityVO.setActivitySignVOList(activitySignVOS.subList(0,6)); |
| | | } else { |
| | | comActActivityVO.setActivitySignVOList(activitySignVOS); |
| | | } |
| | | } |
| | | return R.ok(comActActivityVO); |
| | | } |
| | |
| | | return comMngStructOtherBuildService.listComMngStructBuildType(communityId); |
| | | } |
| | | |
| | | /** |
| | | * 增加删除建筑类型 |
| | | * @param systemmanagementConfigVO 操作内容 |
| | | * @return 操作结果 |
| | | */ |
| | | @PostMapping("putcommngstructbuildtype") |
| | | public R putComMngStructBuildType(@RequestBody SystemmanagementConfigVO systemmanagementConfigVO){ |
| | | try { |
| | | R r=comMngStructOtherBuildService.putComMngStructBuildType(systemmanagementConfigVO); |
| | | } catch (ServiceException e) { |
| | | return R.fail(e.getMessage()); |
| | | } |
| | | return R.ok(); |
| | | } |
| | | |
| | | } |