| | |
| | | Page page = new Page<>(); |
| | | Long pageNum = comActMicroWishVO.getPageNum(); |
| | | Long pageSize = comActMicroWishVO.getPageSize(); |
| | | if (ObjectUtils.isEmpty(pageNum) || 0 == pageNum) { |
| | | if (null==pageNum || 0 == pageNum) { |
| | | pageNum = 1l; |
| | | } |
| | | if (ObjectUtils.isEmpty(pageSize) || 0 == pageSize) { |
| | | if (null==pageSize || 0 == pageSize) { |
| | | pageSize = 10l; |
| | | } |
| | | page.setSize(pageSize); |
| | |
| | | @Override |
| | | public R detailMicroWish(Long id, Long userId) { |
| | | ComActMicroWishVO comActMicroWishVO = comActMicroWishDAO.detailMicroWish(id); |
| | | Integer starNum = comActMicroWishVO.getStarNum(); |
| | | if (null==starNum) { |
| | | comActMicroWishVO.setStarNum(0); |
| | | } |
| | | if (ObjectUtils.isEmpty(comActMicroWishVO)) { |
| | | return R.fail("心愿不存在"); |
| | | } |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | } |