mybaits if 标签中使用枚举判断

2019-06-03  本文已影响0人  小李_a98e

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>
上一篇 下一篇

猜你喜欢

热点阅读