更新系统数据表
This commit is contained in:
parent
8894a09685
commit
1446ac77ba
|
@ -4,6 +4,8 @@
|
|||
<resultMap id="BaseResultMap" type="com.zheng.upms.dao.model.UpmsSystem">
|
||||
<id column="system_id" jdbcType="INTEGER" property="systemId" />
|
||||
<result column="icon" jdbcType="VARCHAR" property="icon" />
|
||||
<result column="banner" jdbcType="VARCHAR" property="banner" />
|
||||
<result column="theme" jdbcType="VARCHAR" property="theme" />
|
||||
<result column="basepath" jdbcType="VARCHAR" property="basepath" />
|
||||
<result column="status" jdbcType="TINYINT" property="status" />
|
||||
<result column="name" jdbcType="VARCHAR" property="name" />
|
||||
|
@ -71,7 +73,8 @@
|
|||
</where>
|
||||
</sql>
|
||||
<sql id="Base_Column_List">
|
||||
system_id, icon, basepath, status, name, title, description, ctime, orders
|
||||
system_id, icon, banner, theme, basepath, status, name, title, description, ctime,
|
||||
orders
|
||||
</sql>
|
||||
<select id="selectByExample" parameterType="com.zheng.upms.dao.model.UpmsSystemExample" resultMap="BaseResultMap">
|
||||
select
|
||||
|
@ -112,14 +115,14 @@
|
|||
</if>
|
||||
</delete>
|
||||
<insert id="insert" parameterType="com.zheng.upms.dao.model.UpmsSystem">
|
||||
insert into upms_system (system_id, icon, basepath,
|
||||
status, name, title,
|
||||
description, ctime, orders
|
||||
)
|
||||
values (#{systemId,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR}, #{basepath,jdbcType=VARCHAR},
|
||||
#{status,jdbcType=TINYINT}, #{name,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR},
|
||||
#{description,jdbcType=VARCHAR}, #{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT}
|
||||
)
|
||||
insert into upms_system (system_id, icon, banner,
|
||||
theme, basepath, status,
|
||||
name, title, description,
|
||||
ctime, orders)
|
||||
values (#{systemId,jdbcType=INTEGER}, #{icon,jdbcType=VARCHAR}, #{banner,jdbcType=VARCHAR},
|
||||
#{theme,jdbcType=VARCHAR}, #{basepath,jdbcType=VARCHAR}, #{status,jdbcType=TINYINT},
|
||||
#{name,jdbcType=VARCHAR}, #{title,jdbcType=VARCHAR}, #{description,jdbcType=VARCHAR},
|
||||
#{ctime,jdbcType=BIGINT}, #{orders,jdbcType=BIGINT})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.zheng.upms.dao.model.UpmsSystem">
|
||||
insert into upms_system
|
||||
|
@ -130,6 +133,12 @@
|
|||
<if test="icon != null">
|
||||
icon,
|
||||
</if>
|
||||
<if test="banner != null">
|
||||
banner,
|
||||
</if>
|
||||
<if test="theme != null">
|
||||
theme,
|
||||
</if>
|
||||
<if test="basepath != null">
|
||||
basepath,
|
||||
</if>
|
||||
|
@ -159,6 +168,12 @@
|
|||
<if test="icon != null">
|
||||
#{icon,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="banner != null">
|
||||
#{banner,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="theme != null">
|
||||
#{theme,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="basepath != null">
|
||||
#{basepath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
@ -197,6 +212,12 @@
|
|||
<if test="record.icon != null">
|
||||
icon = #{record.icon,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.banner != null">
|
||||
banner = #{record.banner,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.theme != null">
|
||||
theme = #{record.theme,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="record.basepath != null">
|
||||
basepath = #{record.basepath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
@ -227,6 +248,8 @@
|
|||
update upms_system
|
||||
set system_id = #{record.systemId,jdbcType=INTEGER},
|
||||
icon = #{record.icon,jdbcType=VARCHAR},
|
||||
banner = #{record.banner,jdbcType=VARCHAR},
|
||||
theme = #{record.theme,jdbcType=VARCHAR},
|
||||
basepath = #{record.basepath,jdbcType=VARCHAR},
|
||||
status = #{record.status,jdbcType=TINYINT},
|
||||
name = #{record.name,jdbcType=VARCHAR},
|
||||
|
@ -244,6 +267,12 @@
|
|||
<if test="icon != null">
|
||||
icon = #{icon,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="banner != null">
|
||||
banner = #{banner,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="theme != null">
|
||||
theme = #{theme,jdbcType=VARCHAR},
|
||||
</if>
|
||||
<if test="basepath != null">
|
||||
basepath = #{basepath,jdbcType=VARCHAR},
|
||||
</if>
|
||||
|
@ -271,6 +300,8 @@
|
|||
<update id="updateByPrimaryKey" parameterType="com.zheng.upms.dao.model.UpmsSystem">
|
||||
update upms_system
|
||||
set icon = #{icon,jdbcType=VARCHAR},
|
||||
banner = #{banner,jdbcType=VARCHAR},
|
||||
theme = #{theme,jdbcType=VARCHAR},
|
||||
basepath = #{basepath,jdbcType=VARCHAR},
|
||||
status = #{status,jdbcType=TINYINT},
|
||||
name = #{name,jdbcType=VARCHAR},
|
||||
|
|
|
@ -32,7 +32,7 @@ public class UpmsPermission implements Serializable {
|
|||
private String name;
|
||||
|
||||
/**
|
||||
* 类型(1:菜单,2:按钮)
|
||||
* 类型(1:目录,2:菜单,3:按钮)
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
|
|
|
@ -17,6 +17,20 @@ public class UpmsSystem implements Serializable {
|
|||
*/
|
||||
private String icon;
|
||||
|
||||
/**
|
||||
* 背景
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String banner;
|
||||
|
||||
/**
|
||||
* 主题
|
||||
*
|
||||
* @mbg.generated
|
||||
*/
|
||||
private String theme;
|
||||
|
||||
/**
|
||||
* 根目录
|
||||
*
|
||||
|
@ -84,6 +98,22 @@ public class UpmsSystem implements Serializable {
|
|||
this.icon = icon;
|
||||
}
|
||||
|
||||
public String getBanner() {
|
||||
return banner;
|
||||
}
|
||||
|
||||
public void setBanner(String banner) {
|
||||
this.banner = banner;
|
||||
}
|
||||
|
||||
public String getTheme() {
|
||||
return theme;
|
||||
}
|
||||
|
||||
public void setTheme(String theme) {
|
||||
this.theme = theme;
|
||||
}
|
||||
|
||||
public String getBasepath() {
|
||||
return basepath;
|
||||
}
|
||||
|
@ -148,6 +178,8 @@ public class UpmsSystem implements Serializable {
|
|||
sb.append("Hash = ").append(hashCode());
|
||||
sb.append(", systemId=").append(systemId);
|
||||
sb.append(", icon=").append(icon);
|
||||
sb.append(", banner=").append(banner);
|
||||
sb.append(", theme=").append(theme);
|
||||
sb.append(", basepath=").append(basepath);
|
||||
sb.append(", status=").append(status);
|
||||
sb.append(", name=").append(name);
|
||||
|
@ -173,6 +205,8 @@ public class UpmsSystem implements Serializable {
|
|||
UpmsSystem other = (UpmsSystem) that;
|
||||
return (this.getSystemId() == null ? other.getSystemId() == null : this.getSystemId().equals(other.getSystemId()))
|
||||
&& (this.getIcon() == null ? other.getIcon() == null : this.getIcon().equals(other.getIcon()))
|
||||
&& (this.getBanner() == null ? other.getBanner() == null : this.getBanner().equals(other.getBanner()))
|
||||
&& (this.getTheme() == null ? other.getTheme() == null : this.getTheme().equals(other.getTheme()))
|
||||
&& (this.getBasepath() == null ? other.getBasepath() == null : this.getBasepath().equals(other.getBasepath()))
|
||||
&& (this.getStatus() == null ? other.getStatus() == null : this.getStatus().equals(other.getStatus()))
|
||||
&& (this.getName() == null ? other.getName() == null : this.getName().equals(other.getName()))
|
||||
|
@ -188,6 +222,8 @@ public class UpmsSystem implements Serializable {
|
|||
int result = 1;
|
||||
result = prime * result + ((getSystemId() == null) ? 0 : getSystemId().hashCode());
|
||||
result = prime * result + ((getIcon() == null) ? 0 : getIcon().hashCode());
|
||||
result = prime * result + ((getBanner() == null) ? 0 : getBanner().hashCode());
|
||||
result = prime * result + ((getTheme() == null) ? 0 : getTheme().hashCode());
|
||||
result = prime * result + ((getBasepath() == null) ? 0 : getBasepath().hashCode());
|
||||
result = prime * result + ((getStatus() == null) ? 0 : getStatus().hashCode());
|
||||
result = prime * result + ((getName() == null) ? 0 : getName().hashCode());
|
||||
|
|
|
@ -257,6 +257,146 @@ public class UpmsSystemExample implements Serializable {
|
|||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerIsNull() {
|
||||
addCriterion("banner is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerIsNotNull() {
|
||||
addCriterion("banner is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerEqualTo(String value) {
|
||||
addCriterion("banner =", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerNotEqualTo(String value) {
|
||||
addCriterion("banner <>", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerGreaterThan(String value) {
|
||||
addCriterion("banner >", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("banner >=", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerLessThan(String value) {
|
||||
addCriterion("banner <", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerLessThanOrEqualTo(String value) {
|
||||
addCriterion("banner <=", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerLike(String value) {
|
||||
addCriterion("banner like", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerNotLike(String value) {
|
||||
addCriterion("banner not like", value, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerIn(List<String> values) {
|
||||
addCriterion("banner in", values, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerNotIn(List<String> values) {
|
||||
addCriterion("banner not in", values, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerBetween(String value1, String value2) {
|
||||
addCriterion("banner between", value1, value2, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBannerNotBetween(String value1, String value2) {
|
||||
addCriterion("banner not between", value1, value2, "banner");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeIsNull() {
|
||||
addCriterion("theme is null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeIsNotNull() {
|
||||
addCriterion("theme is not null");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeEqualTo(String value) {
|
||||
addCriterion("theme =", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeNotEqualTo(String value) {
|
||||
addCriterion("theme <>", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeGreaterThan(String value) {
|
||||
addCriterion("theme >", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeGreaterThanOrEqualTo(String value) {
|
||||
addCriterion("theme >=", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeLessThan(String value) {
|
||||
addCriterion("theme <", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeLessThanOrEqualTo(String value) {
|
||||
addCriterion("theme <=", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeLike(String value) {
|
||||
addCriterion("theme like", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeNotLike(String value) {
|
||||
addCriterion("theme not like", value, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeIn(List<String> values) {
|
||||
addCriterion("theme in", values, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeNotIn(List<String> values) {
|
||||
addCriterion("theme not in", values, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeBetween(String value1, String value2) {
|
||||
addCriterion("theme between", value1, value2, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andThemeNotBetween(String value1, String value2) {
|
||||
addCriterion("theme not between", value1, value2, "theme");
|
||||
return (Criteria) this;
|
||||
}
|
||||
|
||||
public Criteria andBasepathIsNull() {
|
||||
addCriterion("basepath is null");
|
||||
return (Criteria) this;
|
||||
|
|
Loading…
Reference in New Issue