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

update

上级 946a1b13
......@@ -8,6 +8,12 @@ import org.javers.core.diff.Diff;
public class EBSServiceImpl<M extends BaseMapper<T>, T extends EntityMP> extends ServiceImpl<M, T> {
/**
* 获取消息子类型
* @param et
* @param diff
* @return
*/
public Mail_message_subtype getMessageSubType(T et, Diff diff){
Mail_message_subtype message_subtype = new Mail_message_subtype();
message_subtype.setId(2l);
......@@ -18,4 +24,14 @@ public class EBSServiceImpl<M extends BaseMapper<T>, T extends EntityMP> extends
return "";
}
/**
* 获取实体实例
* @param clazz
* @return
* @throws Exception
*/
public T getInstance(Class<T> clazz) throws Exception {
return clazz.newInstance();
}
}
package cn.ibizlab.businesscentral.util.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.FIELD})
public @interface DynaProperty {
String res_model() default "";
Class reference() ;
String reference_field() ;
String pickup_text() ;
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册