package cn.lihongjie.coal.empSalaryItemConfig.dto;


import cn.lihongjie.coal.base.dto.OrgCommonDto;

import lombok.Data;

import org.hibernate.annotations.Comment;
import org.hibernate.annotations.Formula;

@Data
public class UpdateEmpSalaryItemConfigDto extends OrgCommonDto {

    @Comment("类别")
    private String itemType;

    @Formula(
            "(select i.name\n"
            + "from t_dictionary d,\n"
            + "     t_dictionary_item i\n"
            + "where d.id = i.dictionary_id\n"
            + "  and d.code = 'emp.salary.item.config.type'\n"
            + "  and i.code = item_type)")
    private String itemTypeName;



    @Comment("表达式")
    private String expression;



    @Comment("表达式-展示")
    private String expressionShow;
}
