Merge branch 'dev-limitqueue-6.7' into test6.7
Showing
1 changed file
with
5 additions
and
1 deletions
@@ -49,11 +49,15 @@ public class ProductLimitUserHelpRest { | @@ -49,11 +49,15 @@ public class ProductLimitUserHelpRest { | ||
49 | logger.info("ProductLimitUserHelpRest addHelpUserInfo result can not null"); | 49 | logger.info("ProductLimitUserHelpRest addHelpUserInfo result can not null"); |
50 | return new ApiResponse.ApiResponseBuilder().code(400).message("入参不可为空").build(); | 50 | return new ApiResponse.ApiResponseBuilder().code(400).message("入参不可为空").build(); |
51 | } | 51 | } |
52 | + if (null == limitProductHelpUserRequestBO.getUserId() || null == limitProductHelpUserRequestBO.getLimitProductCode() || null == limitProductHelpUserRequestBO.getHelpUserId()){ | ||
53 | + logger.info("ProductLimitUserHelpRest addHelpUserInfo missing params "); | ||
54 | + return new ApiResponse.ApiResponseBuilder().code(400).message("入参不完整,缺少入参").build(); | ||
55 | + } | ||
52 | //判断用户是否已经助力 | 56 | //判断用户是否已经助力 |
53 | Boolean flag = iProductLimitUserHelpService.judgeHelpUserExist(limitProductHelpUserRequestBO); | 57 | Boolean flag = iProductLimitUserHelpService.judgeHelpUserExist(limitProductHelpUserRequestBO); |
54 | if (flag){ | 58 | if (flag){ |
55 | logger.info("ProductLimitUserHelpRest addHelpUserInfo can not help repeat"); | 59 | logger.info("ProductLimitUserHelpRest addHelpUserInfo can not help repeat"); |
56 | - return new ApiResponse.ApiResponseBuilder().code(400).message("用户已经助力过,不可重复助力").build(); | 60 | + return new ApiResponse.ApiResponseBuilder().code(401).message("用户已经助力过,不可重复助力").build(); |
57 | } | 61 | } |
58 | iProductLimitUserHelpService.addHelpUserInfo(limitProductHelpUserRequestBO); | 62 | iProductLimitUserHelpService.addHelpUserInfo(limitProductHelpUserRequestBO); |
59 | logger.info("ProductLimitUserHelpRest addHelpUserInfo success"); | 63 | logger.info("ProductLimitUserHelpRest addHelpUserInfo success"); |
-
Please register or login to post a comment