提交 37d95a29 编写于 作者: misaka's avatar misaka

update

上级 019a7e71
package cn.ibizlab.businesscentral.core.extensions.service;
import cn.ibizlab.businesscentral.core.odoo_mail.domain.Mail_followers;
import cn.ibizlab.businesscentral.core.odoo_mail.service.impl.Mail_followersServiceImpl;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
@Slf4j
@Primary
@Service("Mail_followersExService")
public class Mail_followersExService extends Mail_followersServiceImpl {
@Override
public boolean create(Mail_followers et) {
Mail_followers exists = new Mail_followers();
exists.setResModel(et.getResModel());
exists.setResId(et.getResId());
if (et.getPartnerId() != null)
exists.setPartnerId(et.getPartnerId());
if (et.getChannelId() != null)
exists.setChannelId(et.getChannelId());
if (this.getBaseMapper().selectCount(new QueryWrapper<Mail_followers>().setEntity(exists)) > 0)
return true;
return super.create(et);
}
public <T> void add_default_followers(T et) {
}
public <T> void add_followers(T et) {
}
public void add_followers(String model, String res_id, String partner_id, String partner_subtype, Long channel_id, String channel_subtype, boolean check_exists, String existing_policy) {
}
}
package cn.ibizlab.businesscentral.core.extensions.service;
import cn.ibizlab.businesscentral.core.odoo_mail.service.impl.Mail_messageServiceImpl;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
@Slf4j
@Primary
@Service("Mail_messageExService")
public class Mail_messageExService extends Mail_messageServiceImpl {
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册