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 {
......
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.glsx.manager.mapper.SysMenuMapper">
<resultMap id="BaseResultMap" type="com.glsx.manager.pojo.menu.SysMenu">
<id column="id" jdbcType="INTEGER" property="id" />
<result column="name" jdbcType="VARCHAR" property="name" />
......@@ -19,6 +18,8 @@
<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="menu_group" jdbcType="VARCHAR" property="menuGroup" />
<result column="func_type" jdbcType="VARCHAR" property="funcType" />
</resultMap>
<sql id="Example_Where_Clause">
<where>
......@@ -49,38 +50,10 @@
</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, name, parent_id, sort, right_des, request_add, menu_status, menu_type, menu_icon,
"is_show", create_time, update_time, remark, update_by, create_by, label
is_show, create_time, update_time, remark, update_by, create_by, label, menu_group,
func_type
</sql>
<select id="selectByExample" parameterType="com.glsx.manager.pojo.menu.SysMenuExample" resultMap="BaseResultMap">
select
......@@ -107,28 +80,22 @@
delete from sys_menu
where id = #{id,jdbcType=INTEGER}
</delete>
<delete id="deleteByExample" parameterType="com.glsx.manager.pojo.menu.SysMenuExample">
delete from sys_menu
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</delete>
<insert id="insert" parameterType="com.glsx.manager.pojo.menu.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
SELECT LAST_INSERT_ID()
</selectKey>
insert into sys_menu (name, parent_id, sort,
right_des, request_add, menu_status,
menu_type, menu_icon, "is_show",
menu_type, menu_icon, is_show,
create_time, update_time, remark,
update_by, create_by, label
)
update_by, create_by, label,
menu_group, func_type)
values (#{name,jdbcType=VARCHAR}, #{parentId,jdbcType=INTEGER}, #{sort,jdbcType=INTEGER},
#{rightDes,jdbcType=VARCHAR}, #{requestAdd,jdbcType=VARCHAR}, #{menuStatus,jdbcType=TINYINT},
#{menuType,jdbcType=TINYINT}, #{menuIcon,jdbcType=VARCHAR}, #{isShow,jdbcType=TINYINT},
#{createTime,jdbcType=TIMESTAMP}, #{updateTime,jdbcType=TIMESTAMP}, #{remark,jdbcType=VARCHAR},
#{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT}
)
#{updateBy,jdbcType=VARCHAR}, #{createBy,jdbcType=VARCHAR}, #{label,jdbcType=TINYINT},
#{menuGroup,jdbcType=VARCHAR}, #{funcType,jdbcType=VARCHAR})
</insert>
<insert id="insertSelective" parameterType="com.glsx.manager.pojo.menu.SysMenu">
<selectKey keyProperty="id" order="AFTER" resultType="java.lang.Integer">
......@@ -161,7 +128,7 @@
menu_icon,
</if>
<if test="isShow != null">
"is_show",
is_show,
</if>
<if test="createTime != null">
create_time,
......@@ -181,6 +148,12 @@
<if test="label != null">
label,
</if>
<if test="menuGroup != null">
menu_group,
</if>
<if test="funcType != null">
func_type,
</if>
</trim>
<trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="name != null">
......@@ -228,92 +201,14 @@
<if test="label != null">
#{label,jdbcType=TINYINT},
</if>
</trim>
</insert>
<select id="countByExample" parameterType="com.glsx.manager.pojo.menu.SysMenuExample" resultType="java.lang.Long">
select count(*) from sys_menu
<if test="_parameter != null">
<include refid="Example_Where_Clause" />
</if>
</select>
<update id="updateByExampleSelective" parameterType="map">
update sys_menu
<set>
<if test="record.id != null">
id = #{record.id,jdbcType=INTEGER},
</if>
<if test="record.name != null">
name = #{record.name,jdbcType=VARCHAR},
</if>
<if test="record.parentId != null">
parent_id = #{record.parentId,jdbcType=INTEGER},
</if>
<if test="record.sort != null">
sort = #{record.sort,jdbcType=INTEGER},
</if>
<if test="record.rightDes != null">
right_des = #{record.rightDes,jdbcType=VARCHAR},
</if>
<if test="record.requestAdd != null">
request_add = #{record.requestAdd,jdbcType=VARCHAR},
</if>
<if test="record.menuStatus != null">
menu_status = #{record.menuStatus,jdbcType=TINYINT},
</if>
<if test="record.menuType != null">
menu_type = #{record.menuType,jdbcType=TINYINT},
</if>
<if test="record.menuIcon != null">
menu_icon = #{record.menuIcon,jdbcType=VARCHAR},
</if>
<if test="record.isShow != null">
"is_show" = #{record.isShow,jdbcType=TINYINT},
<if test="menuGroup != null">
#{menuGroup,jdbcType=VARCHAR},
</if>
<if test="record.createTime != null">
create_time = #{record.createTime,jdbcType=TIMESTAMP},
<if test="funcType != null">
#{funcType,jdbcType=VARCHAR},
</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_menu
set id = #{record.id,jdbcType=INTEGER},
name = #{record.name,jdbcType=VARCHAR},
parent_id = #{record.parentId,jdbcType=INTEGER},
sort = #{record.sort,jdbcType=INTEGER},
right_des = #{record.rightDes,jdbcType=VARCHAR},
request_add = #{record.requestAdd,jdbcType=VARCHAR},
menu_status = #{record.menuStatus,jdbcType=TINYINT},
menu_type = #{record.menuType,jdbcType=TINYINT},
menu_icon = #{record.menuIcon,jdbcType=VARCHAR},
"is_show" = #{record.isShow,jdbcType=TINYINT},
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>
</trim>
</insert>
<update id="updateByPrimaryKeySelective" parameterType="com.glsx.manager.pojo.menu.SysMenu">
update sys_menu
<set>
......@@ -342,7 +237,7 @@
menu_icon = #{menuIcon,jdbcType=VARCHAR},
</if>
<if test="isShow != null">
"is_show" = #{isShow,jdbcType=TINYINT},
is_show = #{isShow,jdbcType=TINYINT},
</if>
<if test="createTime != null">
create_time = #{createTime,jdbcType=TIMESTAMP},
......@@ -362,6 +257,12 @@
<if test="label != null">
label = #{label,jdbcType=TINYINT},
</if>
<if test="menuGroup != null">
menu_group = #{menuGroup,jdbcType=VARCHAR},
</if>
<if test="funcType != null">
func_type = #{funcType,jdbcType=VARCHAR},
</if>
</set>
where id = #{id,jdbcType=INTEGER}
</update>
......@@ -375,34 +276,15 @@
menu_status = #{menuStatus,jdbcType=TINYINT},
menu_type = #{menuType,jdbcType=TINYINT},
menu_icon = #{menuIcon,jdbcType=VARCHAR},
"is_show" = #{isShow,jdbcType=TINYINT},
is_show = #{isShow,jdbcType=TINYINT},
create_time = #{createTime,jdbcType=TIMESTAMP},
update_time = #{updateTime,jdbcType=TIMESTAMP},
remark = #{remark,jdbcType=VARCHAR},
update_by = #{updateBy,jdbcType=VARCHAR},
create_by = #{createBy,jdbcType=VARCHAR},
label = #{label,jdbcType=TINYINT}
label = #{label,jdbcType=TINYINT},
menu_group = #{menuGroup,jdbcType=VARCHAR},
func_type = #{funcType,jdbcType=VARCHAR}
where id = #{id,jdbcType=INTEGER}
</update>
<resultMap type="com.glsx.manager.pojo.menu.SysMenu" id="recursionMenuMap" extends="BaseResultMap">
<collection property="children" ofType="com.glsx.manager.pojo.menu.SysMenu"
column="id" select="findMenuByParentId" />
</resultMap>
<select id="findAllRecursion" resultMap="recursionMenuMap">
SELECT
<include refid="Base_Column_List" />
FROM sys_menu WHERE parent_id ='' or parent_id is
NULL ORDER BY `order` ASC
</select>
<select id="findMenuByParentId" resultType="com.glsx.manager.pojo.menu.SysMenu">
SELECT
id,`name`,parent_id,url FROM menu WHERE parent_id = #{id} ORDER BY
`order` ASC
</select>
</mapper>
\ No newline at end of file
......@@ -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!