给MyBatis的sql传递枚举变量

以传入枚举作为if条件为例:
外层对象:dto
枚举类:TypeEnum

<if test = "dto.typeEnum != @com.yang.enumate.TypeEnum.FIRST">
posted @ 2021-01-11 22:01  JaxYoun  阅读(621)  评论(0编辑  收藏  举报