update 分享发消息

This commit is contained in:
liao
2023-11-13 13:56:33 +08:00
parent 3e7925cd4e
commit 2a1086e392
@@ -113,8 +113,6 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
@ApiOperation(value = "标准分享-国内分享", notes = "标准分享-国内分享")
@PostMapping(value = "/domestic/add")
public Result<T> domesticAdd(@Validated @RequestBody LawsStandardSharing lawsStandardSharing) {
// 发送消息
sendMsg(lawsStandardSharing);
LoginUser sysUser = (LoginUser) SecurityUtils.getSubject().getPrincipal();
SysUser user = sysUserService.getById(sysUser.getId());
String recipientId = lawsStandardSharing.getRecipientId();
@@ -138,6 +136,8 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
sharing.setReadingStatus("1");
sharing.setDelFlag(CommonConstant.DEL_FLAG_0.toString());
sharings.add(sharing);
// 发送消息
sendMsg(sharing);
}
lawsStandardSharingService.saveBatch(sharings);
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));
@@ -191,6 +191,8 @@ public class LawsStandardSharingController extends JeroController<LawsStandardSh
sharing.setReadingStatus("1");
sharing.setDelFlag(CommonConstant.DEL_FLAG_0.toString());
sharings.add(sharing);
// 发送消息
sendMsg(sharing);
}
lawsStandardSharingService.saveBatch(sharings);
return Result.OK(MessageUtils.getMessage(ResultCommon.OK));