| | |
| | | @Param("userId") String userId); |
| | | |
| | | |
| | | UserIntegral getUserIntegral(@Param("userId") String userId); |
| | | UserIntegral getUserIntegral(@Param("userId") String userId,@Param("communityId") String communityId); |
| | | |
| | | int addUserIntegral(@Param("item") UserIntegral item); |
| | | |
| | |
| | | NeedProblemInventoryDTO dto=inventoryService.getDetails(taskId,userId); |
| | | UserTrade userTrade=new UserTrade(); |
| | | //增加积分 |
| | | UserIntegral integral = baseMapper.getUserIntegral(userId); |
| | | UserIntegral integral = baseMapper.getUserIntegral(userId,dto.getCommunityId()); |
| | | if (integral == null) { |
| | | UserIntegral addIn = new UserIntegral(); |
| | | addIn.setId(Snowflake.getId()+""); |
| | |
| | | create_at, |
| | | community_id |
| | | from com_act_integral_user |
| | | where user_id =#{userId} |
| | | where user_id =#{userId} and community_id=#{communityId} |
| | | </select> |
| | | |
| | | |