Commit 3b2835db by Administrator

Merge branch 'fixbug/nullpointer' into 'master'

bug: [none] 解决未使用的群再更新时出现的空指针异常

See merge request rays/pcloud-book!838
parents b52fb6ce 002836fe
...@@ -215,7 +215,9 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz { ...@@ -215,7 +215,9 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz {
private void updateMediaId(UpdateQrDTO updateQrDTO,Long accountId,String coverMediaId) { private void updateMediaId(UpdateQrDTO updateQrDTO,Long accountId,String coverMediaId) {
WeixinQrcode qrcode = weixinQrcodeDao.getById(updateQrDTO.getId()); WeixinQrcode qrcode = weixinQrcodeDao.getById(updateQrDTO.getId());
// 未使用的群暂时不做处理
GroupQrcode baseById = groupQrcodeDao.getByWxGroupId(qrcode.getWeixinGroupId()); GroupQrcode baseById = groupQrcodeDao.getByWxGroupId(qrcode.getWeixinGroupId());
if (baseById!=null&&baseById.getId()!=null){
String mediaId = groupQrcodeDao.getMediaId(baseById.getId()); String mediaId = groupQrcodeDao.getMediaId(baseById.getId());
GroupNewsMaterialAddDTO groupNewsMaterialAddDTO = new GroupNewsMaterialAddDTO(); GroupNewsMaterialAddDTO groupNewsMaterialAddDTO = new GroupNewsMaterialAddDTO();
groupNewsMaterialAddDTO.setAccountId(accountId); groupNewsMaterialAddDTO.setAccountId(accountId);
...@@ -229,6 +231,7 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz { ...@@ -229,6 +231,7 @@ public class WeixinQrcodeBizImpl implements WeixinQrcodeBiz {
groupQrcodeDao.updateMediaId(baseById.getId(),mediaId); groupQrcodeDao.updateMediaId(baseById.getId(),mediaId);
} }
} }
}
@Override @Override
@ParamLog("发起未处理的二维码更新请求") @ParamLog("发起未处理的二维码更新请求")
......
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