提交 22a9b57b authored 作者: ww1xhqc's avatar ww1xhqc

[数据模型] 修改表名避免和主系统冲突

上级 e60a3aa7
...@@ -15,7 +15,13 @@ import java.util.List; ...@@ -15,7 +15,13 @@ import java.util.List;
*/ */
public interface AggregationDao extends JpaRepository<Aggregation, Integer>, JpaSpecificationExecutor<Aggregation> { public interface AggregationDao extends JpaRepository<Aggregation, Integer>, JpaSpecificationExecutor<Aggregation> {
List<Aggregation> findAllByTableInfoExIdAndParentId(Integer tableExId,Integer parrentId); /**
* id
* @param tableExId
* @param parentId
* @return
*/
List<Aggregation> findAllByTableInfoExIdAndParentId(Integer tableExId,Integer parentId);
} }
...@@ -34,5 +34,10 @@ public interface TableInfoDao extends JpaRepository<TableInfo, Integer>, JpaSpec ...@@ -34,5 +34,10 @@ public interface TableInfoDao extends JpaRepository<TableInfo, Integer>, JpaSpec
@Modifying @Modifying
List<TableInfo> deleteAllByModelType(Integer type); List<TableInfo> deleteAllByModelType(Integer type);
/**
* 根据模型类型查找
* @param modeType
* @return
*/
List<TableInfo> findAllByModelType(Integer modeType); List<TableInfo> findAllByModelType(Integer modeType);
} }
...@@ -20,6 +20,7 @@ import java.util.List; ...@@ -20,6 +20,7 @@ import java.util.List;
*/ */
@WorkFlowCoreNoScan @WorkFlowCoreNoScan
@Data @Data
@Table(name = "workflow_aggregation")
@NoArgsConstructor @NoArgsConstructor
@Entity @Entity
@SQLDelete(sql = "update column_info set deleted = 1 where id = ?") @SQLDelete(sql = "update column_info set deleted = 1 where id = ?")
......
...@@ -25,6 +25,7 @@ import java.io.Serializable; ...@@ -25,6 +25,7 @@ import java.io.Serializable;
@Data @Data
@NoArgsConstructor @NoArgsConstructor
@Entity @Entity
@Table(name = "workflow_column_info")
public class ColumnInfo extends BaseEntity { public class ColumnInfo extends BaseEntity {
/** /**
......
...@@ -10,6 +10,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener; ...@@ -10,6 +10,7 @@ import org.springframework.data.jpa.domain.support.AuditingEntityListener;
import javax.persistence.*; import javax.persistence.*;
import javax.persistence.Entity; import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable; import java.io.Serializable;
/** /**
...@@ -21,6 +22,7 @@ import java.io.Serializable; ...@@ -21,6 +22,7 @@ import java.io.Serializable;
*/ */
@WorkFlowCoreNoScan @WorkFlowCoreNoScan
@Entity @Entity
@Table(name = "workflow_table_info")
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
@Data @Data
@SQLDelete(sql = "update table_info set deleted = 1 where id = ?") @SQLDelete(sql = "update table_info set deleted = 1 where id = ?")
......
...@@ -506,8 +506,9 @@ class WorkflowCoreApplicationTests { ...@@ -506,8 +506,9 @@ class WorkflowCoreApplicationTests {
@Test @Test
public void testType(){ public void testType(){
// System.out.println(getTypeName(Integer.class.toString())); // System.out.println(getTypeName(Integer.class.toString()));
String exJsonExample = modelHelper.getExJsonExample(5); // String exJsonExample = modelHelper.getExJsonExample(5);
System.out.println(exJsonExample); // System.out.println(exJsonExample);
} }
} }
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论