|
|
@ -118,7 +118,10 @@ public class UserPointTotalServiceImpl extends BaseServiceImpl<UserPointTotalDao |
|
|
|
**/ |
|
|
|
@Override |
|
|
|
public ResiPointDetailResultDTO getMyPoint(ResiCommonUserIdFormDTO userId) { |
|
|
|
return baseDao.selectPointByUserId(userId.getUserId()); |
|
|
|
ResiPointDetailResultDTO result = baseDao.selectPointByUserId(userId.getUserId()); |
|
|
|
if(null == result) return new ResiPointDetailResultDTO(); |
|
|
|
if(null == result.getUsablePoint() || null == result.getAccumulatedPoint()) return new ResiPointDetailResultDTO(); |
|
|
|
return result; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|