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

tony001 部署微服务接口 [后台服务,接口示例]

上级 dca7bde6
package cn.ibizlab.core.sample.domain;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
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 cn.ibizlab.util.enums.DupCheck;
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 = "T_MICROCOMPONENT", resultMap = "MicroComponentResultMap")
public class MicroComponent extends EntityMP implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 建立时间
*/
@DEField(preType = DEPredefinedFieldType.CREATEDATE)
@TableField(value = "createdate", fill = FieldFill.INSERT)
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "createdate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 建立人
*/
@DEField(preType = DEPredefinedFieldType.CREATEMAN)
@TableField(value = "createman", fill = FieldFill.INSERT)
@JSONField(name = "createman")
@JsonProperty("createman")
private String createman;
/**
* 微组件名称
*/
@TableField(value = "microcomponentname")
@JSONField(name = "microcomponentname")
@JsonProperty("microcomponentname")
private String microcomponentname;
/**
* 微组件标识
*/
@DEField(isKeyField = true)
@TableId(value = "microcomponentid", type = IdType.ASSIGN_UUID)
@JSONField(name = "microcomponentid")
@JsonProperty("microcomponentid")
private String microcomponentid;
/**
* 更新时间
*/
@DEField(preType = DEPredefinedFieldType.UPDATEDATE)
@TableField(value = "updatedate")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", locale = "zh", timezone = "GMT+8")
@JSONField(name = "updatedate", format = "yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 更新人
*/
@DEField(preType = DEPredefinedFieldType.UPDATEMAN)
@TableField(value = "updateman")
@JSONField(name = "updateman")
@JsonProperty("updateman")
private String updateman;
/**
* 属性
*/
@TableField(value = "field")
@JSONField(name = "field")
@JsonProperty("field")
private String field;
/**
* 属性2
*/
@TableField(value = "field2")
@JSONField(name = "field2")
@JsonProperty("field2")
private String field2;
/**
* 属性3
*/
@TableField(value = "field3")
@JSONField(name = "field3")
@JsonProperty("field3")
private String field3;
/**
* 属性4
*/
@TableField(value = "field4")
@JSONField(name = "field4")
@JsonProperty("field4")
private String field4;
/**
* 属性5
*/
@TableField(value = "field5")
@JSONField(name = "field5")
@JsonProperty("field5")
private String field5;
/**
* 属性6
*/
@TableField(value = "field6")
@JSONField(name = "field6")
@JsonProperty("field6")
private String field6;
/**
* 属性7
*/
@TableField(value = "field7")
@JSONField(name = "field7")
@JsonProperty("field7")
private String field7;
/**
* 属性8
*/
@TableField(value = "field8")
@JSONField(name = "field8")
@JsonProperty("field8")
private String field8;
/**
* 属性9
*/
@TableField(value = "field9")
@JSONField(name = "field9")
@JsonProperty("field9")
private String field9;
/**
* 属性10
*/
@TableField(value = "field10")
@JSONField(name = "field10")
@JsonProperty("field10")
private String field10;
/**
* 属性11
*/
@TableField(value = "field11")
@JSONField(name = "field11")
@JsonProperty("field11")
private String field11;
/**
* 属性12
*/
@TableField(value = "field12")
@JSONField(name = "field12")
@JsonProperty("field12")
private String field12;
/**
* 属性13
*/
@TableField(value = "field13")
@JSONField(name = "field13")
@JsonProperty("field13")
private String field13;
/**
* 属性14
*/
@TableField(value = "field14")
@JSONField(name = "field14")
@JsonProperty("field14")
private String field14;
/**
* 属性15
*/
@TableField(value = "field15")
@JSONField(name = "field15")
@JsonProperty("field15")
private String field15;
/**
* 属性16
*/
@TableField(value = "field16")
@JSONField(name = "field16")
@JsonProperty("field16")
private String field16;
/**
* 属性17
*/
@TableField(value = "field17")
@JSONField(name = "field17")
@JsonProperty("field17")
private String field17;
/**
* 属性18
*/
@TableField(value = "field18")
@JSONField(name = "field18")
@JsonProperty("field18")
private String field18;
/**
* 属性19
*/
@TableField(value = "field19")
@JSONField(name = "field19")
@JsonProperty("field19")
private String field19;
/**
* 属性20
*/
@TableField(value = "field20")
@JSONField(name = "field20")
@JsonProperty("field20")
private String field20;
/**
* 属性21
*/
@TableField(value = "field21")
@JSONField(name = "field21")
@JsonProperty("field21")
private String field21;
/**
* 属性22
*/
@TableField(value = "field22")
@JSONField(name = "field22")
@JsonProperty("field22")
private String field22;
/**
* 属性23
*/
@TableField(value = "field23")
@JSONField(name = "field23")
@JsonProperty("field23")
private String field23;
/**
* 属性24
*/
@TableField(value = "field24")
@JSONField(name = "field24")
@JsonProperty("field24")
private String field24;
/**
* 设置 [微组件名称]
*/
public void setMicrocomponentname(String microcomponentname) {
this.microcomponentname = microcomponentname;
this.modify("microcomponentname", microcomponentname);
}
/**
* 设置 [属性]
*/
public void setField(String field) {
this.field = field;
this.modify("field", field);
}
/**
* 设置 [属性2]
*/
public void setField2(String field2) {
this.field2 = field2;
this.modify("field2", field2);
}
/**
* 设置 [属性3]
*/
public void setField3(String field3) {
this.field3 = field3;
this.modify("field3", field3);
}
/**
* 设置 [属性4]
*/
public void setField4(String field4) {
this.field4 = field4;
this.modify("field4", field4);
}
/**
* 设置 [属性5]
*/
public void setField5(String field5) {
this.field5 = field5;
this.modify("field5", field5);
}
/**
* 设置 [属性6]
*/
public void setField6(String field6) {
this.field6 = field6;
this.modify("field6", field6);
}
/**
* 设置 [属性7]
*/
public void setField7(String field7) {
this.field7 = field7;
this.modify("field7", field7);
}
/**
* 设置 [属性8]
*/
public void setField8(String field8) {
this.field8 = field8;
this.modify("field8", field8);
}
/**
* 设置 [属性9]
*/
public void setField9(String field9) {
this.field9 = field9;
this.modify("field9", field9);
}
/**
* 设置 [属性10]
*/
public void setField10(String field10) {
this.field10 = field10;
this.modify("field10", field10);
}
/**
* 设置 [属性11]
*/
public void setField11(String field11) {
this.field11 = field11;
this.modify("field11", field11);
}
/**
* 设置 [属性12]
*/
public void setField12(String field12) {
this.field12 = field12;
this.modify("field12", field12);
}
/**
* 设置 [属性13]
*/
public void setField13(String field13) {
this.field13 = field13;
this.modify("field13", field13);
}
/**
* 设置 [属性14]
*/
public void setField14(String field14) {
this.field14 = field14;
this.modify("field14", field14);
}
/**
* 设置 [属性15]
*/
public void setField15(String field15) {
this.field15 = field15;
this.modify("field15", field15);
}
/**
* 设置 [属性16]
*/
public void setField16(String field16) {
this.field16 = field16;
this.modify("field16", field16);
}
/**
* 设置 [属性17]
*/
public void setField17(String field17) {
this.field17 = field17;
this.modify("field17", field17);
}
/**
* 设置 [属性18]
*/
public void setField18(String field18) {
this.field18 = field18;
this.modify("field18", field18);
}
/**
* 设置 [属性19]
*/
public void setField19(String field19) {
this.field19 = field19;
this.modify("field19", field19);
}
/**
* 设置 [属性20]
*/
public void setField20(String field20) {
this.field20 = field20;
this.modify("field20", field20);
}
/**
* 设置 [属性21]
*/
public void setField21(String field21) {
this.field21 = field21;
this.modify("field21", field21);
}
/**
* 设置 [属性22]
*/
public void setField22(String field22) {
this.field22 = field22;
this.modify("field22", field22);
}
/**
* 设置 [属性23]
*/
public void setField23(String field23) {
this.field23 = field23;
this.modify("field23", field23);
}
/**
* 设置 [属性24]
*/
public void setField24(String field24) {
this.field24 = field24;
this.modify("field24", field24);
}
/**
* 复制当前对象数据到目标对象(粘贴重置)
* @param targetEntity 目标数据对象
* @param bIncEmpty 是否包括空值
* @param <T>
* @return
*/
@Override
public <T> T copyTo(T targetEntity, boolean bIncEmpty) {
this.reset("microcomponentid");
return super.copyTo(targetEntity, bIncEmpty);
}
}
package cn.ibizlab.core.sample.filter;
import java.math.BigDecimal;
import java.math.BigInteger;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import lombok.*;
import lombok.extern.slf4j.Slf4j;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.alibaba.fastjson.annotation.JSONField;
import org.springframework.util.ObjectUtils;
import org.springframework.util.StringUtils;
import cn.ibizlab.util.filter.QueryWrapperContext;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import cn.ibizlab.core.sample.domain.MicroComponent;
/**
* 关系型数据实体[MicroComponent] 查询条件对象
*/
@Slf4j
@Data
public class MicroComponentSearchContext extends QueryWrapperContext<MicroComponent> {
private String n_microcomponentname_like;//[微组件名称]
public void setN_microcomponentname_like(String n_microcomponentname_like) {
this.n_microcomponentname_like = n_microcomponentname_like;
if(!ObjectUtils.isEmpty(this.n_microcomponentname_like)){
this.getSearchCond().like("microcomponentname", n_microcomponentname_like);
}
}
/**
* 启用快速搜索
*/
@Override
public void setQuery(String query)
{
this.query=query;
if(!StringUtils.isEmpty(query)){
this.getSearchCond().and( wrapper ->
wrapper.like("microcomponentname", query)
);
}
}
}
package cn.ibizlab.core.sample.mapper;
import java.util.List;
import org.apache.ibatis.annotations.*;
import java.util.Map;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import java.util.HashMap;
import org.apache.ibatis.annotations.Select;
import cn.ibizlab.core.sample.domain.MicroComponent;
import cn.ibizlab.core.sample.filter.MicroComponentSearchContext;
import org.springframework.cache.annotation.CacheEvict;
import org.springframework.cache.annotation.Cacheable;
import java.io.Serializable;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.alibaba.fastjson.JSONObject;
public interface MicroComponentMapper extends BaseMapper<MicroComponent> {
Page<MicroComponent> searchDefault(IPage page, @Param("srf") MicroComponentSearchContext context, @Param("ew") Wrapper<MicroComponent> wrapper);
@Override
MicroComponent selectById(Serializable id);
@Override
int insert(MicroComponent entity);
@Override
int updateById(@Param(Constants.ENTITY) MicroComponent entity);
@Override
int update(@Param(Constants.ENTITY) MicroComponent entity, @Param("ew") Wrapper<MicroComponent> updateWrapper);
@Override
int deleteById(Serializable id);
/**
* 自定义查询SQL
* @param sql
* @return
*/
@Select("${sql}")
List<JSONObject> selectBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义更新SQL
* @param sql
* @return
*/
@Update("${sql}")
boolean updateBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义插入SQL
* @param sql
* @return
*/
@Insert("${sql}")
boolean insertBySQL(@Param("sql") String sql, @Param("et")Map param);
/**
* 自定义删除SQL
* @param sql
* @return
*/
@Delete("${sql}")
boolean deleteBySQL(@Param("sql") String sql, @Param("et")Map param);
}
......@@ -8,16 +8,16 @@ import java.util.List;
public interface IBIZBOOKDataImport {
@Mappings({
@Mapping(target = "ibizbookid", source = "ibizbookid"),
@Mapping(target = "press", source = "press"),
@Mapping(target = "author", source = "author"),
@Mapping(target = "type", source = "type"),
@Mapping(target = "price", source = "price"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "booknumber", source = "booknumber"),
@Mapping(target = "createman", source = "createman"),
@Mapping(target = "createdate", source = "createdate"),
@Mapping(target = "ibizbookname", source = "ibizbookname"),
@Mapping(target = "updateman", source = "updateman"),
@Mapping(target = "updatedate", source = "updatedate"),
@Mapping(target = "type", source = "type"),
@Mapping(target = "press", source = "press"),
@Mapping(target = "author", source = "author"),
})
@BeanMapping(ignoreByDefault = true)
IBIZBOOK toDomain(IBIZBOOK entity);
......
......@@ -8,9 +8,9 @@ import java.util.List;
public interface IBIZOrderImport {
@Mappings({
@Mapping(target = "ibizorderid", source = "ibizorderid"),
@Mapping(target = "orderuid", source = "orderuid"),
@Mapping(target = "ordertype", source = "ordertype"),
@Mapping(target = "ordertime", source = "ordertime"),
@Mapping(target = "orderuid", source = "orderuid"),
@Mapping(target = "ibizordername", source = "ibizordername"),
})
@BeanMapping(ignoreByDefault = true)
......
package cn.ibizlab.core.sample.service;
import java.io.Serializable;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.util.HashMap;
import java.util.Collection;
import java.math.BigInteger;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.scheduling.annotation.Async;
import com.alibaba.fastjson.JSONObject;
import org.springframework.cache.annotation.CacheEvict;
import cn.ibizlab.core.sample.domain.MicroComponent;
import cn.ibizlab.core.sample.filter.MicroComponentSearchContext;
import com.baomidou.mybatisplus.extension.service.IService;
/**
* 实体[MicroComponent] 服务对象接口
*/
public interface IMicroComponentService extends IService<MicroComponent> {
boolean create(MicroComponent et);
void createBatch(List<MicroComponent> list);
boolean update(MicroComponent et);
void updateBatch(List<MicroComponent> list);
boolean remove(String key);
void removeBatch(Collection<String> idList);
MicroComponent get(String key);
MicroComponent getDraft(MicroComponent et);
boolean checkKey(MicroComponent et);
boolean save(MicroComponent et);
void saveBatch(List<MicroComponent> list);
Page<MicroComponent> searchDefault(MicroComponentSearchContext context);
/**
*自定义查询SQL
* @param sql select * from table where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return select * from table where id = '1'
*/
List<JSONObject> select(String sql, Map param);
/**
*自定义SQL
* @param sql update table set name ='test' where id =#{et.param}
* @param param 参数列表 param.put("param","1");
* @return update table set name ='test' where id = '1'
*/
boolean execute(String sql, Map param);
List<MicroComponent> getMicrocomponentByIds(List<String> ids);
List<MicroComponent> getMicrocomponentByEntities(List<MicroComponent> entities);
}
package cn.ibizlab.core.sample.service.impl;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Set;
import java.util.Map;
import java.util.HashSet;
import java.util.HashMap;
import java.util.Collection;
import java.util.Objects;
import java.util.Optional;
import java.math.BigInteger;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.stereotype.Service;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.ObjectUtils;
import org.springframework.beans.factory.annotation.Value;
import cn.ibizlab.util.errors.BadRequestAlertException;
import org.springframework.transaction.annotation.Transactional;
import org.springframework.context.annotation.Lazy;
import cn.ibizlab.core.sample.domain.MicroComponent;
import cn.ibizlab.core.sample.filter.MicroComponentSearchContext;
import cn.ibizlab.core.sample.service.IMicroComponentService;
import cn.ibizlab.util.helper.CachedBeanCopier;
import cn.ibizlab.util.helper.DEFieldCacheMap;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.ibizlab.core.sample.mapper.MicroComponentMapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.alibaba.fastjson.JSONObject;
import org.springframework.util.StringUtils;
/**
* 实体[微组件] 服务对象接口实现
*/
@Slf4j
@Service("MicroComponentServiceImpl")
public class MicroComponentServiceImpl extends ServiceImpl<MicroComponentMapper, MicroComponent> implements IMicroComponentService {
protected int batchSize = 500;
@Override
@Transactional
public boolean create(MicroComponent et) {
if(!this.retBool(this.baseMapper.insert(et))) {
return false;
}
CachedBeanCopier.copy(get(et.getMicrocomponentid()), et);
return true;
}
@Override
@Transactional
public void createBatch(List<MicroComponent> list) {
this.saveBatch(list, batchSize);
}
@Override
@Transactional
public boolean update(MicroComponent et) {
if(!update(et, (Wrapper) et.getUpdateWrapper(true).eq("microcomponentid", et.getMicrocomponentid()))) {
return false;
}
CachedBeanCopier.copy(get(et.getMicrocomponentid()), et);
return true;
}
@Override
@Transactional
public void updateBatch(List<MicroComponent> list) {
updateBatchById(list, batchSize);
}
@Override
@Transactional
public boolean remove(String key) {
boolean result = removeById(key);
return result ;
}
@Override
@Transactional
public void removeBatch(Collection<String> idList) {
removeByIds(idList);
}
@Override
@Transactional
public MicroComponent get(String key) {
MicroComponent et = getById(key);
if(et == null){
et = new MicroComponent();
et.setMicrocomponentid(key);
}
else {
}
return et;
}
@Override
public MicroComponent getDraft(MicroComponent et) {
return et;
}
@Override
public boolean checkKey(MicroComponent et) {
return (!ObjectUtils.isEmpty(et.getMicrocomponentid())) && (!Objects.isNull(this.getById(et.getMicrocomponentid())));
}
@Override
@Transactional
public boolean save(MicroComponent et) {
if(!saveOrUpdate(et)) {
return false;
}
return true;
}
@Override
@Transactional
public boolean saveOrUpdate(MicroComponent et) {
if (null == et) {
return false;
} else {
return checkKey(et) ? this.update(et) : this.create(et);
}
}
@Override
@Transactional
public boolean saveBatch(Collection<MicroComponent> list) {
saveOrUpdateBatch(list,batchSize);
return true;
}
@Override
@Transactional
public void saveBatch(List<MicroComponent> list) {
saveOrUpdateBatch(list,batchSize);
}
/**
* 查询集合 数据集
*/
@Override
public Page<MicroComponent> searchDefault(MicroComponentSearchContext context) {
com.baomidou.mybatisplus.extension.plugins.pagination.Page<MicroComponent> pages=baseMapper.searchDefault(context.getPages(),context,context.getSelectCond());
return new PageImpl<MicroComponent>(pages.getRecords(), context.getPageable(), pages.getTotal());
}
@Override
public List<JSONObject> select(String sql, Map param){
return this.baseMapper.selectBySQL(sql,param);
}
@Override
@Transactional
public boolean execute(String sql , Map param){
if (sql == null || sql.isEmpty()) {
return false;
}
if (sql.toLowerCase().trim().startsWith("insert")) {
return this.baseMapper.insertBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("update")) {
return this.baseMapper.updateBySQL(sql,param);
}
if (sql.toLowerCase().trim().startsWith("delete")) {
return this.baseMapper.deleteBySQL(sql,param);
}
log.warn("暂未支持的SQL语法");
return true;
}
@Override
public List<MicroComponent> getMicrocomponentByIds(List<String> ids) {
return this.listByIds(ids);
}
@Override
public List<MicroComponent> getMicrocomponentByEntities(List<MicroComponent> entities) {
List ids =new ArrayList();
for(MicroComponent entity : entities){
Serializable id=entity.getMicrocomponentid();
if(!ObjectUtils.isEmpty(id)){
ids.add(id);
}
}
if(ids.size()>0) {
return this.listByIds(ids);
}
else {
return entities;
}
}
}
......@@ -1136,7 +1136,7 @@
<!--输出实体[IBIZSAMPLE0021]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0021-52-38">
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0021-54-38">
<createTable tableName="T_IBIZSAMPLE0021">
<column name="IBIZSAMPLE0021ID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_IBIZSAMPLE0021_IBIZSAMPLE00"/>
......@@ -1278,6 +1278,74 @@
</createTable>
</changeSet>
<!--输出实体[MICROCOMPONENT]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-microcomponent-37-44">
<createTable tableName="T_MICROCOMPONENT">
<column name="CREATEDATE" remarks="" type="DATETIME">
</column>
<column name="CREATEMAN" remarks="" type="VARCHAR(60)">
</column>
<column name="MICROCOMPONENTNAME" remarks="" type="VARCHAR(200)">
</column>
<column name="MICROCOMPONENTID" remarks="" type="VARCHAR(100)">
<constraints primaryKey="true" primaryKeyName="PK_MICROCOMPONENT_MICROCOMPONE"/>
</column>
<column name="UPDATEDATE" remarks="" type="DATETIME">
</column>
<column name="UPDATEMAN" remarks="" type="VARCHAR(60)">
</column>
<column name="FIELD" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD2" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD3" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD4" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD5" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD6" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD7" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD8" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD9" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD10" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD11" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD12" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD13" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD14" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD15" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD16" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD17" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD18" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD19" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD20" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD21" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD22" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD23" remarks="" type="VARCHAR(100)">
</column>
<column name="FIELD24" remarks="" type="VARCHAR(100)">
</column>
</createTable>
</changeSet>
<!--输出实体[DYNADASHBOARD]外键关系 -->
<!--输出实体[IBIZAPPCTRL]外键关系 -->
<!--输出实体[IBIZAPPEDITOR]外键关系 -->
......@@ -1296,7 +1364,7 @@
<!--输出实体[IBIZQJ]外键关系 -->
<!--输出实体[IBIZSAMPLE]外键关系 -->
<!--输出实体[IBIZSAMPLE0001]外键关系 -->
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0001-407-44">
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0001-407-45">
<addForeignKeyConstraint baseColumnNames="IBIZSAMPLE0002ID" baseTableName="T_IBIZSAMPLE0001" constraintName="DER1N_IBIZSAMPLE0001_IBIZSAMPL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="IBIZSAMPLE0002ID" referencedTableName="T_IBIZSAMPLE0002" validate="true"/>
</changeSet>
<!--输出实体[IBIZSAMPLE0002]外键关系 -->
......@@ -1305,7 +1373,7 @@
<!--输出实体[IBIZSAMPLE0005]外键关系 -->
<!--输出实体[IBIZSAMPLE0006]外键关系 -->
<!--输出实体[IBIZSAMPLE0007]外键关系 -->
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0007-4-45">
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0007-4-46">
<addForeignKeyConstraint baseColumnNames="IBIZSAMPLE0006ID" baseTableName="T_IBIZSAMPLE0007" constraintName="DER1N_IBIZSAMPLE0007_IBIZSAMPL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="IBIZSAMPLE0006ID" referencedTableName="T_IBIZSAMPLE0006" validate="true"/>
</changeSet>
<!--输出实体[IBIZSAMPLE0008]外键关系 -->
......@@ -1321,7 +1389,7 @@
<!--输出实体[IBIZSAMPLE0018]外键关系 -->
<!--输出实体[IBIZSAMPLE0019]外键关系 -->
<!--输出实体[IBIZSAMPLE0020]外键关系 -->
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0020-4-46">
<changeSet author="a_LAB01_df847bdfd" id="fk-ibizsample0020-4-47">
<addForeignKeyConstraint baseColumnNames="IBIZSAMPLE0019ID" baseTableName="T_IBIZSAMPLE0020" constraintName="DER1N_IBIZSAMPLE0020_IBIZSAMPL" deferrable="false" initiallyDeferred="false" onDelete="RESTRICT" onUpdate="RESTRICT" referencedColumnNames="IBIZSAMPLE0019ID" referencedTableName="T_IBIZSAMPLE0019" validate="true"/>
</changeSet>
<!--输出实体[IBIZSAMPLE0021]外键关系 -->
......@@ -1330,5 +1398,6 @@
<!--输出实体[IBIZSUPPLIER]外键关系 -->
<!--输出实体[IBIZUNIPRODUCT]外键关系 -->
<!--输出实体[IBIZVIEWMSG]外键关系 -->
<!--输出实体[MICROCOMPONENT]外键关系 -->
</databaseChangeLog>
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.ibizlab.core.sample.mapper.MicroComponentMapper">
<!--该方法用于重写mybatis中selectById方法,以实现查询逻辑属性-->
<select id="selectById" resultMap="MicroComponentResultMap" databaseId="mysql">
<![CDATA[select t1.* from (SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`FIELD`, t1.`FIELD10`, t1.`FIELD11`, t1.`FIELD12`, t1.`FIELD13`, t1.`FIELD14`, t1.`FIELD15`, t1.`FIELD16`, t1.`FIELD17`, t1.`FIELD18`, t1.`FIELD19`, t1.`FIELD2`, t1.`FIELD20`, t1.`FIELD21`, t1.`FIELD22`, t1.`FIELD23`, t1.`FIELD24`, t1.`FIELD3`, t1.`FIELD4`, t1.`FIELD5`, t1.`FIELD6`, t1.`FIELD7`, t1.`FIELD8`, t1.`FIELD9`, t1.`MICROCOMPONENTID`, t1.`MICROCOMPONENTNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_MICROCOMPONENT` t1 ) t1 where microcomponentid=#{id}]]>
</select>
<!--通过mybatis将查询结果注入到entity中,通过配置autoMapping="true"由mybatis自动处理映射关系 -->
<resultMap id="MicroComponentResultMap" type="cn.ibizlab.core.sample.domain.MicroComponent" autoMapping="true">
<id property="microcomponentid" column="microcomponentid" /><!--主键字段映射-->
</resultMap>
<!--数据集合[Default]-->
<select id="searchDefault" parameterType="cn.ibizlab.core.sample.filter.MicroComponentSearchContext" resultMap="MicroComponentResultMap">
select t1.* from (
<include refid="Default" />
)t1
<where><if test="ew!=null and ew.sqlSegment!=null and !ew.emptyOfWhere">${ew.sqlSegment}</if></where>
<if test="ew!=null and ew.sqlSegment!=null and ew.emptyOfWhere">${ew.sqlSegment}</if>
</select>
<!--数据查询[Default]-->
<sql id="Default" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`FIELD`, t1.`FIELD10`, t1.`FIELD11`, t1.`FIELD12`, t1.`FIELD13`, t1.`FIELD14`, t1.`FIELD15`, t1.`FIELD16`, t1.`FIELD17`, t1.`FIELD18`, t1.`FIELD19`, t1.`FIELD2`, t1.`FIELD20`, t1.`FIELD21`, t1.`FIELD22`, t1.`FIELD23`, t1.`FIELD24`, t1.`FIELD3`, t1.`FIELD4`, t1.`FIELD5`, t1.`FIELD6`, t1.`FIELD7`, t1.`FIELD8`, t1.`FIELD9`, t1.`MICROCOMPONENTID`, t1.`MICROCOMPONENTNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_MICROCOMPONENT` t1
]]>
</sql>
<!--数据查询[View]-->
<sql id="View" databaseId="mysql">
<![CDATA[ SELECT t1.`CREATEDATE`, t1.`CREATEMAN`, t1.`FIELD`, t1.`FIELD10`, t1.`FIELD11`, t1.`FIELD12`, t1.`FIELD13`, t1.`FIELD14`, t1.`FIELD15`, t1.`FIELD16`, t1.`FIELD17`, t1.`FIELD18`, t1.`FIELD19`, t1.`FIELD2`, t1.`FIELD20`, t1.`FIELD21`, t1.`FIELD22`, t1.`FIELD23`, t1.`FIELD24`, t1.`FIELD3`, t1.`FIELD4`, t1.`FIELD5`, t1.`FIELD6`, t1.`FIELD7`, t1.`FIELD8`, t1.`FIELD9`, t1.`MICROCOMPONENTID`, t1.`MICROCOMPONENTNAME`, t1.`UPDATEDATE`, t1.`UPDATEMAN` FROM `T_MICROCOMPONENT` t1
]]>
</sql>
</mapper>
......@@ -336,13 +336,21 @@
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
, {
"dename":"MicroComponent",
"delogicname":"微组件",
"sysmoudle":{"id":"SAMPLE","name":"示例"},
"dedataset":[{"id":"Default" , "name":"数据集"}],
"deaction":[{"id":"Create" , "name":"Create" , "type":"BUILTIN" },{"id":"Update" , "name":"Update" , "type":"BUILTIN" },{"id":"Remove" , "name":"Remove" , "type":"BUILTIN" },{"id":"Get" , "name":"Get" , "type":"BUILTIN" },{"id":"GetDraft" , "name":"GetDraft" , "type":"BUILTIN" },{"id":"CheckKey" , "name":"CheckKey" , "type":"BUILTIN" },{"id":"Save" , "name":"Save" , "type":"BUILTIN" }],
"datascope":[{"id":"all","name":"全部数据"}, {"id":"createman","name":"创建人"}]
}
],
"appmenus":[
{
"appid":"Web",
"appname":"演示应用",
"appmenu":[{"menuid":"MainMenu", "menuname":"MainMenu", "menuitem":[{ "id":"menuitem1" , "name":"工作台" },{ "id":"menuitem3" , "name":"控件" , "items":[{ "id":"menuitem6" , "name":"默认数据类型" },{ "id":"menuitem7" , "name":"默认编辑器类型" },{ "id":"menuitem15" , "name":"基础表单项" },{ "id":"menuitem72" , "name":"扩展编辑器" },{ "id":"menuitem151" , "name":"编辑器插件示例" }]},{ "id":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem112" , "name":"应用类" , "items":[{ "id":"menuitem186" , "name":"数据看板" },{ "id":"menuitem129" , "name":"门户部件" }]},{ "id":"menuitem156" , "name":"单数据类" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem107" , "name":"内置功能" },{ "id":"menuitem47" , "name":"新建默认值" },{ "id":"menuitem99" , "name":"更新默认值" },{ "id":"menuitem48" , "name":"输入提示" },{ "id":"menuitem49" , "name":"辅助输入" },{ "id":"menuitem50" , "name":"自动填充" },{ "id":"menuitem51" , "name":"超链接" },{ "id":"menuitem52" , "name":"表单值重置" },{ "id":"menuitem55" , "name":"动态显示" },{ "id":"menuitem53" , "name":"动态启用" },{ "id":"menuitem54" , "name":"动态空输入" },{ "id":"menuitem56" , "name":"表单项更新" },{ "id":"menuitem108" , "name":"表单值规则" }]},{ "id":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem126" , "name":"实体数据看板" }]},{ "id":"menuitem157" , "name":"导航类" , "items":[{ "id":"menuitem122" , "name":"数据关系栏" , "items":[{ "id":"menuitem116" , "name":" 数据关系栏" },{ "id":"menuitem117" , "name":"编辑视图(上下关系)" },{ "id":"menuitem118" , "name":"编辑视图(分页关系)" }]},{ "id":"menuitem120" , "name":"分页导航" },{ "id":"menuitem128" , "name":"表格导航" },{ "id":"menuitem136" , "name":"树导航" },{ "id":"menuitem137" , "name":"卡片导航" },{ "id":"menuitem139" , "name":"时间轴导航" },{ "id":"menuitem114" , "name":"列表导航" },{ "id":"menuitem138" , "name":"日历导航" }]},{ "id":"menuitem158" , "name":"面板类" , "items":[{ "id":"menuitem145" , "name":"选择视图面板" },{ "id":"menuitem17" , "name":"向导面板" , "items":[{ "id":"menuitem134" , "name":"基础用法" },{ "id":"menuitem135" , "name":"状态属性" }]},{ "id":"menuitem121" , "name":"多编辑视图面板" , "items":[{ "id":"menuitem115" , "name":"多表单(行记录)" },{ "id":"menuitem123" , "name":"多表单(上分页)" }]}]},{ "id":"menuitem119" , "name":"多数据类" , "items":[{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" },{ "id":"menuitem73" , "name":"内置功能" },{ "id":"menuitem74" , "name":"表格行编辑" },{ "id":"menuitem75" , "name":"新建默认值" },{ "id":"menuitem76" , "name":"更新默认值" },{ "id":"menuitem77" , "name":"表格值规则" },{ "id":"menuitem132" , "name":"表格列更新" },{ "id":"menuitem133" , "name":"表格列重置" },{ "id":"menuitem78" , "name":"自动分组" },{ "id":"menuitem80" , "name":"代码表分组" },{ "id":"menuitem81" , "name":"当前页聚合" },{ "id":"menuitem82" , "name":"远程聚合" }]},{ "id":"menuitem95" , "name":"日历" , "items":[{ "id":"menuitem96" , "name":"内置功能" },{ "id":"menuitem97" , "name":"时间轴样式" },{ "id":"menuitem109" , "name":"项布局面板" },{ "id":"menuitem64" , "name":"自定义插件" }]},{ "id":"menuitem110" , "name":"树表格" },{ "id":"menuitem111" , "name":"甘特图" },{ "id":"menuitem87" , "name":"数据视图" , "items":[{ "id":"menuitem88" , "name":"内置功能" },{ "id":"menuitem89" , "name":"自动分组" },{ "id":"menuitem90" , "name":"代码表分组" },{ "id":"menuitem94" , "name":"项布局面板" },{ "id":"menuitem152" , "name":"自定义插件" }]},{ "id":"menuitem83" , "name":"列表" , "items":[{ "id":"menuitem84" , "name":"内置功能" },{ "id":"menuitem85" , "name":"自动分组" },{ "id":"menuitem86" , "name":"代码表分组" },{ "id":"menuitem91" , "name":"项布局面板" },{ "id":"menuitem143" , "name":"自定义插件" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" }]},{ "id":"menuitem101" , "name":"实体看板" , "items":[{ "id":"menuitem102" , "name":"内置功能" },{ "id":"menuitem104" , "name":"代码表分组" },{ "id":"menuitem105" , "name":"项布局面板" }]}]},{ "id":"menuitem159" , "name":"其他类" }]},{ "id":"menuitem5" , "name":"视图" , "items":[{ "id":"menuitem26" , "name":"选择视图" , "items":[{ "id":"menuitem18" , "name":"数据选择视图" },{ "id":"menuitem27" , "name":"索引选择视图" }]},{ "id":"menuitem10" , "name":"导航视图" , "items":[{ "id":"menuitem32" , "name":"常规导航视图" },{ "id":"menuitem33" , "name":"分页导航视图" },{ "id":"menuitem34" , "name":"嵌入导航视图" },{ "id":"menuitem176" , "name":"实体表格导航视图" },{ "id":"menuitem177" , "name":"实体列表导航视图" },{ "id":"menuitem178" , "name":"实体卡片导航视图" },{ "id":"menuitem179" , "name":"实体日历导航视图" },{ "id":"menuitem180" , "name":"实体树导航视图" }]},{ "id":"menuitem11" , "name":"其他视图" , "items":[{ "id":"menuitem35" , "name":"图表视图" },{ "id":"menuitem36" , "name":"报表视图" },{ "id":"menuitem98" , "name":"自定义视图" }]},{ "id":"menuitem140" , "name":"单数据视图" , "items":[{ "id":"menuitem8" , "name":"编辑视图" , "items":[{ "id":"menuitem22" , "name":"常规编辑视图" },{ "id":"menuitem23" , "name":"左右编辑视图" },{ "id":"menuitem24" , "name":"分页编辑视图" },{ "id":"menuitem25" , "name":"嵌入编辑视图" }]},{ "id":"menuitem161" , "name":"实体向导视图" },{ "id":"menuitem162" , "name":"实体编辑视图(分页关系)" },{ "id":"menuitem163" , "name":"实体编辑视图(上下关系)" },{ "id":"menuitem164" , "name":"实体编辑视图(左右关系)" },{ "id":"menuitem165" , "name":"实体分页导航视图" },{ "id":"menuitem166" , "name":"实体数据看板视图" },{ "id":"menuitem167" , "name":"实体选项操作视图" }]},{ "id":"menuitem141" , "name":"多数据视图" , "items":[{ "id":"menuitem9" , "name":"列表视图" , "items":[{ "id":"menuitem21" , "name":"左右表格视图" },{ "id":"menuitem20" , "name":"嵌入表格视图" }]},{ "id":"menuitem79" , "name":"表格视图" , "items":[{ "id":"menuitem19" , "name":"常规表格视图" }]},{ "id":"menuitem168" , "name":"实体多表单编辑视图" },{ "id":"menuitem169" , "name":"实体甘特视图" },{ "id":"menuitem170" , "name":"实体日历视图" },{ "id":"menuitem171" , "name":"实体看板视图" },{ "id":"menuitem172" , "name":"实体树表格视图" },{ "id":"menuitem173" , "name":"实体树视图" },{ "id":"menuitem174" , "name":"实体数据视图" },{ "id":"menuitem175" , "name":"实体图表视图" }]},{ "id":"menuitem69" , "name":"工作流" , "items":[{ "id":"menuitem30" , "name":"工作流动态导航视图" },{ "id":"menuitem31" , "name":"工作流启动" }]}]},{ "id":"menuitem153" , "name":"逻辑" , "items":[{ "id":"menuitem154" , "name":"应用功能" , "items":[{ "id":"menuitem127" , "name":"打开应用视图" },{ "id":"menuitem147" , "name":"打开HTML页面" },{ "id":"menuitem160" , "name":"执行JavaScript" }]},{ "id":"menuitem155" , "name":"界面行为" , "items":[{ "id":"menuitem181" , "name":"前端界面行为" },{ "id":"menuitem182" , "name":"后台界面行为" }]}]},{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem71" , "name":"多表单" },{ "id":"menuitem184" , "name":"主状态" , "items":[{ "id":"menuitem70" , "name":"表格主状态" },{ "id":"menuitem148" , "name":"列表主状态" },{ "id":"menuitem183" , "name":"数据主状态" },{ "id":"menuitem28" , "name":"日历主状态" },{ "id":"menuitem29" , "name":"树主状态" }]}]},{ "id":"menuitem92" , "name":"其他" , "items":[{ "id":"menuitem93" , "name":"示例实体02示例数据补充" },{ "id":"menuitem100" , "name":"订单示例数据补充" },{ "id":"menuitem103" , "name":"产品示例数据补充" },{ "id":"menuitem106" , "name":"示例实体03示例数据补充" },{ "id":"menuitem113" , "name":"订单类型添加" },{ "id":"menuitem124" , "name":"示例实体01数据补充" },{ "id":"menuitem144" , "name":"客户实体示例数据补充" },{ "id":"menuitem146" , "name":"应用视图数据补充" },{ "id":"menuitem149" , "name":"应用部件数据补充" },{ "id":"menuitem150" , "name":"编辑器数据补充" }]}] }]
"appmenu":[{"menuid":"MainMenu", "menuname":"MainMenu", "menuitem":[{ "id":"menuitem1" , "name":"工作台" },{ "id":"menuitem3" , "name":"控件" , "items":[{ "id":"menuitem6" , "name":"默认数据类型" },{ "id":"menuitem7" , "name":"默认编辑器类型" },{ "id":"menuitem72" , "name":"扩展编辑器" },{ "id":"menuitem151" , "name":"编辑器插件示例" },{ "id":"menuitem65" , "name":"微服务组件" }]},{ "id":"menuitem4" , "name":"部件" , "items":[{ "id":"menuitem112" , "name":"应用类" , "items":[{ "id":"menuitem186" , "name":"数据看板" },{ "id":"menuitem129" , "name":"门户部件" }]},{ "id":"menuitem156" , "name":"单数据类" , "items":[{ "id":"menuitem12" , "name":"编辑表单" , "items":[{ "id":"menuitem15" , "name":"基础表单项" },{ "id":"menuitem107" , "name":"内置功能" },{ "id":"menuitem47" , "name":"新建默认值" },{ "id":"menuitem99" , "name":"更新默认值" },{ "id":"menuitem48" , "name":"输入提示" },{ "id":"menuitem49" , "name":"辅助输入" },{ "id":"menuitem50" , "name":"自动填充" },{ "id":"menuitem51" , "name":"超链接" },{ "id":"menuitem52" , "name":"表单值重置" },{ "id":"menuitem55" , "name":"动态显示" },{ "id":"menuitem53" , "name":"动态启用" },{ "id":"menuitem54" , "name":"动态空输入" },{ "id":"menuitem56" , "name":"表单项更新" },{ "id":"menuitem108" , "name":"表单值规则" }]},{ "id":"menuitem16" , "name":"搜索表单" },{ "id":"menuitem126" , "name":"实体数据看板" }]},{ "id":"menuitem157" , "name":"导航类" , "items":[{ "id":"menuitem122" , "name":"数据关系栏" , "items":[{ "id":"menuitem116" , "name":" 数据关系栏" },{ "id":"menuitem117" , "name":"编辑视图(上下关系)" },{ "id":"menuitem118" , "name":"编辑视图(分页关系)" }]},{ "id":"menuitem120" , "name":"分页导航" },{ "id":"menuitem128" , "name":"表格导航" },{ "id":"menuitem136" , "name":"树导航" },{ "id":"menuitem137" , "name":"卡片导航" },{ "id":"menuitem139" , "name":"时间轴导航" },{ "id":"menuitem114" , "name":"列表导航" },{ "id":"menuitem138" , "name":"日历导航" }]},{ "id":"menuitem158" , "name":"面板类" , "items":[{ "id":"menuitem145" , "name":"选择视图面板" },{ "id":"menuitem17" , "name":"向导面板" , "items":[{ "id":"menuitem134" , "name":"基础用法" },{ "id":"menuitem135" , "name":"状态属性" }]},{ "id":"menuitem121" , "name":"多编辑视图面板" , "items":[{ "id":"menuitem115" , "name":"多表单(行记录)" },{ "id":"menuitem123" , "name":"多表单(上分页)" }]}]},{ "id":"menuitem119" , "name":"多数据类" , "items":[{ "id":"menuitem13" , "name":"表格" , "items":[{ "id":"menuitem57" , "name":"禁用排序" },{ "id":"menuitem59" , "name":"行操作" },{ "id":"menuitem58" , "name":"行编辑" },{ "id":"menuitem73" , "name":"内置功能" },{ "id":"menuitem74" , "name":"表格行编辑" },{ "id":"menuitem75" , "name":"新建默认值" },{ "id":"menuitem76" , "name":"更新默认值" },{ "id":"menuitem77" , "name":"表格值规则" },{ "id":"menuitem132" , "name":"表格列更新" },{ "id":"menuitem133" , "name":"表格列重置" },{ "id":"menuitem78" , "name":"自动分组" },{ "id":"menuitem80" , "name":"代码表分组" },{ "id":"menuitem81" , "name":"当前页聚合" },{ "id":"menuitem82" , "name":"远程聚合" }]},{ "id":"menuitem95" , "name":"日历" , "items":[{ "id":"menuitem96" , "name":"内置功能" },{ "id":"menuitem97" , "name":"时间轴样式" },{ "id":"menuitem109" , "name":"项布局面板" },{ "id":"menuitem64" , "name":"自定义插件" }]},{ "id":"menuitem110" , "name":"树表格" },{ "id":"menuitem111" , "name":"甘特图" },{ "id":"menuitem87" , "name":"数据视图" , "items":[{ "id":"menuitem88" , "name":"内置功能" },{ "id":"menuitem89" , "name":"自动分组" },{ "id":"menuitem90" , "name":"代码表分组" },{ "id":"menuitem94" , "name":"项布局面板" },{ "id":"menuitem152" , "name":"自定义插件" }]},{ "id":"menuitem83" , "name":"列表" , "items":[{ "id":"menuitem84" , "name":"内置功能" },{ "id":"menuitem85" , "name":"自动分组" },{ "id":"menuitem86" , "name":"代码表分组" },{ "id":"menuitem91" , "name":"项布局面板" },{ "id":"menuitem143" , "name":"自定义插件" }]},{ "id":"menuitem14" , "name":"树视图" , "items":[{ "id":"menuitem60" , "name":"静态节点" },{ "id":"menuitem61" , "name":"动态节点(代码表)" },{ "id":"menuitem62" , "name":"动态节点(实体)" },{ "id":"menuitem63" , "name":"右键操作" }]},{ "id":"menuitem37" , "name":"图表" , "items":[{ "id":"menuitem38" , "name":"柱状图" },{ "id":"menuitem39" , "name":"折线图" },{ "id":"menuitem40" , "name":"饼图" },{ "id":"menuitem41" , "name":"区域图" },{ "id":"menuitem42" , "name":"雷达图" }]},{ "id":"menuitem101" , "name":"实体看板" , "items":[{ "id":"menuitem102" , "name":"内置功能" },{ "id":"menuitem104" , "name":"代码表分组" },{ "id":"menuitem105" , "name":"项布局面板" }]}]},{ "id":"menuitem159" , "name":"其他类" }]},{ "id":"menuitem5" , "name":"视图" , "items":[{ "id":"menuitem26" , "name":"选择视图" , "items":[{ "id":"menuitem18" , "name":"数据选择视图" },{ "id":"menuitem27" , "name":"索引选择视图" }]},{ "id":"menuitem10" , "name":"导航视图" , "items":[{ "id":"menuitem32" , "name":"常规导航视图" },{ "id":"menuitem33" , "name":"分页导航视图" },{ "id":"menuitem34" , "name":"嵌入导航视图" },{ "id":"menuitem176" , "name":"实体表格导航视图" },{ "id":"menuitem177" , "name":"实体列表导航视图" },{ "id":"menuitem178" , "name":"实体卡片导航视图" },{ "id":"menuitem179" , "name":"实体日历导航视图" },{ "id":"menuitem180" , "name":"实体树导航视图" }]},{ "id":"menuitem11" , "name":"其他视图" , "items":[{ "id":"menuitem35" , "name":"图表视图" },{ "id":"menuitem36" , "name":"报表视图" },{ "id":"menuitem98" , "name":"自定义视图" }]},{ "id":"menuitem140" , "name":"单数据视图" , "items":[{ "id":"menuitem8" , "name":"编辑视图" , "items":[{ "id":"menuitem22" , "name":"常规编辑视图" },{ "id":"menuitem23" , "name":"左右编辑视图" },{ "id":"menuitem24" , "name":"分页编辑视图" },{ "id":"menuitem25" , "name":"嵌入编辑视图" }]},{ "id":"menuitem161" , "name":"实体向导视图" },{ "id":"menuitem162" , "name":"实体编辑视图(分页关系)" },{ "id":"menuitem163" , "name":"实体编辑视图(上下关系)" },{ "id":"menuitem164" , "name":"实体编辑视图(左右关系)" },{ "id":"menuitem165" , "name":"实体分页导航视图" },{ "id":"menuitem166" , "name":"实体数据看板视图" },{ "id":"menuitem167" , "name":"实体选项操作视图" }]},{ "id":"menuitem141" , "name":"多数据视图" , "items":[{ "id":"menuitem9" , "name":"列表视图" , "items":[{ "id":"menuitem21" , "name":"左右表格视图" },{ "id":"menuitem20" , "name":"嵌入表格视图" }]},{ "id":"menuitem79" , "name":"表格视图" , "items":[{ "id":"menuitem19" , "name":"常规表格视图" }]},{ "id":"menuitem168" , "name":"实体多表单编辑视图" },{ "id":"menuitem169" , "name":"实体甘特视图" },{ "id":"menuitem170" , "name":"实体日历视图" },{ "id":"menuitem171" , "name":"实体看板视图" },{ "id":"menuitem172" , "name":"实体树表格视图" },{ "id":"menuitem173" , "name":"实体树视图" },{ "id":"menuitem174" , "name":"实体数据视图" },{ "id":"menuitem175" , "name":"实体图表视图" }]},{ "id":"menuitem69" , "name":"工作流" , "items":[{ "id":"menuitem30" , "name":"工作流动态导航视图" },{ "id":"menuitem31" , "name":"工作流启动" }]}]},{ "id":"menuitem153" , "name":"逻辑" , "items":[{ "id":"menuitem154" , "name":"应用功能" , "items":[{ "id":"menuitem127" , "name":"打开应用视图" },{ "id":"menuitem147" , "name":"打开HTML页面" },{ "id":"menuitem160" , "name":"执行JavaScript" }]},{ "id":"menuitem155" , "name":"界面行为" , "items":[{ "id":"menuitem181" , "name":"前端界面行为" },{ "id":"menuitem182" , "name":"后台界面行为" }]}]},{ "id":"menuitem2" , "name":"更多" , "items":[{ "id":"menuitem46" , "name":"数据导出导入" },{ "id":"menuitem45" , "name":"数据打印" },{ "id":"menuitem67" , "name":"索引实体" },{ "id":"menuitem68" , "name":"继承实体" },{ "id":"menuitem71" , "name":"多表单" },{ "id":"menuitem184" , "name":"主状态" , "items":[{ "id":"menuitem70" , "name":"表格主状态" },{ "id":"menuitem148" , "name":"列表主状态" },{ "id":"menuitem183" , "name":"数据主状态" },{ "id":"menuitem28" , "name":"日历主状态" },{ "id":"menuitem29" , "name":"树主状态" }]}]},{ "id":"menuitem92" , "name":"其他" , "items":[{ "id":"menuitem93" , "name":"示例实体02示例数据补充" },{ "id":"menuitem100" , "name":"订单示例数据补充" },{ "id":"menuitem103" , "name":"产品示例数据补充" },{ "id":"menuitem106" , "name":"示例实体03示例数据补充" },{ "id":"menuitem113" , "name":"订单类型添加" },{ "id":"menuitem124" , "name":"示例实体01数据补充" },{ "id":"menuitem144" , "name":"客户实体示例数据补充" },{ "id":"menuitem146" , "name":"应用视图数据补充" },{ "id":"menuitem149" , "name":"应用部件数据补充" },{ "id":"menuitem150" , "name":"编辑器数据补充" }]}] }]
}
]
}
......@@ -8693,6 +8693,449 @@
"parentEntitys":[
]
}
,
{
"entity_name":"MICROCOMPONENT",
"logic_name":"微组件",
"code_name":"MicroComponent",
"table_name":"T_MICROCOMPONENT",
"system_id":"DemoSys",
"system_name":"DemoSys",
"module_id":"Sample",
"module_name":"示例",
"fields":[
{
"fieldname":"CREATEDATE" ,
"codename":"CreateDate",
"field_logic_name":"建立时间",
"entity_name":"MicroComponent",
"field_type":"DATETIME",
"nullable":0,
"physical_field":1,
"data_type":"DATETIME",
"data_length":8,
"predefined":"CREATEDATE",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"CREATEMAN" ,
"codename":"CreateMan",
"field_logic_name":"建立人",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"dict":"SysOperator",
"nullable":0,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":60,
"predefined":"CREATEMAN",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"MICROCOMPONENTNAME" ,
"codename":"MicroComponentName",
"field_logic_name":"微组件名称",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":200,
"key_field":0,
"show_order":1000,
"major_field":1
},
{
"fieldname":"MICROCOMPONENTID" ,
"codename":"MicroComponentId",
"field_logic_name":"微组件标识",
"entity_name":"MicroComponent",
"field_type":"GUID",
"nullable":0,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":1,
"show_order":1000,
"major_field":0
},
{
"fieldname":"UPDATEDATE" ,
"codename":"UpdateDate",
"field_logic_name":"更新时间",
"entity_name":"MicroComponent",
"field_type":"DATETIME",
"nullable":0,
"physical_field":1,
"data_type":"DATETIME",
"data_length":8,
"predefined":"UPDATEDATE",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"UPDATEMAN" ,
"codename":"UpdateMan",
"field_logic_name":"更新人",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"dict":"SysOperator",
"nullable":0,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":60,
"predefined":"UPDATEMAN",
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD" ,
"codename":"Field",
"field_logic_name":"属性",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD2" ,
"codename":"Field2",
"field_logic_name":"属性2",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD3" ,
"codename":"Field3",
"field_logic_name":"属性3",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD4" ,
"codename":"Field4",
"field_logic_name":"属性4",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD5" ,
"codename":"Field5",
"field_logic_name":"属性5",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD6" ,
"codename":"Field6",
"field_logic_name":"属性6",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD7" ,
"codename":"Field7",
"field_logic_name":"属性7",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD8" ,
"codename":"Field8",
"field_logic_name":"属性8",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD9" ,
"codename":"Field9",
"field_logic_name":"属性9",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD10" ,
"codename":"Field10",
"field_logic_name":"属性10",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD11" ,
"codename":"Field11",
"field_logic_name":"属性11",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD12" ,
"codename":"Field12",
"field_logic_name":"属性12",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD13" ,
"codename":"Field13",
"field_logic_name":"属性13",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD14" ,
"codename":"Field14",
"field_logic_name":"属性14",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD15" ,
"codename":"Field15",
"field_logic_name":"属性15",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD16" ,
"codename":"Field16",
"field_logic_name":"属性16",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD17" ,
"codename":"Field17",
"field_logic_name":"属性17",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD18" ,
"codename":"Field18",
"field_logic_name":"属性18",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD19" ,
"codename":"Field19",
"field_logic_name":"属性19",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD20" ,
"codename":"Field20",
"field_logic_name":"属性20",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD21" ,
"codename":"Field21",
"field_logic_name":"属性21",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD22" ,
"codename":"Field22",
"field_logic_name":"属性22",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD23" ,
"codename":"Field23",
"field_logic_name":"属性23",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
},
{
"fieldname":"FIELD24" ,
"codename":"Field24",
"field_logic_name":"属性24",
"entity_name":"MicroComponent",
"field_type":"TEXT",
"nullable":1,
"physical_field":1,
"data_type":"VARCHAR",
"data_length":100,
"key_field":0,
"show_order":1000,
"major_field":0
}
],
"subEntitys":[
],
"parentEntitys":[
]
}
]
}
package cn.ibizlab.demoapi.dto;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.math.BigInteger;
import java.util.Map;
import java.util.HashMap;
import java.io.Serializable;
import java.math.BigDecimal;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.alibaba.fastjson.annotation.JSONField;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import cn.ibizlab.util.domain.DTOBase;
import cn.ibizlab.util.domain.DTOClient;
import lombok.Data;
/**
* 服务DTO对象[MicroComponentDTO]
*/
@Data
public class MicroComponentDTO extends DTOBase implements Serializable {
private static final long serialVersionUID = 1L;
/**
* 属性 [CREATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "createdate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("createdate")
private Timestamp createdate;
/**
* 属性 [CREATEMAN]
*
*/
@JSONField(name = "createman")
@JsonProperty("createman")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
private String createman;
/**
* 属性 [MICROCOMPONENTNAME]
*
*/
@JSONField(name = "microcomponentname")
@JsonProperty("microcomponentname")
@Size(min = 0, max = 200, message = "内容长度必须小于等于[200]")
private String microcomponentname;
/**
* 属性 [MICROCOMPONENTID]
*
*/
@JSONField(name = "microcomponentid")
@JsonProperty("microcomponentid")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String microcomponentid;
/**
* 属性 [UPDATEDATE]
*
*/
@JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", locale = "zh" , timezone="GMT+8")
@JSONField(name = "updatedate" , format="yyyy-MM-dd HH:mm:ss")
@JsonProperty("updatedate")
private Timestamp updatedate;
/**
* 属性 [UPDATEMAN]
*
*/
@JSONField(name = "updateman")
@JsonProperty("updateman")
@Size(min = 0, max = 60, message = "内容长度必须小于等于[60]")
private String updateman;
/**
* 属性 [FIELD]
*
*/
@JSONField(name = "field")
@JsonProperty("field")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field;
/**
* 属性 [FIELD2]
*
*/
@JSONField(name = "field2")
@JsonProperty("field2")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field2;
/**
* 属性 [FIELD3]
*
*/
@JSONField(name = "field3")
@JsonProperty("field3")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field3;
/**
* 属性 [FIELD4]
*
*/
@JSONField(name = "field4")
@JsonProperty("field4")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field4;
/**
* 属性 [FIELD5]
*
*/
@JSONField(name = "field5")
@JsonProperty("field5")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field5;
/**
* 属性 [FIELD6]
*
*/
@JSONField(name = "field6")
@JsonProperty("field6")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field6;
/**
* 属性 [FIELD7]
*
*/
@JSONField(name = "field7")
@JsonProperty("field7")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field7;
/**
* 属性 [FIELD8]
*
*/
@JSONField(name = "field8")
@JsonProperty("field8")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field8;
/**
* 属性 [FIELD9]
*
*/
@JSONField(name = "field9")
@JsonProperty("field9")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field9;
/**
* 属性 [FIELD10]
*
*/
@JSONField(name = "field10")
@JsonProperty("field10")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field10;
/**
* 属性 [FIELD11]
*
*/
@JSONField(name = "field11")
@JsonProperty("field11")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field11;
/**
* 属性 [FIELD12]
*
*/
@JSONField(name = "field12")
@JsonProperty("field12")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field12;
/**
* 属性 [FIELD13]
*
*/
@JSONField(name = "field13")
@JsonProperty("field13")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field13;
/**
* 属性 [FIELD14]
*
*/
@JSONField(name = "field14")
@JsonProperty("field14")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field14;
/**
* 属性 [FIELD15]
*
*/
@JSONField(name = "field15")
@JsonProperty("field15")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field15;
/**
* 属性 [FIELD16]
*
*/
@JSONField(name = "field16")
@JsonProperty("field16")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field16;
/**
* 属性 [FIELD17]
*
*/
@JSONField(name = "field17")
@JsonProperty("field17")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field17;
/**
* 属性 [FIELD18]
*
*/
@JSONField(name = "field18")
@JsonProperty("field18")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field18;
/**
* 属性 [FIELD19]
*
*/
@JSONField(name = "field19")
@JsonProperty("field19")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field19;
/**
* 属性 [FIELD20]
*
*/
@JSONField(name = "field20")
@JsonProperty("field20")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field20;
/**
* 属性 [FIELD21]
*
*/
@JSONField(name = "field21")
@JsonProperty("field21")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field21;
/**
* 属性 [FIELD22]
*
*/
@JSONField(name = "field22")
@JsonProperty("field22")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field22;
/**
* 属性 [FIELD23]
*
*/
@JSONField(name = "field23")
@JsonProperty("field23")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field23;
/**
* 属性 [FIELD24]
*
*/
@JSONField(name = "field24")
@JsonProperty("field24")
@Size(min = 0, max = 100, message = "内容长度必须小于等于[100]")
private String field24;
/**
* 设置 [MICROCOMPONENTNAME]
*/
public void setMicrocomponentname(String microcomponentname){
this.microcomponentname = microcomponentname ;
this.modify("microcomponentname",microcomponentname);
}
/**
* 设置 [FIELD]
*/
public void setField(String field){
this.field = field ;
this.modify("field",field);
}
/**
* 设置 [FIELD2]
*/
public void setField2(String field2){
this.field2 = field2 ;
this.modify("field2",field2);
}
/**
* 设置 [FIELD3]
*/
public void setField3(String field3){
this.field3 = field3 ;
this.modify("field3",field3);
}
/**
* 设置 [FIELD4]
*/
public void setField4(String field4){
this.field4 = field4 ;
this.modify("field4",field4);
}
/**
* 设置 [FIELD5]
*/
public void setField5(String field5){
this.field5 = field5 ;
this.modify("field5",field5);
}
/**
* 设置 [FIELD6]
*/
public void setField6(String field6){
this.field6 = field6 ;
this.modify("field6",field6);
}
/**
* 设置 [FIELD7]
*/
public void setField7(String field7){
this.field7 = field7 ;
this.modify("field7",field7);
}
/**
* 设置 [FIELD8]
*/
public void setField8(String field8){
this.field8 = field8 ;
this.modify("field8",field8);
}
/**
* 设置 [FIELD9]
*/
public void setField9(String field9){
this.field9 = field9 ;
this.modify("field9",field9);
}
/**
* 设置 [FIELD10]
*/
public void setField10(String field10){
this.field10 = field10 ;
this.modify("field10",field10);
}
/**
* 设置 [FIELD11]
*/
public void setField11(String field11){
this.field11 = field11 ;
this.modify("field11",field11);
}
/**
* 设置 [FIELD12]
*/
public void setField12(String field12){
this.field12 = field12 ;
this.modify("field12",field12);
}
/**
* 设置 [FIELD13]
*/
public void setField13(String field13){
this.field13 = field13 ;
this.modify("field13",field13);
}
/**
* 设置 [FIELD14]
*/
public void setField14(String field14){
this.field14 = field14 ;
this.modify("field14",field14);
}
/**
* 设置 [FIELD15]
*/
public void setField15(String field15){
this.field15 = field15 ;
this.modify("field15",field15);
}
/**
* 设置 [FIELD16]
*/
public void setField16(String field16){
this.field16 = field16 ;
this.modify("field16",field16);
}
/**
* 设置 [FIELD17]
*/
public void setField17(String field17){
this.field17 = field17 ;
this.modify("field17",field17);
}
/**
* 设置 [FIELD18]
*/
public void setField18(String field18){
this.field18 = field18 ;
this.modify("field18",field18);
}
/**
* 设置 [FIELD19]
*/
public void setField19(String field19){
this.field19 = field19 ;
this.modify("field19",field19);
}
/**
* 设置 [FIELD20]
*/
public void setField20(String field20){
this.field20 = field20 ;
this.modify("field20",field20);
}
/**
* 设置 [FIELD21]
*/
public void setField21(String field21){
this.field21 = field21 ;
this.modify("field21",field21);
}
/**
* 设置 [FIELD22]
*/
public void setField22(String field22){
this.field22 = field22 ;
this.modify("field22",field22);
}
/**
* 设置 [FIELD23]
*/
public void setField23(String field23){
this.field23 = field23 ;
this.modify("field23",field23);
}
/**
* 设置 [FIELD24]
*/
public void setField24(String field24){
this.field24 = field24 ;
this.modify("field24",field24);
}
}
package cn.ibizlab.demoapi.mapping;
import org.mapstruct.*;
import cn.ibizlab.core.sample.domain.MicroComponent;
import cn.ibizlab.demoapi.dto.MicroComponentDTO;
import cn.ibizlab.util.domain.MappingBase;
@Mapper(componentModel = "spring", uses = {}, implementationName = "DemoAPIMicroComponentMapping",
nullValuePropertyMappingStrategy = NullValuePropertyMappingStrategy.IGNORE,
nullValueCheckStrategy = NullValueCheckStrategy.ALWAYS)
public interface MicroComponentMapping extends MappingBase<MicroComponentDTO, MicroComponent> {
}
package cn.ibizlab.demoapi.rest;
import java.sql.Timestamp;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
import java.math.BigInteger;
import java.util.HashMap;
import lombok.extern.slf4j.Slf4j;
import com.alibaba.fastjson.JSONObject;
import javax.servlet.ServletRequest;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cglib.beans.BeanCopier;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.*;
import org.springframework.http.HttpStatus;
import org.springframework.data.domain.PageRequest;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.PageImpl;
import org.springframework.data.domain.Pageable;
import org.springframework.util.StringUtils;
import org.springframework.context.annotation.Lazy;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.security.access.prepost.PostAuthorize;
import org.springframework.validation.annotation.Validated;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import cn.ibizlab.demoapi.dto.*;
import cn.ibizlab.demoapi.mapping.*;
import cn.ibizlab.core.sample.domain.MicroComponent;
import cn.ibizlab.core.sample.service.IMicroComponentService;
import cn.ibizlab.core.sample.filter.MicroComponentSearchContext;
import cn.ibizlab.util.annotation.VersionCheck;
@Slf4j
@Api(tags = {"微组件" })
@RestController("DemoAPI-microcomponent")
@RequestMapping("")
public class MicroComponentResource {
@Autowired
public IMicroComponentService microcomponentService;
@Autowired
@Lazy
public MicroComponentMapping microcomponentMapping;
@PreAuthorize("hasPermission(this.microcomponentMapping.toDomain(#microcomponentdto),'DemoSys-MicroComponent-Create')")
@ApiOperation(value = "新建微组件", tags = {"微组件" }, notes = "新建微组件")
@RequestMapping(method = RequestMethod.POST, value = "/microcomponents")
public ResponseEntity<MicroComponentDTO> create(@Validated @RequestBody MicroComponentDTO microcomponentdto) {
MicroComponent domain = microcomponentMapping.toDomain(microcomponentdto);
microcomponentService.create(domain);
MicroComponentDTO dto = microcomponentMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.microcomponentMapping.toDomain(#microcomponentdtos),'DemoSys-MicroComponent-Create')")
@ApiOperation(value = "批量新建微组件", tags = {"微组件" }, notes = "批量新建微组件")
@RequestMapping(method = RequestMethod.POST, value = "/microcomponents/batch")
public ResponseEntity<Boolean> createBatch(@RequestBody List<MicroComponentDTO> microcomponentdtos) {
microcomponentService.createBatch(microcomponentMapping.toDomain(microcomponentdtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@VersionCheck(entity = "microcomponent" , versionfield = "updatedate")
@PreAuthorize("hasPermission(this.microcomponentService.get(#microcomponent_id),'DemoSys-MicroComponent-Update')")
@ApiOperation(value = "更新微组件", tags = {"微组件" }, notes = "更新微组件")
@RequestMapping(method = RequestMethod.PUT, value = "/microcomponents/{microcomponent_id}")
public ResponseEntity<MicroComponentDTO> update(@PathVariable("microcomponent_id") String microcomponent_id, @RequestBody MicroComponentDTO microcomponentdto) {
MicroComponent domain = microcomponentMapping.toDomain(microcomponentdto);
domain .setMicrocomponentid(microcomponent_id);
microcomponentService.update(domain );
MicroComponentDTO dto = microcomponentMapping.toDto(domain );
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@PreAuthorize("hasPermission(this.microcomponentService.getMicrocomponentByEntities(this.microcomponentMapping.toDomain(#microcomponentdtos)),'DemoSys-MicroComponent-Update')")
@ApiOperation(value = "批量更新微组件", tags = {"微组件" }, notes = "批量更新微组件")
@RequestMapping(method = RequestMethod.PUT, value = "/microcomponents/batch")
public ResponseEntity<Boolean> updateBatch(@RequestBody List<MicroComponentDTO> microcomponentdtos) {
microcomponentService.updateBatch(microcomponentMapping.toDomain(microcomponentdtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasPermission(this.microcomponentService.get(#microcomponent_id),'DemoSys-MicroComponent-Remove')")
@ApiOperation(value = "删除微组件", tags = {"微组件" }, notes = "删除微组件")
@RequestMapping(method = RequestMethod.DELETE, value = "/microcomponents/{microcomponent_id}")
public ResponseEntity<Boolean> remove(@PathVariable("microcomponent_id") String microcomponent_id) {
return ResponseEntity.status(HttpStatus.OK).body(microcomponentService.remove(microcomponent_id));
}
@PreAuthorize("hasPermission(this.microcomponentService.getMicrocomponentByIds(#ids),'DemoSys-MicroComponent-Remove')")
@ApiOperation(value = "批量删除微组件", tags = {"微组件" }, notes = "批量删除微组件")
@RequestMapping(method = RequestMethod.DELETE, value = "/microcomponents/batch")
public ResponseEntity<Boolean> removeBatch(@RequestBody List<String> ids) {
microcomponentService.removeBatch(ids);
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PostAuthorize("hasPermission(this.microcomponentMapping.toDomain(returnObject.body),'DemoSys-MicroComponent-Get')")
@ApiOperation(value = "获取微组件", tags = {"微组件" }, notes = "获取微组件")
@RequestMapping(method = RequestMethod.GET, value = "/microcomponents/{microcomponent_id}")
public ResponseEntity<MicroComponentDTO> get(@PathVariable("microcomponent_id") String microcomponent_id) {
MicroComponent domain = microcomponentService.get(microcomponent_id);
MicroComponentDTO dto = microcomponentMapping.toDto(domain);
return ResponseEntity.status(HttpStatus.OK).body(dto);
}
@ApiOperation(value = "获取微组件草稿", tags = {"微组件" }, notes = "获取微组件草稿")
@RequestMapping(method = RequestMethod.GET, value = "/microcomponents/getdraft")
public ResponseEntity<MicroComponentDTO> getDraft() {
return ResponseEntity.status(HttpStatus.OK).body(microcomponentMapping.toDto(microcomponentService.getDraft(new MicroComponent())));
}
@ApiOperation(value = "检查微组件", tags = {"微组件" }, notes = "检查微组件")
@RequestMapping(method = RequestMethod.POST, value = "/microcomponents/checkkey")
public ResponseEntity<Boolean> checkKey(@RequestBody MicroComponentDTO microcomponentdto) {
return ResponseEntity.status(HttpStatus.OK).body(microcomponentService.checkKey(microcomponentMapping.toDomain(microcomponentdto)));
}
@PreAuthorize("hasPermission(this.microcomponentMapping.toDomain(#microcomponentdto),'DemoSys-MicroComponent-Save')")
@ApiOperation(value = "保存微组件", tags = {"微组件" }, notes = "保存微组件")
@RequestMapping(method = RequestMethod.POST, value = "/microcomponents/save")
public ResponseEntity<Boolean> save(@RequestBody MicroComponentDTO microcomponentdto) {
return ResponseEntity.status(HttpStatus.OK).body(microcomponentService.save(microcomponentMapping.toDomain(microcomponentdto)));
}
@PreAuthorize("hasPermission(this.microcomponentMapping.toDomain(#microcomponentdtos),'DemoSys-MicroComponent-Save')")
@ApiOperation(value = "批量保存微组件", tags = {"微组件" }, notes = "批量保存微组件")
@RequestMapping(method = RequestMethod.POST, value = "/microcomponents/savebatch")
public ResponseEntity<Boolean> saveBatch(@RequestBody List<MicroComponentDTO> microcomponentdtos) {
microcomponentService.saveBatch(microcomponentMapping.toDomain(microcomponentdtos));
return ResponseEntity.status(HttpStatus.OK).body(true);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-MicroComponent-searchDefault-all') and hasPermission(#context,'DemoSys-MicroComponent-Get')")
@ApiOperation(value = "获取数据集", tags = {"微组件" } ,notes = "获取数据集")
@RequestMapping(method= RequestMethod.GET , value="/microcomponents/fetchdefault")
public ResponseEntity<List<MicroComponentDTO>> fetchDefault(MicroComponentSearchContext context) {
Page<MicroComponent> domains = microcomponentService.searchDefault(context) ;
List<MicroComponentDTO> list = microcomponentMapping.toDto(domains.getContent());
return ResponseEntity.status(HttpStatus.OK)
.header("x-page", String.valueOf(context.getPageable().getPageNumber()))
.header("x-per-page", String.valueOf(context.getPageable().getPageSize()))
.header("x-total", String.valueOf(domains.getTotalElements()))
.body(list);
}
@PreAuthorize("hasAnyAuthority('ROLE_SUPERADMIN','DemoSys-MicroComponent-searchDefault-all') and hasPermission(#context,'DemoSys-MicroComponent-Get')")
@ApiOperation(value = "查询数据集", tags = {"微组件" } ,notes = "查询数据集")
@RequestMapping(method= RequestMethod.POST , value="/microcomponents/searchdefault")
public ResponseEntity<Page<MicroComponentDTO>> searchDefault(@RequestBody MicroComponentSearchContext context) {
Page<MicroComponent> domains = microcomponentService.searchDefault(context) ;
return ResponseEntity.status(HttpStatus.OK)
.body(new PageImpl(microcomponentMapping.toDto(domains.getContent()), context.getPageable(), domains.getTotalElements()));
}
}
......@@ -87,7 +87,6 @@ public class PermissionSyncJob implements ApplicationRunner {
bpmnfiles.add(new HashMap<String,Object>(){{put("LPv1.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/LPv1.bpmn"),"UTF-8"));}});
bpmnfiles.add(new HashMap<String,Object>(){{put("ODSPMVv1.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/ODSPMVv1.bpmn"),"UTF-8"));}});
bpmnfiles.add(new HashMap<String,Object>(){{put("ODSPMVv2.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/ODSPMVv2.bpmn"),"UTF-8"));}});
bpmnfiles.add(new HashMap<String,Object>(){{put("ACTv1.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/ACTv1.bpmn"),"UTF-8"));}});
bpmnfiles.add(new HashMap<String,Object>(){{put("SNv1.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/SNv1.bpmn"),"UTF-8"));}});
bpmnfiles.add(new HashMap<String,Object>(){{put("MNv1.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/MNv1.bpmn"),"UTF-8"));}});
bpmnfiles.add(new HashMap<String,Object>(){{put("ODSPv1.bpmn",IOUtils.toString(this.getClass().getResourceAsStream("/workflow/ODSPv1.bpmn"),"UTF-8"));}});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册