Authored by zhaoqing

Merge branch 'dev-limitqueue-6.7' into test6.7

... ... @@ -49,11 +49,15 @@ public class ProductLimitUserHelpRest {
logger.info("ProductLimitUserHelpRest addHelpUserInfo result can not null");
return new ApiResponse.ApiResponseBuilder().code(400).message("入参不可为空").build();
}
if (null == limitProductHelpUserRequestBO.getUserId() || null == limitProductHelpUserRequestBO.getLimitProductCode() || null == limitProductHelpUserRequestBO.getHelpUserId()){
logger.info("ProductLimitUserHelpRest addHelpUserInfo missing params ");
return new ApiResponse.ApiResponseBuilder().code(400).message("入参不完整,缺少入参").build();
}
//判断用户是否已经助力
Boolean flag = iProductLimitUserHelpService.judgeHelpUserExist(limitProductHelpUserRequestBO);
if (flag){
logger.info("ProductLimitUserHelpRest addHelpUserInfo can not help repeat");
return new ApiResponse.ApiResponseBuilder().code(400).message("用户已经助力过,不可重复助力").build();
return new ApiResponse.ApiResponseBuilder().code(401).message("用户已经助力过,不可重复助力").build();
}
iProductLimitUserHelpService.addHelpUserInfo(limitProductHelpUserRequestBO);
logger.info("ProductLimitUserHelpRest addHelpUserInfo success");
... ...