| | |
| | | |
| | | @Override |
| | | @Transactional(rollbackFor = Exception.class) |
| | | public Boolean add(String integral, String method, Integer gameId, Integer storyId) { |
| | | public Boolean add(String integral, String method, Integer gameId, Integer storyId, Integer difficulty) { |
| | | TIntegralRecord integralRecord = new TIntegralRecord(); |
| | | integralRecord.setIntegral(integral); |
| | | integralRecord.setMethod(method); |
| | | integralRecord.setUserId(tokenService.getLoginUserStudy().getUserid()); |
| | | integralRecord.setGameId(gameId); |
| | | integralRecord.setStoryId(storyId); |
| | | integralRecord.setGameDifficulty(difficulty); |
| | | return this.save(integralRecord); |
| | | } |
| | | } |