| | |
| | | .between(AppUserViewingHistory::getCreateTime, startOfDay, endOfDay).list(); |
| | | int temp = 0; |
| | | for (AppUserViewingHistory appUserViewingHistory : list) { |
| | | temp += appUserViewingHistory.getTimeLook(); |
| | | if (appUserViewingHistory.getTimeLook()!=null){ |
| | | temp += appUserViewingHistory.getTimeLook(); |
| | | |
| | | } |
| | | } |
| | | AppUserTree one = appUserTreeService.lambdaQuery().eq(AppUserTree::getAppUserId, userId) |
| | | .eq(AppUserTree::getSowAgain, 2).one(); |
| | |
| | | noticeRecord.setReadStatus(1); |
| | | noticeRecord.setNoticeType(1); |
| | | noticeRecord.setTitle("树苗升级通知"); |
| | | noticeRecord.setContent("恭喜,您的树苗已升至"+y+"级,"+"继续加油哦"); |
| | | noticeRecord.setContent("恭喜,您的树苗已升至"+x+"级,"+"继续加油哦"); |
| | | noticeRecordService.save(noticeRecord); |
| | | } |
| | | return R.ok(wateringVO); |