diff --git a/backend/src/main/java/io/dataease/base/domain/SysBackgroundImage.java b/backend/src/main/java/io/dataease/base/domain/SysBackgroundImage.java new file mode 100644 index 0000000000..a745b4568f --- /dev/null +++ b/backend/src/main/java/io/dataease/base/domain/SysBackgroundImage.java @@ -0,0 +1,27 @@ +package io.dataease.base.domain; + +import java.io.Serializable; +import lombok.Data; + +@Data +public class SysBackgroundImage implements Serializable { + private String id; + + private String name; + + private String classification; + + private String remark; + + private Integer sort; + + private Long uploadTime; + + private String baseUrl; + + private String url; + + private String content; + + private static final long serialVersionUID = 1L; +} \ No newline at end of file diff --git a/backend/src/main/java/io/dataease/base/domain/SysBackgroundImageExample.java b/backend/src/main/java/io/dataease/base/domain/SysBackgroundImageExample.java new file mode 100644 index 0000000000..20f1f8deae --- /dev/null +++ b/backend/src/main/java/io/dataease/base/domain/SysBackgroundImageExample.java @@ -0,0 +1,740 @@ +package io.dataease.base.domain; + +import java.util.ArrayList; +import java.util.List; + +public class SysBackgroundImageExample { + protected String orderByClause; + + protected boolean distinct; + + protected List oredCriteria; + + public SysBackgroundImageExample() { + oredCriteria = new ArrayList(); + } + + public void setOrderByClause(String orderByClause) { + this.orderByClause = orderByClause; + } + + public String getOrderByClause() { + return orderByClause; + } + + public void setDistinct(boolean distinct) { + this.distinct = distinct; + } + + public boolean isDistinct() { + return distinct; + } + + public List getOredCriteria() { + return oredCriteria; + } + + public void or(Criteria criteria) { + oredCriteria.add(criteria); + } + + public Criteria or() { + Criteria criteria = createCriteriaInternal(); + oredCriteria.add(criteria); + return criteria; + } + + public Criteria createCriteria() { + Criteria criteria = createCriteriaInternal(); + if (oredCriteria.size() == 0) { + oredCriteria.add(criteria); + } + return criteria; + } + + protected Criteria createCriteriaInternal() { + Criteria criteria = new Criteria(); + return criteria; + } + + public void clear() { + oredCriteria.clear(); + orderByClause = null; + distinct = false; + } + + protected abstract static class GeneratedCriteria { + protected List criteria; + + protected GeneratedCriteria() { + super(); + criteria = new ArrayList(); + } + + public boolean isValid() { + return criteria.size() > 0; + } + + public List getAllCriteria() { + return criteria; + } + + public List getCriteria() { + return criteria; + } + + protected void addCriterion(String condition) { + if (condition == null) { + throw new RuntimeException("Value for condition cannot be null"); + } + criteria.add(new Criterion(condition)); + } + + protected void addCriterion(String condition, Object value, String property) { + if (value == null) { + throw new RuntimeException("Value for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value)); + } + + protected void addCriterion(String condition, Object value1, Object value2, String property) { + if (value1 == null || value2 == null) { + throw new RuntimeException("Between values for " + property + " cannot be null"); + } + criteria.add(new Criterion(condition, value1, value2)); + } + + public Criteria andIdIsNull() { + addCriterion("id is null"); + return (Criteria) this; + } + + public Criteria andIdIsNotNull() { + addCriterion("id is not null"); + return (Criteria) this; + } + + public Criteria andIdEqualTo(String value) { + addCriterion("id =", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotEqualTo(String value) { + addCriterion("id <>", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThan(String value) { + addCriterion("id >", value, "id"); + return (Criteria) this; + } + + public Criteria andIdGreaterThanOrEqualTo(String value) { + addCriterion("id >=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThan(String value) { + addCriterion("id <", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLessThanOrEqualTo(String value) { + addCriterion("id <=", value, "id"); + return (Criteria) this; + } + + public Criteria andIdLike(String value) { + addCriterion("id like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdNotLike(String value) { + addCriterion("id not like", value, "id"); + return (Criteria) this; + } + + public Criteria andIdIn(List values) { + addCriterion("id in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdNotIn(List values) { + addCriterion("id not in", values, "id"); + return (Criteria) this; + } + + public Criteria andIdBetween(String value1, String value2) { + addCriterion("id between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andIdNotBetween(String value1, String value2) { + addCriterion("id not between", value1, value2, "id"); + return (Criteria) this; + } + + public Criteria andNameIsNull() { + addCriterion("`name` is null"); + return (Criteria) this; + } + + public Criteria andNameIsNotNull() { + addCriterion("`name` is not null"); + return (Criteria) this; + } + + public Criteria andNameEqualTo(String value) { + addCriterion("`name` =", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotEqualTo(String value) { + addCriterion("`name` <>", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThan(String value) { + addCriterion("`name` >", value, "name"); + return (Criteria) this; + } + + public Criteria andNameGreaterThanOrEqualTo(String value) { + addCriterion("`name` >=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThan(String value) { + addCriterion("`name` <", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLessThanOrEqualTo(String value) { + addCriterion("`name` <=", value, "name"); + return (Criteria) this; + } + + public Criteria andNameLike(String value) { + addCriterion("`name` like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameNotLike(String value) { + addCriterion("`name` not like", value, "name"); + return (Criteria) this; + } + + public Criteria andNameIn(List values) { + addCriterion("`name` in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameNotIn(List values) { + addCriterion("`name` not in", values, "name"); + return (Criteria) this; + } + + public Criteria andNameBetween(String value1, String value2) { + addCriterion("`name` between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andNameNotBetween(String value1, String value2) { + addCriterion("`name` not between", value1, value2, "name"); + return (Criteria) this; + } + + public Criteria andClassificationIsNull() { + addCriterion("classification is null"); + return (Criteria) this; + } + + public Criteria andClassificationIsNotNull() { + addCriterion("classification is not null"); + return (Criteria) this; + } + + public Criteria andClassificationEqualTo(String value) { + addCriterion("classification =", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationNotEqualTo(String value) { + addCriterion("classification <>", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationGreaterThan(String value) { + addCriterion("classification >", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationGreaterThanOrEqualTo(String value) { + addCriterion("classification >=", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationLessThan(String value) { + addCriterion("classification <", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationLessThanOrEqualTo(String value) { + addCriterion("classification <=", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationLike(String value) { + addCriterion("classification like", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationNotLike(String value) { + addCriterion("classification not like", value, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationIn(List values) { + addCriterion("classification in", values, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationNotIn(List values) { + addCriterion("classification not in", values, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationBetween(String value1, String value2) { + addCriterion("classification between", value1, value2, "classification"); + return (Criteria) this; + } + + public Criteria andClassificationNotBetween(String value1, String value2) { + addCriterion("classification not between", value1, value2, "classification"); + return (Criteria) this; + } + + public Criteria andRemarkIsNull() { + addCriterion("remark is null"); + return (Criteria) this; + } + + public Criteria andRemarkIsNotNull() { + addCriterion("remark is not null"); + return (Criteria) this; + } + + public Criteria andRemarkEqualTo(String value) { + addCriterion("remark =", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotEqualTo(String value) { + addCriterion("remark <>", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThan(String value) { + addCriterion("remark >", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkGreaterThanOrEqualTo(String value) { + addCriterion("remark >=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThan(String value) { + addCriterion("remark <", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLessThanOrEqualTo(String value) { + addCriterion("remark <=", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkLike(String value) { + addCriterion("remark like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotLike(String value) { + addCriterion("remark not like", value, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkIn(List values) { + addCriterion("remark in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotIn(List values) { + addCriterion("remark not in", values, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkBetween(String value1, String value2) { + addCriterion("remark between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andRemarkNotBetween(String value1, String value2) { + addCriterion("remark not between", value1, value2, "remark"); + return (Criteria) this; + } + + public Criteria andSortIsNull() { + addCriterion("sort is null"); + return (Criteria) this; + } + + public Criteria andSortIsNotNull() { + addCriterion("sort is not null"); + return (Criteria) this; + } + + public Criteria andSortEqualTo(Integer value) { + addCriterion("sort =", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotEqualTo(Integer value) { + addCriterion("sort <>", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThan(Integer value) { + addCriterion("sort >", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortGreaterThanOrEqualTo(Integer value) { + addCriterion("sort >=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThan(Integer value) { + addCriterion("sort <", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortLessThanOrEqualTo(Integer value) { + addCriterion("sort <=", value, "sort"); + return (Criteria) this; + } + + public Criteria andSortIn(List values) { + addCriterion("sort in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotIn(List values) { + addCriterion("sort not in", values, "sort"); + return (Criteria) this; + } + + public Criteria andSortBetween(Integer value1, Integer value2) { + addCriterion("sort between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andSortNotBetween(Integer value1, Integer value2) { + addCriterion("sort not between", value1, value2, "sort"); + return (Criteria) this; + } + + public Criteria andUploadTimeIsNull() { + addCriterion("upload_time is null"); + return (Criteria) this; + } + + public Criteria andUploadTimeIsNotNull() { + addCriterion("upload_time is not null"); + return (Criteria) this; + } + + public Criteria andUploadTimeEqualTo(Long value) { + addCriterion("upload_time =", value, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeNotEqualTo(Long value) { + addCriterion("upload_time <>", value, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeGreaterThan(Long value) { + addCriterion("upload_time >", value, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeGreaterThanOrEqualTo(Long value) { + addCriterion("upload_time >=", value, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeLessThan(Long value) { + addCriterion("upload_time <", value, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeLessThanOrEqualTo(Long value) { + addCriterion("upload_time <=", value, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeIn(List values) { + addCriterion("upload_time in", values, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeNotIn(List values) { + addCriterion("upload_time not in", values, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeBetween(Long value1, Long value2) { + addCriterion("upload_time between", value1, value2, "uploadTime"); + return (Criteria) this; + } + + public Criteria andUploadTimeNotBetween(Long value1, Long value2) { + addCriterion("upload_time not between", value1, value2, "uploadTime"); + return (Criteria) this; + } + + public Criteria andBaseUrlIsNull() { + addCriterion("base_url is null"); + return (Criteria) this; + } + + public Criteria andBaseUrlIsNotNull() { + addCriterion("base_url is not null"); + return (Criteria) this; + } + + public Criteria andBaseUrlEqualTo(String value) { + addCriterion("base_url =", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlNotEqualTo(String value) { + addCriterion("base_url <>", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlGreaterThan(String value) { + addCriterion("base_url >", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlGreaterThanOrEqualTo(String value) { + addCriterion("base_url >=", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlLessThan(String value) { + addCriterion("base_url <", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlLessThanOrEqualTo(String value) { + addCriterion("base_url <=", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlLike(String value) { + addCriterion("base_url like", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlNotLike(String value) { + addCriterion("base_url not like", value, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlIn(List values) { + addCriterion("base_url in", values, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlNotIn(List values) { + addCriterion("base_url not in", values, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlBetween(String value1, String value2) { + addCriterion("base_url between", value1, value2, "baseUrl"); + return (Criteria) this; + } + + public Criteria andBaseUrlNotBetween(String value1, String value2) { + addCriterion("base_url not between", value1, value2, "baseUrl"); + return (Criteria) this; + } + + public Criteria andUrlIsNull() { + addCriterion("url is null"); + return (Criteria) this; + } + + public Criteria andUrlIsNotNull() { + addCriterion("url is not null"); + return (Criteria) this; + } + + public Criteria andUrlEqualTo(String value) { + addCriterion("url =", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotEqualTo(String value) { + addCriterion("url <>", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThan(String value) { + addCriterion("url >", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlGreaterThanOrEqualTo(String value) { + addCriterion("url >=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThan(String value) { + addCriterion("url <", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLessThanOrEqualTo(String value) { + addCriterion("url <=", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlLike(String value) { + addCriterion("url like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotLike(String value) { + addCriterion("url not like", value, "url"); + return (Criteria) this; + } + + public Criteria andUrlIn(List values) { + addCriterion("url in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotIn(List values) { + addCriterion("url not in", values, "url"); + return (Criteria) this; + } + + public Criteria andUrlBetween(String value1, String value2) { + addCriterion("url between", value1, value2, "url"); + return (Criteria) this; + } + + public Criteria andUrlNotBetween(String value1, String value2) { + addCriterion("url not between", value1, value2, "url"); + return (Criteria) this; + } + } + + public static class Criteria extends GeneratedCriteria { + + protected Criteria() { + super(); + } + } + + public static class Criterion { + private String condition; + + private Object value; + + private Object secondValue; + + private boolean noValue; + + private boolean singleValue; + + private boolean betweenValue; + + private boolean listValue; + + private String typeHandler; + + public String getCondition() { + return condition; + } + + public Object getValue() { + return value; + } + + public Object getSecondValue() { + return secondValue; + } + + public boolean isNoValue() { + return noValue; + } + + public boolean isSingleValue() { + return singleValue; + } + + public boolean isBetweenValue() { + return betweenValue; + } + + public boolean isListValue() { + return listValue; + } + + public String getTypeHandler() { + return typeHandler; + } + + protected Criterion(String condition) { + super(); + this.condition = condition; + this.typeHandler = null; + this.noValue = true; + } + + protected Criterion(String condition, Object value, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.typeHandler = typeHandler; + if (value instanceof List) { + this.listValue = true; + } else { + this.singleValue = true; + } + } + + protected Criterion(String condition, Object value) { + this(condition, value, null); + } + + protected Criterion(String condition, Object value, Object secondValue, String typeHandler) { + super(); + this.condition = condition; + this.value = value; + this.secondValue = secondValue; + this.typeHandler = typeHandler; + this.betweenValue = true; + } + + protected Criterion(String condition, Object value, Object secondValue) { + this(condition, value, secondValue, null); + } + } +} \ No newline at end of file diff --git a/backend/src/main/java/io/dataease/base/mapper/SysBackgroundImageMapper.java b/backend/src/main/java/io/dataease/base/mapper/SysBackgroundImageMapper.java new file mode 100644 index 0000000000..4c9a791626 --- /dev/null +++ b/backend/src/main/java/io/dataease/base/mapper/SysBackgroundImageMapper.java @@ -0,0 +1,36 @@ +package io.dataease.base.mapper; + +import io.dataease.base.domain.SysBackgroundImage; +import io.dataease.base.domain.SysBackgroundImageExample; +import java.util.List; +import org.apache.ibatis.annotations.Param; + +public interface SysBackgroundImageMapper { + long countByExample(SysBackgroundImageExample example); + + int deleteByExample(SysBackgroundImageExample example); + + int deleteByPrimaryKey(String id); + + int insert(SysBackgroundImage record); + + int insertSelective(SysBackgroundImage record); + + List selectByExampleWithBLOBs(SysBackgroundImageExample example); + + List selectByExample(SysBackgroundImageExample example); + + SysBackgroundImage selectByPrimaryKey(String id); + + int updateByExampleSelective(@Param("record") SysBackgroundImage record, @Param("example") SysBackgroundImageExample example); + + int updateByExampleWithBLOBs(@Param("record") SysBackgroundImage record, @Param("example") SysBackgroundImageExample example); + + int updateByExample(@Param("record") SysBackgroundImage record, @Param("example") SysBackgroundImageExample example); + + int updateByPrimaryKeySelective(SysBackgroundImage record); + + int updateByPrimaryKeyWithBLOBs(SysBackgroundImage record); + + int updateByPrimaryKey(SysBackgroundImage record); +} \ No newline at end of file diff --git a/backend/src/main/java/io/dataease/base/mapper/SysBackgroundImageMapper.xml b/backend/src/main/java/io/dataease/base/mapper/SysBackgroundImageMapper.xml new file mode 100644 index 0000000000..720cb073cd --- /dev/null +++ b/backend/src/main/java/io/dataease/base/mapper/SysBackgroundImageMapper.xml @@ -0,0 +1,323 @@ + + + + + + + + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + + + + + + + + and ${criterion.condition} + + + and ${criterion.condition} #{criterion.value} + + + and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} + + + and ${criterion.condition} + + #{listItem} + + + + + + + + + + + id, `name`, classification, remark, sort, upload_time, base_url, url + + + content + + + + + + delete from sys_background_image + where id = #{id,jdbcType=VARCHAR} + + + delete from sys_background_image + + + + + + insert into sys_background_image (id, `name`, classification, + remark, sort, upload_time, + base_url, url, content + ) + values (#{id,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, #{classification,jdbcType=VARCHAR}, + #{remark,jdbcType=VARCHAR}, #{sort,jdbcType=INTEGER}, #{uploadTime,jdbcType=BIGINT}, + #{baseUrl,jdbcType=VARCHAR}, #{url,jdbcType=VARCHAR}, #{content,jdbcType=LONGVARCHAR} + ) + + + insert into sys_background_image + + + id, + + + `name`, + + + classification, + + + remark, + + + sort, + + + upload_time, + + + base_url, + + + url, + + + content, + + + + + #{id,jdbcType=VARCHAR}, + + + #{name,jdbcType=VARCHAR}, + + + #{classification,jdbcType=VARCHAR}, + + + #{remark,jdbcType=VARCHAR}, + + + #{sort,jdbcType=INTEGER}, + + + #{uploadTime,jdbcType=BIGINT}, + + + #{baseUrl,jdbcType=VARCHAR}, + + + #{url,jdbcType=VARCHAR}, + + + #{content,jdbcType=LONGVARCHAR}, + + + + + + update sys_background_image + + + id = #{record.id,jdbcType=VARCHAR}, + + + `name` = #{record.name,jdbcType=VARCHAR}, + + + classification = #{record.classification,jdbcType=VARCHAR}, + + + remark = #{record.remark,jdbcType=VARCHAR}, + + + sort = #{record.sort,jdbcType=INTEGER}, + + + upload_time = #{record.uploadTime,jdbcType=BIGINT}, + + + base_url = #{record.baseUrl,jdbcType=VARCHAR}, + + + url = #{record.url,jdbcType=VARCHAR}, + + + content = #{record.content,jdbcType=LONGVARCHAR}, + + + + + + + + update sys_background_image + set id = #{record.id,jdbcType=VARCHAR}, + `name` = #{record.name,jdbcType=VARCHAR}, + classification = #{record.classification,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + sort = #{record.sort,jdbcType=INTEGER}, + upload_time = #{record.uploadTime,jdbcType=BIGINT}, + base_url = #{record.baseUrl,jdbcType=VARCHAR}, + url = #{record.url,jdbcType=VARCHAR}, + content = #{record.content,jdbcType=LONGVARCHAR} + + + + + + update sys_background_image + set id = #{record.id,jdbcType=VARCHAR}, + `name` = #{record.name,jdbcType=VARCHAR}, + classification = #{record.classification,jdbcType=VARCHAR}, + remark = #{record.remark,jdbcType=VARCHAR}, + sort = #{record.sort,jdbcType=INTEGER}, + upload_time = #{record.uploadTime,jdbcType=BIGINT}, + base_url = #{record.baseUrl,jdbcType=VARCHAR}, + url = #{record.url,jdbcType=VARCHAR} + + + + + + update sys_background_image + + + `name` = #{name,jdbcType=VARCHAR}, + + + classification = #{classification,jdbcType=VARCHAR}, + + + remark = #{remark,jdbcType=VARCHAR}, + + + sort = #{sort,jdbcType=INTEGER}, + + + upload_time = #{uploadTime,jdbcType=BIGINT}, + + + base_url = #{baseUrl,jdbcType=VARCHAR}, + + + url = #{url,jdbcType=VARCHAR}, + + + content = #{content,jdbcType=LONGVARCHAR}, + + + where id = #{id,jdbcType=VARCHAR} + + + update sys_background_image + set `name` = #{name,jdbcType=VARCHAR}, + classification = #{classification,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + upload_time = #{uploadTime,jdbcType=BIGINT}, + base_url = #{baseUrl,jdbcType=VARCHAR}, + url = #{url,jdbcType=VARCHAR}, + content = #{content,jdbcType=LONGVARCHAR} + where id = #{id,jdbcType=VARCHAR} + + + update sys_background_image + set `name` = #{name,jdbcType=VARCHAR}, + classification = #{classification,jdbcType=VARCHAR}, + remark = #{remark,jdbcType=VARCHAR}, + sort = #{sort,jdbcType=INTEGER}, + upload_time = #{uploadTime,jdbcType=BIGINT}, + base_url = #{baseUrl,jdbcType=VARCHAR}, + url = #{url,jdbcType=VARCHAR} + where id = #{id,jdbcType=VARCHAR} + + \ No newline at end of file diff --git a/backend/src/main/resources/db/migration/V32__1.8.sql b/backend/src/main/resources/db/migration/V32__1.8.sql index 0eacd3c270..7e114e1572 100644 --- a/backend/src/main/resources/db/migration/V32__1.8.sql +++ b/backend/src/main/resources/db/migration/V32__1.8.sql @@ -317,3 +317,36 @@ ADD COLUMN `is_plugin` bit(1) NULL COMMENT '是否插件' AFTER `chart_type`; INSERT INTO `my_plugin` VALUES (2, '视图默认插件', 'default', 0, 20000, 'view', '默认视图插件', '1.0-SNAPSHOT', NULL, 'fit2cloud-chenyw', 0, NULL, NULL, 'deplugin-view-backend', NULL); + +SET NAMES utf8mb4; +SET FOREIGN_KEY_CHECKS = 0; + +-- ---------------------------- +-- Table structure for sys_background_image +-- ---------------------------- +DROP TABLE IF EXISTS `sys_background_image`; +CREATE TABLE `sys_background_image` ( + `id` varchar(64) NOT NULL, + `name` varchar(255) DEFAULT NULL, + `classification` varchar(255) NOT NULL, + `content` longtext, + `remark` varchar(255) DEFAULT NULL, + `sort` int(8) DEFAULT NULL, + `upload_time` bigint(13) DEFAULT NULL, + `base_url` varchar(255) DEFAULT NULL, + `url` varchar(255) DEFAULT NULL, + PRIMARY KEY (`id`) +) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; + +-- ---------------------------- +-- Records of sys_background_image +-- ---------------------------- +BEGIN; +INSERT INTO `sys_background_image` VALUES ('blue_1', '边框1', '蓝色调', '', NULL, NULL, NULL, 'img/board', 'board/blue_1.svg'); +INSERT INTO `sys_background_image` VALUES ('blue_2', '边框2', '蓝色调', NULL, NULL, NULL, NULL, 'img/board', 'board/blue_2.svg'); +INSERT INTO `sys_background_image` VALUES ('blue_3', '边框3', '蓝色调', NULL, NULL, NULL, NULL, 'img/board', 'board/blue_3.svg'); +INSERT INTO `sys_background_image` VALUES ('blue_4', '边框4', '蓝色调', NULL, NULL, NULL, NULL, 'img/board', 'board/blue_4.svg'); +INSERT INTO `sys_background_image` VALUES ('blue_5', '边框5', '蓝色调', NULL, NULL, NULL, NULL, 'img/board', 'board/blue_5.svg'); +COMMIT; + +SET FOREIGN_KEY_CHECKS = 1;