提交 377e3598 编写于 作者: misaka's avatar misaka

update

上级 41872566
......@@ -50,10 +50,19 @@ public class Mail_followersExService extends Mail_followersServiceImpl {
exists.setChannelId(et.getChannelId());
if (this.getBaseMapper().selectCount(new QueryWrapper<Mail_followers>().setEntity(exists)) > 0)
return true;
et.set("mail_create_nosubscribe",true);
et.set("mail_create_nolog",true);
et.set("mail_notrack",true);
return super.create(et);
}
public <T extends EntityMP> void add_default_followers(EBSServiceImpl service ,T et) {
@Override
public boolean update(Mail_followers et) {
et.set("mail_notrack",true);
return super.update(et);
}
public <T extends EntityMP> void add_default_followers(EBSServiceImpl service , T et) {
if (et.get("id") == null) {
return;
}
......
......@@ -18,6 +18,20 @@ public class Mail_messageExService extends Mail_messageServiceImpl {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
@Override
public boolean create(Mail_message et) {
et.set("mail_create_nosubscribe",true);
et.set("mail_create_nolog",true);
et.set("mail_notrack",true);
return super.create(et);
}
@Override
public boolean update(Mail_message et) {
et.set("mail_notrack",true);
return super.update(et);
}
@Override
public Mail_message generate_tracking_message_id(Mail_message et) {
System.out.println(System.currentTimeMillis()/1000);
......
......@@ -8,11 +8,11 @@ import cn.ibizlab.businesscentral.core.odoo_ir.service.IIr_model_fieldsService;
import cn.ibizlab.businesscentral.core.odoo_mail.domain.Mail_message;
import cn.ibizlab.businesscentral.core.odoo_mail.domain.Mail_message_subtype;
import cn.ibizlab.businesscentral.core.odoo_mail.service.IMail_messageService;
import cn.ibizlab.businesscentral.core.odoo_mail.service.IMail_tracking_valueService;
import cn.ibizlab.businesscentral.core.odoo_mail.service.impl.Mail_tracking_valueServiceImpl;
import cn.ibizlab.businesscentral.core.util.helper.EBSServiceImpl;
import cn.ibizlab.businesscentral.util.domain.EntityMP;
import cn.ibizlab.businesscentral.util.helper.CaseFormatMethod;
import cn.ibizlab.businesscentral.util.security.AuthenticationUser;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
import cn.ibizlab.businesscentral.core.odoo_mail.domain.Mail_tracking_value;
......@@ -48,21 +48,26 @@ public class Mail_tracking_valueExService extends Mail_tracking_valueServiceImpl
@Autowired
IRes_partnerService res_partnerService;
@Autowired
IMail_tracking_valueService mail_tracking_valueService;
@Override
protected Class currentModelClass() {
return com.baomidou.mybatisplus.core.toolkit.ReflectionKit.getSuperClassGenericType(this.getClass().getSuperclass(), 1);
}
/**
* 自定义行为[A]用户扩展
*
* @param et
* @return
*/
@Override
@Transactional
public Mail_tracking_value a(Mail_tracking_value et) {
return super.a(et);
public boolean create(Mail_tracking_value et) {
et.set("mail_create_nosubscribe",true);
et.set("mail_create_nolog",true);
et.set("mail_notrack",true);
return super.create(et);
}
@Override
public boolean update(Mail_tracking_value et) {
et.set("mail_notrack",true);
return super.update(et);
}
@Transactional
......@@ -139,9 +144,11 @@ public class Mail_tracking_valueExService extends Mail_tracking_valueServiceImpl
tracking_value.setField(ir_model_fields.getName());
tracking_value.setFieldDesc(ir_model_fields.getFieldDescription());
tracking_value.setFieldType(ir_model_fields.getTtype());
tracking_value.setTrackSequence(ir_model_fields.getTracking());
tracking_value.setTrackingSequence(ir_model_fields.getTracking());
setTrackingValue(tracking_value, ir_model_fields, vchange);
mail_tracking_valueService.create(tracking_value);
tracking_values.add(tracking_value);
}
}
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册