@Id
@Comment("ID")
@Prev(@SQL("select IFNULL(MAX(x.id)+1,@beglongId*100000+1) from tm_term x where x.id like '@beglongId%'"))
private long id;
private long beglongId;//
这里的beglongId 会从不同的归属获取值,比如类型A beglongId=100010001 类型B beglongId=3
根据beglongId 生成id, 传过去的beglongId都是不为空的
但是insert事获取的beglongId 是Null,
select IFNULL(MAX(x.id)+1,'NULL'*100000+1) from tm_term x where x.id like ''NULL'%'
是用法有问题吗?