mybaits if 标签中使用枚举判断
package com.example.demo.enums;
public enum TaskType {
IS_MY(0,"我参与的"),
MY_DISPATCH(1,"我分配的"),
MY_CHARGE(2,"我负责的");
private Integer code;
private String value;
TaskType(Integer code,String value){
this.code = code;
this.value = value;
}
public Integer getCode() {
return code;
}
public void setCode(Integer code) {
this.code = code;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
<if test="cityName == @com.weather.weatherexpert.common.utils.City@XINZHOU.getName"><!--right-->
area_table
</if>
网友评论