提交 8c293470 编写于 作者: misaka's avatar misaka

update

上级 e142ef17
......@@ -9,6 +9,7 @@ import cn.ibizlab.businesscentral.core.odoo_mail.filter.Mail_message_subtypeSear
import cn.ibizlab.businesscentral.core.odoo_mail.service.IMail_followers_mail_message_subtype_relService;
import cn.ibizlab.businesscentral.core.odoo_mail.service.IMail_message_subtypeService;
import cn.ibizlab.businesscentral.core.odoo_mail.service.impl.Mail_followersServiceImpl;
import cn.ibizlab.businesscentral.core.util.helper.EBSServiceImpl;
import cn.ibizlab.businesscentral.util.domain.EntityMP;
import cn.ibizlab.businesscentral.util.security.AuthenticationUser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
......@@ -52,7 +53,7 @@ public class Mail_followersExService extends Mail_followersServiceImpl {
return super.create(et);
}
public <T extends EntityMP> void add_default_followers(T et) {
public <T extends EntityMP> void add_default_followers(EBSServiceImpl service ,T et) {
if (et.get("id") == null) {
return;
}
......@@ -64,14 +65,14 @@ public class Mail_followersExService extends Mail_followersServiceImpl {
AuthenticationUser user = AuthenticationUser.getAuthenticationUser();
Res_users res_users = res_usersService.get(Long.parseLong(user.getUserid()));
Mail_followers follower = new Mail_followers();
follower.setResModel(et.getIrModel());
follower.setResModel(service.getIrModel());
follower.setResId(Integer.parseInt(et.get("id").toString()));
follower.setPartnerId(res_users.getPartnerId());
this.create(follower);
//关注消息类型
Mail_message_subtypeSearchContext ctx = new Mail_message_subtypeSearchContext();
ctx.set("res_model", et.getIrModel());
ctx.set("res_model", service.getIrModel());
List<Mail_message_subtype> message_subtypes = mail_message_subtypeService.searchDefaultEx(ctx).getContent();
for (Mail_message_subtype message_subtype : message_subtypes) {
Mail_followers_mail_message_subtype_rel rel = new Mail_followers_mail_message_subtype_rel();
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册