package com.changhong.epc.bean.tenant.system; import com.changhong.epc.constter.base.BaseBean; import lombok.Data; import lombok.EqualsAndHashCode; import lombok.NoArgsConstructor; import javax.persistence.Column; import javax.persistence.Table; import java.io.Serializable; /** * * @ClassName: SystemConfig * @author [九鼎联合科技] * @date 2017年10月17日 下午01:56:50 */ @Table(name="epc_system_config_{rule}") @Data @NoArgsConstructor @EqualsAndHashCode(callSuper=true) public class SystemConfig extends BaseBean implements Serializable { private static final long serialVersionUID = 1L; /** * 组名称 * 表字段:groupKey */ @Column(name="groupKey") private String groupKey; /** * key * 表字段:key */ @Column(name="ckey") private String ckey; /** * 值 * 表字段:value */ @Column(name="cvalue") private String cvalue; /** * 判断是否主表子表 */ @Column(name="flag") private String flag; /** * 费用类型id * */ @Column(name="back") private String back; public SystemConfig(String groupKey) { this.groupKey = groupKey; } public static SystemConfig of(String groupKey, String cvalue){ SystemConfig systemConfig = new SystemConfig(); systemConfig.setGroupKey(groupKey); systemConfig.setCvalue(cvalue); return systemConfig; } public static SystemConfig ofKey(String groupKey, String ckey){ SystemConfig systemConfig = new SystemConfig(); systemConfig.setGroupKey(groupKey); systemConfig.setCkey(ckey); return systemConfig; } }