Bläddra i källkod

初始

master
郑根木 2 år sedan
förälder
incheckning
1e440f468b
2 ändrade filer med 21 tillägg och 29 borttagningar
  1. +2
    -29
      smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/db/vo/ModelTable.java
  2. +19
    -0
      smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelTableSaveHanlder.java

+ 2
- 29
smtweb-framework/sw-framework-core/src/main/java/cc/smtweb/framework/core/db/vo/ModelTable.java Visa fil

@@ -7,6 +7,8 @@ import cc.smtweb.framework.core.common.SwEnum;
import cc.smtweb.framework.core.db.cache.ModelTableCache;
import cc.smtweb.framework.core.db.impl.DefaultEntity;
import cc.smtweb.framework.core.util.JsonUtil;
import cc.smtweb.framework.core.util.jackson.BaseBeanSerializer;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.apache.commons.lang3.StringUtils;

import java.util.ArrayList;
@@ -15,35 +17,6 @@ import java.util.List;
@SwTable(value = "ASP_MODEL_TABLE")
public class ModelTable extends DefaultEntity {
public final static String ENTITY_NAME = "ASP_MODEL_TABLE";
/*private long id;
//所属数据库id及名称
private long databaseId;
//项目id
private long prjoectId;
//目录id
private long catalogId;
//库表名
private String name;
//中文名
private String title;
//缩写
private String abbr;
//继承的表
private String tableExtends;
//类型 0-普通表,1 树型表 2 编码表 9-虚拟抽象表 11 视图'
private int type;
//表定义
private String tableContent;
//是否需要缓存
private boolean needCache;
//创建者
private Long createUid;
//创建时间
private Long createAt;
//最后更新人
private Long updateUid;
//更新时间
private Long updateAt;*/

/*冗余*/
private String idField;


+ 19
- 0
smtweb-system/sw-system-bpm/src/main/java/cc/smtweb/system/bpm/web/design/table/ModelTableSaveHanlder.java Visa fil

@@ -0,0 +1,19 @@
package cc.smtweb.system.bpm.web.design.table;

import cc.smtweb.framework.core.db.vo.ModelTable;
import cc.smtweb.framework.core.mvc.service.DefaultSaveHandler;

/**
* Created by Akmm at 2022/3/25 11:40
*/
public class ModelTableSaveHanlder extends DefaultSaveHandler<ModelTable> {
public ModelTableSaveHanlder() {
super(ModelTable.ENTITY_NAME);
}

@Override
protected void readFromPage() {
super.readFromPage();
bean.setContent(bean.getContent());
}
}

Laddar…
Avbryt
Spara