Commit f1f88c4c by 朱亚洁

bug:[none]error日志

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