Commit a21a5992 by 田超

Merge branch 'bug/errorlog' into 'master'

bug:[none]error日志

See merge request rays/pcloud-book!1425
parents d4fe6df4 f1f88c4c
...@@ -261,6 +261,9 @@ public class ReaderConsr { ...@@ -261,6 +261,9 @@ public class ReaderConsr {
@ParamLog("公众号用户数量") @ParamLog("公众号用户数量")
public Integer getAccountUserCountByTime(Long officialAccountsId, String startTime, String endTime){ public Integer getAccountUserCountByTime(Long officialAccountsId, String startTime, String endTime){
if (null == officialAccountsId) {
return 0;
}
Integer count = 0; Integer count = 0;
try { try {
count = ResponseHandleUtil.parseResponse(wechatUserService.getAccountUserCountByTime(officialAccountsId, startTime, endTime),Integer.class); count = ResponseHandleUtil.parseResponse(wechatUserService.getAccountUserCountByTime(officialAccountsId, startTime, endTime),Integer.class);
...@@ -391,6 +394,9 @@ public class ReaderConsr { ...@@ -391,6 +394,9 @@ public class ReaderConsr {
@ParamLog("查用户年级标签") @ParamLog("查用户年级标签")
public UserGradeLabelIdDTO getUserGrade(Long wechatUserId, Long officialAccountsId) { public UserGradeLabelIdDTO getUserGrade(Long wechatUserId, Long officialAccountsId) {
if (null == wechatUserId || null == officialAccountsId) {
return null;
}
UserGradeLabelIdDTO dto = new UserGradeLabelIdDTO(); UserGradeLabelIdDTO dto = new UserGradeLabelIdDTO();
try { try {
dto = ResponseHandleUtil.parseResponse(userLabelService.getUserGrade(wechatUserId, officialAccountsId),UserGradeLabelIdDTO.class); dto = ResponseHandleUtil.parseResponse(userLabelService.getUserGrade(wechatUserId, officialAccountsId),UserGradeLabelIdDTO.class);
...@@ -402,6 +408,9 @@ public class ReaderConsr { ...@@ -402,6 +408,9 @@ public class ReaderConsr {
@ParamLog("查询指定用户是否授权") @ParamLog("查询指定用户是否授权")
public WechatUserOfficialAccounts getOfficialAccounts(Long officialAccountsId, String openId, Long wechatUserId) { public WechatUserOfficialAccounts getOfficialAccounts(Long officialAccountsId, String openId, Long wechatUserId) {
if (null == officialAccountsId || null == wechatUserId || StringUtil.isEmpty(openId)) {
return null;
}
WechatUserOfficialAccounts accounts = new WechatUserOfficialAccounts(); WechatUserOfficialAccounts accounts = new WechatUserOfficialAccounts();
try { try {
accounts = ResponseHandleUtil.parseResponse(wechatUserService.getOfficialAccounts(officialAccountsId, openId, wechatUserId), WechatUserOfficialAccounts.class); accounts = ResponseHandleUtil.parseResponse(wechatUserService.getOfficialAccounts(officialAccountsId, openId, wechatUserId), WechatUserOfficialAccounts.class);
......
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