提交 fcafad2b 编写于 作者: ibizdev's avatar ibizdev

zhouweidong 发布系统代码

上级 27c7e809
!!!!模版产生代码错误:---- package cn.ibizlab.core.lite.domain;
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- import java.sql.Timestamp;
import java.util.ArrayList;
---- import java.util.List;
FTL stack trace ("~" means nesting-related): import java.util.Map;
- Failed at: ${privateCodeName} [in template "CODETEMPL_en_US" at line 334, column 32] import java.math.BigInteger;
---- import java.util.HashMap;
\ No newline at end of file import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[组件]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZCOMPONENT",resultMap = "DstComponentResultMap")
public class DstComponent extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 部件标识
*/
@DEField(name = "cid" , isKeyField=true)
@TableId(value= "cid",type=IdType.ASSIGN_UUID)
@JSONField(name = "id")
@JsonProperty("id")
private String id;
/**
* 名称
*/
@DEField(name = "cname")
@TableField(value = "cname")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 代码名称
*/
@TableField(value = "codename")
@JSONField(name = "code_name")
@JsonProperty("code_name")
private String codeName;
/**
* 系统标识
*/
@TableField(value = "systemid")
@JSONField(name = "system_id")
@JsonProperty("system_id")
private String systemId;
/**
* 应用标识
*/
@TableField(value = "appid")
@JSONField(name = "app_id")
@JsonProperty("app_id")
private String appId;
/**
* 类型
*/
@DEField(name = "ctype")
@TableField(value = "ctype")
@JSONField(name = "type")
@JsonProperty("type")
private String type;
/**
* 实体标识
*/
@TableField(value = "entityid")
@JSONField(name = "entity_id")
@JsonProperty("entity_id")
private String entityId;
/**
* 主实体
*/
@TableField(exist = false)
@JSONField(name = "entity_name")
@JsonProperty("entity_name")
private String entityName;
/**
* 配置
*/
@DEField(name = "cfg")
@TableField(value = "cfg")
@JSONField(name = "config")
@JsonProperty("config")
private String config;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstApp app;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstSystem system;
/**
* 实体
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.MetaEntity factEntity;
/**
* 设置 [名称]
*/
public void setName(String name){
this.name = name ;
this.modify("cname",name);
}
/**
* 设置 [代码名称]
*/
public void setCodeName(String codeName){
this.codeName = codeName ;
this.modify("codename",codeName);
}
/**
* 设置 [系统标识]
*/
public void setSystemId(String systemId){
this.systemId = systemId ;
this.modify("systemid",systemId);
}
/**
* 设置 [应用标识]
*/
public void setAppId(String appId){
this.appId = appId ;
this.modify("appid",appId);
}
/**
* 设置 [类型]
*/
public void setType(String type){
this.type = type ;
this.modify("ctype",type);
}
/**
* 设置 [实体标识]
*/
public void setEntityId(String entityId){
this.entityId = entityId ;
this.modify("entityid",entityId);
}
/**
* 设置 [配置]
*/
public void setConfig(String config){
this.config = config ;
this.modify("cfg",config);
}
/**
* 获取 [部件标识]
*/
public String getId(){
if(ObjectUtils.isEmpty(id)){
id=(String)getDefaultKey(true);
}
return id;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getSystemId()))&&(!ObjectUtils.isEmpty(this.getAppId()))&&(!ObjectUtils.isEmpty(this.getCodeName())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s||%s" ,this.getSystemId(),this.getAppId(),this.getCodeName()).getBytes());
return null;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("cid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
!!!!模版产生代码错误:---- package cn.ibizlab.core.lite.domain;
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- import java.sql.Timestamp;
import java.util.ArrayList;
---- import java.util.List;
FTL stack trace ("~" means nesting-related): import java.util.Map;
- Failed at: ${privateCodeName} [in template "CODETEMPL_en_US" at line 334, column 32] import java.math.BigInteger;
---- import java.util.HashMap;
\ No newline at end of file import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[配置]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZCFG",resultMap = "DstConfigResultMap")
public class DstConfig extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 标识
*/
@DEField(isKeyField=true)
@TableId(value= "cfgid",type=IdType.ASSIGN_UUID)
@JSONField(name = "cfg_id")
@JsonProperty("cfg_id")
private String cfgId;
/**
* 系统标识
*/
@TableField(value = "systemid")
@JSONField(name = "system_id")
@JsonProperty("system_id")
private String systemId;
/**
* 配置类型
*/
@TableField(value = "cfgtype")
@JSONField(name = "cfg_type")
@JsonProperty("cfg_type")
private String cfgType;
/**
* 引用类型
*/
@TableField(value = "targettype")
@JSONField(name = "target_type")
@JsonProperty("target_type")
private String targetType;
/**
* 用户标识
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "userid")
@JSONField(name = "user_id")
@JsonProperty("user_id")
private String userId;
/**
* 配置内容
*/
@TableField(value = "cfg")
@JSONField(name = "cfg")
@JsonProperty("cfg")
private String cfg;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "update_date" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("update_date")
private Timestamp updateDate;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstSystem system;
/**
* 设置 [系统标识]
*/
public void setSystemId(String systemId){
this.systemId = systemId ;
this.modify("systemid",systemId);
}
/**
* 设置 [配置类型]
*/
public void setCfgType(String cfgType){
this.cfgType = cfgType ;
this.modify("cfgtype",cfgType);
}
/**
* 设置 [引用类型]
*/
public void setTargetType(String targetType){
this.targetType = targetType ;
this.modify("targettype",targetType);
}
/**
* 设置 [配置内容]
*/
public void setCfg(String cfg){
this.cfg = cfg ;
this.modify("cfg",cfg);
}
/**
* 获取 [标识]
*/
public String getCfgId(){
if(ObjectUtils.isEmpty(cfgId)){
cfgId=(String)getDefaultKey(true);
}
return cfgId;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getSystemId()))&&(!ObjectUtils.isEmpty(this.getCfgType()))&&(!ObjectUtils.isEmpty(this.getTargetType()))&&(!ObjectUtils.isEmpty(this.getUserId())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s||%s||%s" ,this.getSystemId(),this.getCfgType(),this.getTargetType(),this.getUserId()).getBytes());
return null;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("cfgid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
!!!!模版产生代码错误:---- package cn.ibizlab.core.lite.domain;
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- import java.sql.Timestamp;
import java.util.ArrayList;
---- import java.util.List;
FTL stack trace ("~" means nesting-related): import java.util.Map;
- Failed at: ${privateCodeName} [in template "CODETEMPL_en_US" at line 334, column 32] import java.math.BigInteger;
---- import java.util.HashMap;
\ No newline at end of file import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[路由]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZROUTER",resultMap = "DstRouterResultMap")
public class DstRouter extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 路径标识
*/
@DEField(name = "routerid" , isKeyField=true)
@TableId(value= "routerid",type=IdType.ASSIGN_UUID)
@JSONField(name = "id")
@JsonProperty("id")
private String id;
/**
* 路径名称
*/
@DEField(name = "routername")
@TableField(value = "routername")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 系统标识
*/
@TableField(value = "systemid")
@JSONField(name = "system_id")
@JsonProperty("system_id")
private String systemId;
/**
* 应用标识
*/
@TableField(value = "appid")
@JSONField(name = "app_id")
@JsonProperty("app_id")
private String appId;
/**
* 路径
*/
@DEField(name = "routerpath")
@TableField(value = "routerpath")
@JSONField(name = "path")
@JsonProperty("path")
private String path;
/**
* 父路径标识
*/
@TableField(value = "parentid")
@JSONField(name = "parentid")
@JsonProperty("parentid")
private String parentid;
/**
* meta
*/
@TableField(value = "meta")
@JSONField(name = "meta")
@JsonProperty("meta")
private String meta;
/**
* 组件
*/
@TableField(value = "component")
@JSONField(name = "component")
@JsonProperty("component")
private String component;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstApp app;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstRouter parent;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstSystem system;
/**
* 设置 [路径名称]
*/
public void setName(String name){
this.name = name ;
this.modify("routername",name);
}
/**
* 设置 [系统标识]
*/
public void setSystemId(String systemId){
this.systemId = systemId ;
this.modify("systemid",systemId);
}
/**
* 设置 [应用标识]
*/
public void setAppId(String appId){
this.appId = appId ;
this.modify("appid",appId);
}
/**
* 设置 [路径]
*/
public void setPath(String path){
this.path = path ;
this.modify("routerpath",path);
}
/**
* 设置 [父路径标识]
*/
public void setParentid(String parentid){
this.parentid = parentid ;
this.modify("parentid",parentid);
}
/**
* 设置 [meta]
*/
public void setMeta(String meta){
this.meta = meta ;
this.modify("meta",meta);
}
/**
* 设置 [组件]
*/
public void setComponent(String component){
this.component = component ;
this.modify("component",component);
}
/**
* 获取 [路径标识]
*/
public String getId(){
if(ObjectUtils.isEmpty(id)){
id=(String)getDefaultKey(true);
}
return id;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getSystemId()))&&(!ObjectUtils.isEmpty(this.getAppId()))&&(!ObjectUtils.isEmpty(this.getPath())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s||%s" ,this.getSystemId(),this.getAppId(),this.getPath()).getBytes());
return null;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("routerid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
!!!!模版产生代码错误:---- package cn.ibizlab.core.lite.domain;
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- import java.sql.Timestamp;
import java.util.ArrayList;
---- import java.util.List;
FTL stack trace ("~" means nesting-related): import java.util.Map;
- Failed at: ${privateCodeName} [in template "CODETEMPL_en_US" at line 334, column 32] import java.math.BigInteger;
---- import java.util.HashMap;
\ No newline at end of file import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[页面]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZVIEW",resultMap = "DstViewResultMap")
public class DstView extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 标识
*/
@DEField(name = "viewid" , isKeyField=true)
@TableId(value= "viewid",type=IdType.ASSIGN_UUID)
@JSONField(name = "id")
@JsonProperty("id")
private String id;
/**
* 名称
*/
@DEField(name = "viewname")
@TableField(value = "viewname")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 视图路径
*/
@DEField(name = "viewpath")
@TableField(value = "viewpath")
@JSONField(name = "path")
@JsonProperty("path")
private String path;
/**
* 系统标识
*/
@TableField(value = "systemid")
@JSONField(name = "system_id")
@JsonProperty("system_id")
private String systemId;
/**
* 应用标识
*/
@TableField(value = "appid")
@JSONField(name = "app_id")
@JsonProperty("app_id")
private String appId;
/**
* 实体标识
*/
@TableField(value = "entityid")
@JSONField(name = "entity_id")
@JsonProperty("entity_id")
private String entityId;
/**
* 主实体
*/
@TableField(exist = false)
@JSONField(name = "entity_name")
@JsonProperty("entity_name")
private String entityName;
/**
* 配置
*/
@DEField(name = "cfg")
@TableField(value = "cfg")
@JSONField(name = "config")
@JsonProperty("config")
private String config;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstApp app;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.DstSystem system;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.MetaEntity factEntity;
/**
* 设置 [名称]
*/
public void setName(String name){
this.name = name ;
this.modify("viewname",name);
}
/**
* 设置 [视图路径]
*/
public void setPath(String path){
this.path = path ;
this.modify("viewpath",path);
}
/**
* 设置 [系统标识]
*/
public void setSystemId(String systemId){
this.systemId = systemId ;
this.modify("systemid",systemId);
}
/**
* 设置 [应用标识]
*/
public void setAppId(String appId){
this.appId = appId ;
this.modify("appid",appId);
}
/**
* 设置 [实体标识]
*/
public void setEntityId(String entityId){
this.entityId = entityId ;
this.modify("entityid",entityId);
}
/**
* 设置 [配置]
*/
public void setConfig(String config){
this.config = config ;
this.modify("cfg",config);
}
/**
* 获取 [标识]
*/
public String getId(){
if(ObjectUtils.isEmpty(id)){
id=(String)getDefaultKey(true);
}
return id;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getSystemId()))&&(!ObjectUtils.isEmpty(this.getAppId()))&&(!ObjectUtils.isEmpty(this.getPath())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s||%s" ,this.getSystemId(),this.getAppId(),this.getPath()).getBytes());
return null;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("viewid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
!!!!模版产生代码错误:---- package cn.ibizlab.core.lite.domain;
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- import java.sql.Timestamp;
import java.util.ArrayList;
---- import java.util.List;
FTL stack trace ("~" means nesting-related): import java.util.Map;
- Failed at: ${privateCodeName} [in template "CODETEMPL_en_US" at line 334, column 32] import java.math.BigInteger;
---- import java.util.HashMap;
\ No newline at end of file import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[数据集]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZDATASET",resultMap = "MetaDataSetResultMap")
public class MetaDataSet extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 标识
*/
@DEField(isKeyField=true)
@TableId(value= "datasetid",type=IdType.ASSIGN_UUID)
@JSONField(name = "dataset_id")
@JsonProperty("dataset_id")
private String datasetId;
/**
* 名称
*/
@TableField(value = "datasetname")
@JSONField(name = "dataset_name")
@JsonProperty("dataset_name")
private String datasetName;
/**
* 实体标识
*/
@TableField(value = "entityid")
@JSONField(name = "entity_id")
@JsonProperty("entity_id")
private String entityId;
/**
* 实体
*/
@TableField(value = "entityname")
@JSONField(name = "entity_name")
@JsonProperty("entity_name")
private String entityName;
/**
* 代码名称
*/
@TableField(value = "codename")
@JSONField(name = "code_name")
@JsonProperty("code_name")
private String codeName;
/**
* 代码
*/
@TableField(value = "dscode")
@JSONField(name = "ds_code")
@JsonProperty("ds_code")
private String dsCode;
/**
* 模型
*/
@TableField(value = "dsmodel")
@JSONField(name = "ds_model")
@JsonProperty("ds_model")
private String dsModel;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.MetaEntity entity;
/**
* 设置 [名称]
*/
public void setDatasetName(String datasetName){
this.datasetName = datasetName ;
this.modify("datasetname",datasetName);
}
/**
* 设置 [实体标识]
*/
public void setEntityId(String entityId){
this.entityId = entityId ;
this.modify("entityid",entityId);
}
/**
* 设置 [实体]
*/
public void setEntityName(String entityName){
this.entityName = entityName ;
this.modify("entityname",entityName);
}
/**
* 设置 [代码名称]
*/
public void setCodeName(String codeName){
this.codeName = codeName ;
this.modify("codename",codeName);
}
/**
* 设置 [代码]
*/
public void setDsCode(String dsCode){
this.dsCode = dsCode ;
this.modify("dscode",dsCode);
}
/**
* 设置 [模型]
*/
public void setDsModel(String dsModel){
this.dsModel = dsModel ;
this.modify("dsmodel",dsModel);
}
/**
* 获取 [标识]
*/
public String getDatasetId(){
if(ObjectUtils.isEmpty(datasetId)){
datasetId=(String)getDefaultKey(true);
}
return datasetId;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getEntityId()))&&(!ObjectUtils.isEmpty(this.getCodeName())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s" ,this.getEntityId(),this.getCodeName()).getBytes());
return null;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("datasetid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
!!!!模版产生代码错误:---- package cn.ibizlab.core.lite.domain;
Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing</#if>. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)??
---- import java.sql.Timestamp;
import java.util.ArrayList;
---- import java.util.List;
FTL stack trace ("~" means nesting-related): import java.util.Map;
- Failed at: ${privateCodeName} [in template "CODETEMPL_en_US" at line 334, column 32] import java.math.BigInteger;
---- import java.util.HashMap;
\ No newline at end of file import java.math.BigDecimal;
import java.text.SimpleDateFormat;
import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.util.ObjectUtils;
import org.springframework.util.DigestUtils;
import cn.ibizlab.util.domain.EntityBase;
import cn.ibizlab.util.annotation.DEField;
import cn.ibizlab.util.enums.DEPredefinedFieldType;
import cn.ibizlab.util.enums.DEFieldDefaultValueType;
import cn.ibizlab.util.helper.DataObject;
import java.io.Serializable;
import lombok.*;
import org.springframework.data.annotation.Transient;
import cn.ibizlab.util.annotation.Audit;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.baomidou.mybatisplus.annotation.*;
import cn.ibizlab.util.domain.EntityMP;
import com.baomidou.mybatisplus.core.toolkit.IdWorker;
/**
* 实体[实体关系]
*/
@Getter
@Setter
@NoArgsConstructor
@JsonIgnoreProperties(value = "handler")
@TableName(value = "IBZRELATION",resultMap = "MetaRelationshipResultMap")
public class MetaRelationship extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 关系标识
*/
@DEField(name = "relationid" , isKeyField=true)
@TableId(value= "relationid",type=IdType.ASSIGN_UUID)
@JSONField(name = "id")
@JsonProperty("id")
private String id;
/**
* 关系名称
*/
@DEField(name = "relationname")
@TableField(value = "relationname")
@JSONField(name = "name")
@JsonProperty("name")
private String name;
/**
* 类型
*/
@DEField(name = "reltype")
@TableField(value = "reltype")
@JSONField(name = "relation_type")
@JsonProperty("relation_type")
private String relationType;
/**
* 代码名称
*/
@TableField(value = "codename")
@JSONField(name = "code_name")
@JsonProperty("code_name")
private String codeName;
/**
* 实体标识
*/
@TableField(value = "entityid")
@JSONField(name = "entity_id")
@JsonProperty("entity_id")
private String entityId;
/**
* 实体名称
*/
@TableField(value = "entityname")
@JSONField(name = "entity_name")
@JsonProperty("entity_name")
private String entityName;
/**
* 引用实体标识
*/
@TableField(value = "refentityid")
@JSONField(name = "ref_entity_id")
@JsonProperty("ref_entity_id")
private String refEntityId;
/**
* 引用实体名称
*/
@TableField(value = "refentityname")
@JSONField(name = "ref_entity_name")
@JsonProperty("ref_entity_name")
private String refEntityName;
/**
* 嵌套代码名称
*/
@TableField(value = "nestedname")
@JSONField(name = "nested_name")
@JsonProperty("nested_name")
private String nestedName;
/**
* 系统
*/
@TableField(exist = false)
@JSONField(name = "system_id")
@JsonProperty("system_id")
private String systemId;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.MetaEntity entity;
/**
*
*/
@JsonIgnore
@JSONField(serialize = false)
@TableField(exist = false)
private cn.ibizlab.core.lite.domain.MetaEntity reference;
/**
* lookup
*/
@JSONField(name = "lookups")
@JsonProperty("lookups")
@TableField(value = "lookup" , typeHandler = cn.ibizlab.core.lite.domain.handlers.DstLookupTypeHandler.class)
private List<cn.ibizlab.core.lite.domain.DstLookup> lookup;
/**
* 设置 [lookup]
*/
public void setLookup(List<cn.ibizlab.core.lite.domain.DstLookup> lookup){
this.lookup = lookup ;
this.modify("lookup",(lookup!=null)?lookup:(new ArrayList()));
}
/**
* 设置 [关系名称]
*/
public void setName(String name){
this.name = name ;
this.modify("relationname",name);
}
/**
* 设置 [类型]
*/
public void setRelationType(String relationType){
this.relationType = relationType ;
this.modify("reltype",relationType);
}
/**
* 设置 [代码名称]
*/
public void setCodeName(String codeName){
this.codeName = codeName ;
this.modify("codename",codeName);
}
/**
* 设置 [实体标识]
*/
public void setEntityId(String entityId){
this.entityId = entityId ;
this.modify("entityid",entityId);
}
/**
* 设置 [实体名称]
*/
public void setEntityName(String entityName){
this.entityName = entityName ;
this.modify("entityname",entityName);
}
/**
* 设置 [引用实体标识]
*/
public void setRefEntityId(String refEntityId){
this.refEntityId = refEntityId ;
this.modify("refentityid",refEntityId);
}
/**
* 设置 [引用实体名称]
*/
public void setRefEntityName(String refEntityName){
this.refEntityName = refEntityName ;
this.modify("refentityname",refEntityName);
}
/**
* 设置 [嵌套代码名称]
*/
public void setNestedName(String nestedName){
this.nestedName = nestedName ;
this.modify("nestedname",nestedName);
}
/**
* 获取 [关系标识]
*/
public String getId(){
if(ObjectUtils.isEmpty(id)){
id=(String)getDefaultKey(true);
}
return id;
}
@Override
public Serializable getDefaultKey(boolean gen) {
if((!ObjectUtils.isEmpty(this.getEntityId()))&&(!ObjectUtils.isEmpty(this.getRefEntityId()))&&(!ObjectUtils.isEmpty(this.getCodeName())))
return DigestUtils.md5DigestAsHex(String.format("%s||%s||%s" ,this.getEntityId(),this.getRefEntityId(),this.getCodeName()).getBytes());
return null;
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("relationid");
return super.copyTo(targetEntity,bIncEmpty);
}
}
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册