sql 语句 初始化
This commit is contained in:
@@ -0,0 +1,66 @@
|
||||
package com.czg.system.entity;
|
||||
|
||||
import com.mybatisflex.annotation.Column;
|
||||
import com.mybatisflex.annotation.Id;
|
||||
import com.mybatisflex.annotation.Table;
|
||||
import java.io.Serializable;
|
||||
import java.time.LocalDateTime;
|
||||
|
||||
import java.io.Serial;
|
||||
|
||||
import lombok.AllArgsConstructor;
|
||||
import lombok.Builder;
|
||||
import lombok.Data;
|
||||
import lombok.NoArgsConstructor;
|
||||
|
||||
/**
|
||||
* 实体类。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2025-03-27
|
||||
*/
|
||||
@Data
|
||||
@Builder
|
||||
@NoArgsConstructor
|
||||
@AllArgsConstructor
|
||||
@Table("sql_script")
|
||||
public class SqlScript implements Serializable {
|
||||
|
||||
@Serial
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
@Id
|
||||
private Long id;
|
||||
|
||||
/**
|
||||
* 表名
|
||||
*/
|
||||
private String tableName;
|
||||
|
||||
/**
|
||||
* 是否已执行
|
||||
*/
|
||||
private Integer isUp;
|
||||
|
||||
/**
|
||||
* 该次执行描述
|
||||
*/
|
||||
private String message;
|
||||
|
||||
/**
|
||||
* 执行的 sql语句
|
||||
*/
|
||||
private String sqls;
|
||||
|
||||
/**
|
||||
* 操作日期 yyMMdd
|
||||
*/
|
||||
private String tradeDay;
|
||||
|
||||
/**
|
||||
* 时间
|
||||
*/
|
||||
@Column(onInsertValue = "now()")
|
||||
private LocalDateTime createTime;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
package com.czg.system.service;
|
||||
|
||||
import com.mybatisflex.core.service.IService;
|
||||
import com.czg.system.entity.SqlScript;
|
||||
|
||||
/**
|
||||
* 服务层。
|
||||
*
|
||||
* @author ww
|
||||
* @since 2025-03-27
|
||||
*/
|
||||
public interface SqlScriptService extends IService<SqlScript> {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user