Commit fcf11c6a by guojuxing

资源解除失败发送站内通知

parent 6cbd1e55
......@@ -51,6 +51,8 @@ public class UnionEnterpriseAuthResDetailApiServiceImpl implements UnionEnterpri
private EnterpriseService enterpriseService;
@Autowired
private UserApiService userApiService;
@Autowired
private PushMessageApiService pushMessageApiService;
private static String SMS_CODE_TO_OWN = "GICSHHT002";
private static String SMS_CODE_TO_UNION = "GICSHHT012";
......@@ -128,6 +130,9 @@ public class UnionEnterpriseAuthResDetailApiServiceImpl implements UnionEnterpri
if (!smsSendResult.isSuccess()) {
LOGGER.warn("资源解除失败发送短信错误信息:{}", JSON.toJSONString(smsSendResult));
}
pushMessageApiService.pushUserMessage(ownEnterpriseId, userResponse.getResult().getUserId(), "系统消息",
"解除联合商户",
"抱歉,解除联合过程中出现异常,收回" + UnionEnterpriseAuthResTypeEnum.getMessage(resourceType) + "出现异常,请联系达摩客服解决");
}
unionEnterpriseAuthService.update(dto);
......
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