| | |
| | | } else { |
| | | appUserTree.setIsSign(2); |
| | | } |
| | | if (temp >= 120) { |
| | | if (temp >= 3600) { |
| | | if (appUserTree.getTaskOne() == 2) { |
| | | AppUserEnergyRecord appUserEnergyRecord = new AppUserEnergyRecord(); |
| | | appUserEnergyRecord.setAppUserId(userId); |
| | |
| | | } |
| | | appUserTree.setTaskOne(1); |
| | | appUserTree.setTaskTwo(1); |
| | | } else if (temp >= 60) { |
| | | } else if (temp >= 1800) { |
| | | if (appUserTree.getTaskOne() == 2) { |
| | | AppUserEnergyRecord appUserEnergyRecord = new AppUserEnergyRecord(); |
| | | appUserEnergyRecord.setAppUserId(userId); |
| | |
| | | appUserTree.setTotalEnergyValue(byId.getTotalEnergyValue()); |
| | | return R.ok(appUserTree); |
| | | } else { |
| | | if (temp >= 120) { |
| | | if (temp >= 3600) { |
| | | if (one.getTaskOne() == 2) { |
| | | AppUserEnergyRecord appUserEnergyRecord = new AppUserEnergyRecord(); |
| | | appUserEnergyRecord.setAppUserId(userId); |
| | |
| | | } |
| | | one.setTaskOne(1); |
| | | one.setTaskTwo(1); |
| | | } else if (temp >= 60) { |
| | | } else if (temp >= 1800) { |
| | | if (one.getTaskOne() == 2) { |
| | | AppUserEnergyRecord appUserEnergyRecord = new AppUserEnergyRecord(); |
| | | appUserEnergyRecord.setAppUserId(userId); |
| | |
| | | noticeRecord.setReadStatus(1); |
| | | noticeRecord.setNoticeType(1); |
| | | noticeRecord.setTitle("树苗升级通知"); |
| | | noticeRecord.setContent("恭喜,您的树苗已升至"+y+"级,"+"继续加油哦"); |
| | | noticeRecord.setContent("恭喜,您的树苗已升至"+x+"级,"+"继续加油哦"); |
| | | noticeRecordService.save(noticeRecord); |
| | | } |
| | | return R.ok(wateringVO); |