Commit fb8fe177 by zhengxj

finish 修正映射文件,dao,实体类 on 20190115 by zhengxj

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@16621 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent 92bdcbf8
package com.glsx.manager.pojo.menu;
import java.beans.Transient;
import java.util.Date;
import java.util.List;
......@@ -33,16 +31,19 @@ public class SysMenu {
private String remark;
private String updateBy;
private String createBy;
private Byte label;
private List<SysMenu> children;
private String menuGroup;
private String funcType;
private List<SysMenu> children;
@Transient
public List<SysMenu> getChildren() {
return children;
}
......@@ -178,4 +179,20 @@ public class SysMenu {
public void setLabel(Byte label) {
this.label = label;
}
public String getMenuGroup() {
return menuGroup;
}
public void setMenuGroup(String menuGroup) {
this.menuGroup = menuGroup == null ? null : menuGroup.trim();
}
public String getFuncType() {
return funcType;
}
public void setFuncType(String funcType) {
this.funcType = funcType == null ? null : funcType.trim();
}
}
\ No newline at end of file
......@@ -686,62 +686,62 @@ public class SysMenuExample {
}
public Criteria andIsShowIsNull() {
addCriterion("\"is_ show\" is null");
addCriterion("is_show is null");
return (Criteria) this;
}
public Criteria andIsShowIsNotNull() {
addCriterion("\"is_ show\" is not null");
addCriterion("is_show is not null");
return (Criteria) this;
}
public Criteria andIsShowEqualTo(Byte value) {
addCriterion("\"is_ show\" =", value, "isShow");
addCriterion("is_show =", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotEqualTo(Byte value) {
addCriterion("\"is_ show\" <>", value, "isShow");
addCriterion("is_show <>", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThan(Byte value) {
addCriterion("\"is_ show\" >", value, "isShow");
addCriterion("is_show >", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowGreaterThanOrEqualTo(Byte value) {
addCriterion("\"is_ show\" >=", value, "isShow");
addCriterion("is_show >=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThan(Byte value) {
addCriterion("\"is_ show\" <", value, "isShow");
addCriterion("is_show <", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowLessThanOrEqualTo(Byte value) {
addCriterion("\"is_ show\" <=", value, "isShow");
addCriterion("is_show <=", value, "isShow");
return (Criteria) this;
}
public Criteria andIsShowIn(List<Byte> values) {
addCriterion("\"is_ show\" in", values, "isShow");
addCriterion("is_show in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotIn(List<Byte> values) {
addCriterion("\"is_ show\" not in", values, "isShow");
addCriterion("is_show not in", values, "isShow");
return (Criteria) this;
}
public Criteria andIsShowBetween(Byte value1, Byte value2) {
addCriterion("\"is_ show\" between", value1, value2, "isShow");
addCriterion("is_show between", value1, value2, "isShow");
return (Criteria) this;
}
public Criteria andIsShowNotBetween(Byte value1, Byte value2) {
addCriterion("\"is_ show\" not between", value1, value2, "isShow");
addCriterion("is_show not between", value1, value2, "isShow");
return (Criteria) this;
}
......@@ -1134,6 +1134,146 @@ public class SysMenuExample {
addCriterion("label not between", value1, value2, "label");
return (Criteria) this;
}
public Criteria andMenuGroupIsNull() {
addCriterion("menu_group is null");
return (Criteria) this;
}
public Criteria andMenuGroupIsNotNull() {
addCriterion("menu_group is not null");
return (Criteria) this;
}
public Criteria andMenuGroupEqualTo(String value) {
addCriterion("menu_group =", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotEqualTo(String value) {
addCriterion("menu_group <>", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupGreaterThan(String value) {
addCriterion("menu_group >", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupGreaterThanOrEqualTo(String value) {
addCriterion("menu_group >=", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupLessThan(String value) {
addCriterion("menu_group <", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupLessThanOrEqualTo(String value) {
addCriterion("menu_group <=", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupLike(String value) {
addCriterion("menu_group like", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotLike(String value) {
addCriterion("menu_group not like", value, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupIn(List<String> values) {
addCriterion("menu_group in", values, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotIn(List<String> values) {
addCriterion("menu_group not in", values, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupBetween(String value1, String value2) {
addCriterion("menu_group between", value1, value2, "menuGroup");
return (Criteria) this;
}
public Criteria andMenuGroupNotBetween(String value1, String value2) {
addCriterion("menu_group not between", value1, value2, "menuGroup");
return (Criteria) this;
}
public Criteria andFuncTypeIsNull() {
addCriterion("func_type is null");
return (Criteria) this;
}
public Criteria andFuncTypeIsNotNull() {
addCriterion("func_type is not null");
return (Criteria) this;
}
public Criteria andFuncTypeEqualTo(String value) {
addCriterion("func_type =", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotEqualTo(String value) {
addCriterion("func_type <>", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeGreaterThan(String value) {
addCriterion("func_type >", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeGreaterThanOrEqualTo(String value) {
addCriterion("func_type >=", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeLessThan(String value) {
addCriterion("func_type <", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeLessThanOrEqualTo(String value) {
addCriterion("func_type <=", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeLike(String value) {
addCriterion("func_type like", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotLike(String value) {
addCriterion("func_type not like", value, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeIn(List<String> values) {
addCriterion("func_type in", values, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotIn(List<String> values) {
addCriterion("func_type not in", values, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeBetween(String value1, String value2) {
addCriterion("func_type between", value1, value2, "funcType");
return (Criteria) this;
}
public Criteria andFuncTypeNotBetween(String value1, String value2) {
addCriterion("func_type not between", value1, value2, "funcType");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
......
......@@ -27,6 +27,8 @@ public class SysOrganization {
private Byte label;
private String orgGroup;
public Integer getId() {
return id;
}
......@@ -122,4 +124,12 @@ public class SysOrganization {
public void setLabel(Byte label) {
this.label = label;
}
public String getOrgGroup() {
return orgGroup;
}
public void setOrgGroup(String orgGroup) {
this.orgGroup = orgGroup == null ? null : orgGroup.trim();
}
}
\ No newline at end of file
......@@ -864,6 +864,76 @@ public class SysOrganizationExample {
addCriterion("label not between", value1, value2, "label");
return (Criteria) this;
}
public Criteria andOrgGroupIsNull() {
addCriterion("org_group is null");
return (Criteria) this;
}
public Criteria andOrgGroupIsNotNull() {
addCriterion("org_group is not null");
return (Criteria) this;
}
public Criteria andOrgGroupEqualTo(String value) {
addCriterion("org_group =", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotEqualTo(String value) {
addCriterion("org_group <>", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupGreaterThan(String value) {
addCriterion("org_group >", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupGreaterThanOrEqualTo(String value) {
addCriterion("org_group >=", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupLessThan(String value) {
addCriterion("org_group <", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupLessThanOrEqualTo(String value) {
addCriterion("org_group <=", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupLike(String value) {
addCriterion("org_group like", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotLike(String value) {
addCriterion("org_group not like", value, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupIn(List<String> values) {
addCriterion("org_group in", values, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotIn(List<String> values) {
addCriterion("org_group not in", values, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupBetween(String value1, String value2) {
addCriterion("org_group between", value1, value2, "orgGroup");
return (Criteria) this;
}
public Criteria andOrgGroupNotBetween(String value1, String value2) {
addCriterion("org_group not between", value1, value2, "orgGroup");
return (Criteria) this;
}
}
public static class Criteria extends GeneratedCriteria {
......
......@@ -14,6 +14,7 @@
<result column="update_by" jdbcType="VARCHAR" property="updateBy" />
<result column="create_by" jdbcType="VARCHAR" property="createBy" />
<result column="label" jdbcType="TINYINT" property="label" />
<result column="org_group" jdbcType="VARCHAR" property="orgGroup" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
......@@ -44,38 +45,9 @@
</foreach>
</where>
</sql>
<sql id="Update_By_Example_Where_Clause">
<where>
<foreach collection="example.oredCriteria" item="criteria" separator="or">
<if test="criteria.valid">
<trim prefix="(" prefixOverrides="and" suffix=")">
<foreach collection="criteria.criteria" item="criterion">
<choose>
<when test="criterion.noValue">
and ${criterion.condition}
</when>
<when test="criterion.singleValue">
and ${criterion.condition} #{criterion.value}
</when>
<when test="criterion.betweenValue">
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue}
</when>
<when test="criterion.listValue">
and ${criterion.condition}
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=",">
#{listItem}
</foreach>
</when>
</choose>
</foreach>
</trim>
</if>
</foreach>
</where>
</sql>
<sql id="Base_Column_List">
id, parent_id, name, org_status, org_type, sort, create_time, update_time, remark,
update_by, create_by, label
update_by, create_by, label, org_group
</sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.menu.SysOrganizationExample" resultMap="BaseResultMap">
select
......@@ -102,12 +74,6 @@
delete from sys_organization
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.menu.SysOrganizationExample">
delete from sys_organization
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
......@@ -115,11 +81,13 @@
insert into sys_organization (parent_id, name, org_status,
org_type, sort, create_time,
update_time, remark, update_by,
create_by, label)
create_by, label, org_group
)
values (#{parentId,jdbcType=INTEGER}, #{name,jdbcType=VARCHAR}, #{orgStatus,jdbcType=TINYINT},
#{orgType,jdbcType=TINYINT}, #{sort,jdbcType=INTEGER}, #{createTime,jdbcType=TIMESTAMP},
#{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR}, #{updateBy,jdbcType=VARCHAR},
#{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT})
#{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT}, #{orgGroup,jdbcType=VARCHAR}
)
</insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
......@@ -160,6 +128,9 @@
<if test="label != null">
label,
</if>
<if test="orgGroup != null">
org_group,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="parentId != null">
......@@ -195,76 +166,11 @@
<if test="label != null">
#{label,jdbcType=TINYINT},
</if>
<if test="orgGroup != null">
#{orgGroup,jdbcType=VARCHAR},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.menu.SysOrganizationExample" resultType="java.lang.Long">
select count(*) from sys_organization
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sys_organization
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.orgStatus != null">
org_status = #{record.orgStatus,jdbcType=TINYINT},
</if>
<if test="record.orgType != null">
org_type = #{record.orgType,jdbcType=TINYINT},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
</if>
<if test="record.updateTime != null">
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
</if>
<if test="record.remark != null">
remark = #{record.remark,jdbcType=VARCHAR},
</if>
<if test="record.updateBy != null">
update_by = #{record.updateBy,jdbcType=VARCHAR},
</if>
<if test="record.createBy != null">
create_by = #{record.createBy,jdbcType=VARCHAR},
</if>
<if test="record.label != null">
label = #{record.label,jdbcType=TINYINT},
</if>
</set>
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByExample" parameterType="map">
update sys_organization
set id = #{record.id,jdbcType=INTEGER},
parent_id = #{record.parentId,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
org_status = #{record.orgStatus,jdbcType=TINYINT},
org_type = #{record.orgType,jdbcType=TINYINT},
sort = #{record.sort,jdbcType=INTEGER},
create_time = #{record.createTime,jdbcType=TIMESTAMP},
update_time = #{record.updateTime,jdbcType=TIMESTAMP},
remark = #{record.remark,jdbcType=VARCHAR},
update_by = #{record.updateBy,jdbcType=VARCHAR},
create_by = #{record.createBy,jdbcType=VARCHAR},
label = #{record.label,jdbcType=TINYINT}
<if test="_parameter != null">
<include refid="Update_By_Example_Where_Clause" />
</if>
</update>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.menu.SysOrganization">
update sys_organization
<set>
......@@ -301,6 +207,9 @@
<if test="label != null">
label = #{label,jdbcType=TINYINT},
</if>
<if test="orgGroup != null">
org_group = #{orgGroup,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -316,7 +225,8 @@
remark = #{remark,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
label = #{label,jdbcType=TINYINT}
label = #{label,jdbcType=TINYINT},
org_group = #{orgGroup,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
</mapper>
\ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!