| | |
| | | * @return 详情 |
| | | */ |
| | | @PostMapping("detailactivity") |
| | | public R detailActivity(@RequestParam("id") Long id, @RequestParam("userId") Long userId) { |
| | | public R detailActivity(@RequestParam("id") Long id, @RequestParam(value = "userId",required = false) Long userId) { |
| | | ComActActivityVO comActActivityVO = comActActivityService.inforActivity(id, userId); |
| | | if (ObjectUtils.isEmpty(comActActivityVO)) { |
| | | return R.fail("活动不存在"); |
| | |
| | | } |
| | | } |
| | | |
| | | if(StringUtils.isEmpty(comActDynVO.getCover())){ |
| | | comActDynVO.setCover(comActDynDO.getCover()); |
| | | } |
| | | // if(StringUtils.isEmpty(comActDynVO.getCover())){ |
| | | // comActDynVO.setCover(comActDynDO.getCover()); |
| | | // } |
| | | BeanUtils.copyProperties(comActDynVO, comActDynDO); |
| | | |
| | | boolean update = comActDynService.updateById(comActDynDO); |