测试提交

This commit is contained in:
小犹太
2022-06-23 05:35:56 +08:00
parent 77cba04b53
commit 68318dcd2f
4 changed files with 1 additions and 164 deletions
@@ -37,86 +37,4 @@ public class AssCogeField {
@Column(length = 32)
private String length;//字段长度
//
// /** 编号 */
// private Long columnId;
//
// /** 归属表编号 */
// private Long tableId;
//
// /** 列名称 */
// private String columnName;
//
// /** 列描述 */
// private String columnComment;
//
// /** 列类型 */
// private String columnType;
//
// /** JAVA类型 */
// private String javaType;
//
// /** JAVA字段名 */
// @NotBlank(message = "Java属性不能为空")
// private String javaField;
//
// /** 是否主键(1是) */
// private String isPk;
//
// /** 是否自增(1是) */
// private String isIncrement;
//
// /** 是否必填(1是) */
// private String isRequired;
//
// /** 是否为插入字段(1是) */
// private String isInsert;
//
// /** 是否编辑字段(1是) */
// private String isEdit;
//
// /** 是否列表字段(1是) */
// private String isList;
//
// /** 是否查询字段(1是) */
// private String isQuery;
//
// /** 查询方式(EQ等于、NE不等于、GT大于、LT小于、LIKE模糊、BETWEEN范围) */
// private String queryType;
//
// /** 显示类型(input文本框、textarea文本域、select下拉框、checkbox复选框、radio单选框、datetime日期控件、image图片上传控件、upload文件上传控件、editor富文本控件) */
// private String htmlType;
//
// /** 字典类型 */
// private String dictType;
//
// /** 排序 */
// private Integer sort;
//
// public boolean isSuperColumn()
// {
// return isSuperColumn(this.javaField);
// }
//
// public static boolean isSuperColumn(String javaField)
// {
// return StringUtils.equalsAnyIgnoreCase(javaField,
// // BaseEntity
// "createBy", "createTime", "updateBy", "updateTime", "remark",
// // TreeEntity
// "parentName", "parentId", "orderNum", "ancestors");
// }
//
// public boolean isPk()
// {
// return isPk(this.isPk);
// }
//
// public boolean isPk(String isPk)
// {
// return isPk != null && StringUtils.equals("1", isPk);
// }
}
@@ -34,7 +34,6 @@ public class AssCogeTable extends BaseMainEntity {
@Column(length = 32)
private String pmeid;//上级菜单ID
private Integer pecol;//每行列数
@OneToMany(cascade = CascadeType.ALL, orphanRemoval = true)
@@ -56,77 +55,4 @@ public class AssCogeTable extends BaseMainEntity {
@Column(length = 32)
private String orfie;//排序字段
//
// /** 编号 */
// private Long tableId;
//
// /** 表名称 */
// @NotBlank(message = "表名称不能为空")
// private String tableName="aaa";
//
// /** 表描述 */
// @NotBlank(message = "表描述不能为空")
// private String tableComment="aaa";
//
// /** 关联父表的表名 */
// private String subTableName;
//
// /** 本表关联父表的外键名 */
// private String subTableFkName;
//
// /** 实体类名称(首字母大写) */
// @NotBlank(message = "实体类名称不能为空")
// private String className="aaa";
//
// /** 使用的模板(crud单表操作 tree树表操作 sub主子表操作) */
// private String tplCategory;
//
// /** 生成包路径 */
// @NotBlank(message = "生成包路径不能为空")
// private String packageName="aaa";
//
// /** 生成模块名 */
// @NotBlank(message = "生成模块名不能为空")
// private String moduleName="aaa";
//
// /** 生成业务名 */
// @NotBlank(message = "生成业务名不能为空")
// private String businessName="aaa";
//
// /** 生成功能名 */
// @NotBlank(message = "生成功能名不能为空")
// private String functionName="aaa";
//
// /** 生成作者 */
// @NotBlank(message = "作者不能为空")
// private String functionAuthor="aaa";
//
// /** 生成代码方式(0zip压缩包 1自定义路径) */
// private String genType;
//
// /** 生成路径(不填默认项目路径) */
// private String genPath;
//
//
// /** 其它生成选项 */
// private String options;
//
// /** 树编码字段 */
// private String treeCode;
//
// /** 树父编码字段 */
// private String treeParentCode;
//
// /** 树名称字段 */
// private String treeName;
//
// /** 上级菜单ID字段 */
// private String parentMenuId;
//
// /** 上级菜单名称字段 */
// private String parentMenuName;
}
@@ -14,7 +14,6 @@ import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.List;
@RestController
@RequestMapping("ass/coge/table")
public class AssCogeTableApi {
@@ -70,9 +69,7 @@ public class AssCogeTableApi {
@Autowired
private AssCogeTableService service;
/**
* 生成zip文件
*/
//生成zip文件
private void genCode(HttpServletResponse response, byte[] data) throws IOException {
response.reset();
SimpleDateFormat sdf = new SimpleDateFormat("MMddHHmmss");
@@ -107,8 +107,6 @@ public class AssCogeTableService extends BaseMainService<AssCogeTable> {
}
}
//----------bean注入------------
@Autowired
private AssCogeTableRepo repo;
@@ -117,7 +115,5 @@ public class AssCogeTableService extends BaseMainService<AssCogeTable> {
public void initDao() {
super.setRepo(repo);
}
}