Commit 354fac5f by 吴博

bug: [none] fixRightsSetting

parent dedd3028
......@@ -52,6 +52,7 @@ import org.springframework.web.bind.annotation.RestController;
import java.util.List;
import java.util.Map;
import java.util.Objects;
@Api(description = "小睿小程序首页")
@RestController("appletHomeFacade")
......@@ -541,10 +542,14 @@ public class AppletHomeFacade {
@CookieValue("userInfo") String userInfo,
@RequestParam(value = "bookId") @ApiParam("BookId") Long bookId,
@RequestParam(value = "channelId") @ApiParam("channelId") Long channelId,
@RequestParam(value = "rightsSettingId",required = false) @ApiParam("rightsSettingId") Long rightsSettingId,
@RequestParam(value = "rightsSettingId",required = false) @ApiParam("rightsSettingId") String rightsSettingId,
@RequestParam(value = "adviserId") @ApiParam("adviserId") Long adviserId){
Long wechatUserId = Cookie.getId(userInfo,Cookie._WECHAT_USER_ID);
return new ResponseDto<>(appletUserBookcaseBiz.getUserBookInfoByWechatUserId(bookId,channelId,adviserId,rightsSettingId));
Long rightsSettingId4Num = null;
if (NumberUtil.isNumber(rightsSettingId)) {
rightsSettingId4Num = NumberUtil.toLong(rightsSettingId);
}
return new ResponseDto<>(appletUserBookcaseBiz.getUserBookInfoByWechatUserId(bookId,channelId,adviserId,rightsSettingId4Num));
}
@ApiOperation("新增用户资源点击记录")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment