14 changed files with 1456 additions and 1615 deletions
@ -1,150 +1,139 @@ |
|||||
package com.ccsens.carbasics.bean.po; |
package com.ccsens.carbasics.bean.po; |
||||
|
|
||||
import java.io.Serializable; |
import java.io.Serializable; |
||||
import java.util.Date; |
import java.util.Date; |
||||
|
|
||||
public class Organization implements Serializable { |
public class Organization implements Serializable { |
||||
private Long id; |
private Long id; |
||||
|
|
||||
private Byte organizationType; |
private Byte organizationType; |
||||
|
|
||||
private String code; |
private String code; |
||||
|
|
||||
private String name; |
private String name; |
||||
|
|
||||
private String shortName; |
private String shortName; |
||||
|
|
||||
private String introduce; |
private String introduce; |
||||
|
|
||||
private Byte level; |
private Byte level; |
||||
|
|
||||
private Long parentId; |
private Long operator; |
||||
|
|
||||
private Long operator; |
private Date createdAt; |
||||
|
|
||||
private Date createdAt; |
private Date updatedAt; |
||||
|
|
||||
private Date updatedAt; |
private Byte recStatus; |
||||
|
|
||||
private Byte recStatus; |
private static final long serialVersionUID = 1L; |
||||
|
|
||||
private static final long serialVersionUID = 1L; |
public Long getId() { |
||||
|
return id; |
||||
public Long getId() { |
} |
||||
return id; |
|
||||
} |
public void setId(Long id) { |
||||
|
this.id = id; |
||||
public void setId(Long id) { |
} |
||||
this.id = id; |
|
||||
} |
public Byte getOrganizationType() { |
||||
|
return organizationType; |
||||
public Byte getOrganizationType() { |
} |
||||
return organizationType; |
|
||||
} |
public void setOrganizationType(Byte organizationType) { |
||||
|
this.organizationType = organizationType; |
||||
public void setOrganizationType(Byte organizationType) { |
} |
||||
this.organizationType = organizationType; |
|
||||
} |
public String getCode() { |
||||
|
return code; |
||||
public String getCode() { |
} |
||||
return code; |
|
||||
} |
public void setCode(String code) { |
||||
|
this.code = code == null ? null : code.trim(); |
||||
public void setCode(String code) { |
} |
||||
this.code = code == null ? null : code.trim(); |
|
||||
} |
public String getName() { |
||||
|
return name; |
||||
public String getName() { |
} |
||||
return name; |
|
||||
} |
public void setName(String name) { |
||||
|
this.name = name == null ? null : name.trim(); |
||||
public void setName(String name) { |
} |
||||
this.name = name == null ? null : name.trim(); |
|
||||
} |
public String getShortName() { |
||||
|
return shortName; |
||||
public String getShortName() { |
} |
||||
return shortName; |
|
||||
} |
public void setShortName(String shortName) { |
||||
|
this.shortName = shortName == null ? null : shortName.trim(); |
||||
public void setShortName(String shortName) { |
} |
||||
this.shortName = shortName == null ? null : shortName.trim(); |
|
||||
} |
public String getIntroduce() { |
||||
|
return introduce; |
||||
public String getIntroduce() { |
} |
||||
return introduce; |
|
||||
} |
public void setIntroduce(String introduce) { |
||||
|
this.introduce = introduce == null ? null : introduce.trim(); |
||||
public void setIntroduce(String introduce) { |
} |
||||
this.introduce = introduce == null ? null : introduce.trim(); |
|
||||
} |
public Byte getLevel() { |
||||
|
return level; |
||||
public Byte getLevel() { |
} |
||||
return level; |
|
||||
} |
public void setLevel(Byte level) { |
||||
|
this.level = level; |
||||
public void setLevel(Byte level) { |
} |
||||
this.level = level; |
|
||||
} |
public Long getOperator() { |
||||
|
return operator; |
||||
public Long getParentId() { |
} |
||||
return parentId; |
|
||||
} |
public void setOperator(Long operator) { |
||||
|
this.operator = operator; |
||||
public void setParentId(Long parentId) { |
} |
||||
this.parentId = parentId; |
|
||||
} |
public Date getCreatedAt() { |
||||
|
return createdAt; |
||||
public Long getOperator() { |
} |
||||
return operator; |
|
||||
} |
public void setCreatedAt(Date createdAt) { |
||||
|
this.createdAt = createdAt; |
||||
public void setOperator(Long operator) { |
} |
||||
this.operator = operator; |
|
||||
} |
public Date getUpdatedAt() { |
||||
|
return updatedAt; |
||||
public Date getCreatedAt() { |
} |
||||
return createdAt; |
|
||||
} |
public void setUpdatedAt(Date updatedAt) { |
||||
|
this.updatedAt = updatedAt; |
||||
public void setCreatedAt(Date createdAt) { |
} |
||||
this.createdAt = createdAt; |
|
||||
} |
public Byte getRecStatus() { |
||||
|
return recStatus; |
||||
public Date getUpdatedAt() { |
} |
||||
return updatedAt; |
|
||||
} |
public void setRecStatus(Byte recStatus) { |
||||
|
this.recStatus = recStatus; |
||||
public void setUpdatedAt(Date updatedAt) { |
} |
||||
this.updatedAt = updatedAt; |
|
||||
} |
@Override |
||||
|
public String toString() { |
||||
public Byte getRecStatus() { |
StringBuilder sb = new StringBuilder(); |
||||
return recStatus; |
sb.append(getClass().getSimpleName()); |
||||
} |
sb.append(" ["); |
||||
|
sb.append("Hash = ").append(hashCode()); |
||||
public void setRecStatus(Byte recStatus) { |
sb.append(", id=").append(id); |
||||
this.recStatus = recStatus; |
sb.append(", organizationType=").append(organizationType); |
||||
} |
sb.append(", code=").append(code); |
||||
|
sb.append(", name=").append(name); |
||||
@Override |
sb.append(", shortName=").append(shortName); |
||||
public String toString() { |
sb.append(", introduce=").append(introduce); |
||||
StringBuilder sb = new StringBuilder(); |
sb.append(", level=").append(level); |
||||
sb.append(getClass().getSimpleName()); |
sb.append(", operator=").append(operator); |
||||
sb.append(" ["); |
sb.append(", createdAt=").append(createdAt); |
||||
sb.append("Hash = ").append(hashCode()); |
sb.append(", updatedAt=").append(updatedAt); |
||||
sb.append(", id=").append(id); |
sb.append(", recStatus=").append(recStatus); |
||||
sb.append(", organizationType=").append(organizationType); |
sb.append("]"); |
||||
sb.append(", code=").append(code); |
return sb.toString(); |
||||
sb.append(", name=").append(name); |
} |
||||
sb.append(", shortName=").append(shortName); |
|
||||
sb.append(", introduce=").append(introduce); |
|
||||
sb.append(", level=").append(level); |
|
||||
sb.append(", parentId=").append(parentId); |
|
||||
sb.append(", operator=").append(operator); |
|
||||
sb.append(", createdAt=").append(createdAt); |
|
||||
sb.append(", updatedAt=").append(updatedAt); |
|
||||
sb.append(", recStatus=").append(recStatus); |
|
||||
sb.append("]"); |
|
||||
return sb.toString(); |
|
||||
} |
|
||||
} |
} |
File diff suppressed because it is too large
@ -1,30 +1,30 @@ |
|||||
package com.ccsens.carbasics.persist.mapper; |
package com.ccsens.carbasics.persist.mapper; |
||||
|
|
||||
import com.ccsens.carbasics.bean.po.Organization; |
import com.ccsens.carbasics.bean.po.Organization; |
||||
import com.ccsens.carbasics.bean.po.OrganizationExample; |
import com.ccsens.carbasics.bean.po.OrganizationExample; |
||||
import java.util.List; |
import java.util.List; |
||||
import org.apache.ibatis.annotations.Param; |
import org.apache.ibatis.annotations.Param; |
||||
|
|
||||
public interface OrganizationMapper { |
public interface OrganizationMapper { |
||||
long countByExample(OrganizationExample example); |
long countByExample(OrganizationExample example); |
||||
|
|
||||
int deleteByExample(OrganizationExample example); |
int deleteByExample(OrganizationExample example); |
||||
|
|
||||
int deleteByPrimaryKey(Long id); |
int deleteByPrimaryKey(Long id); |
||||
|
|
||||
int insert(Organization record); |
int insert(Organization record); |
||||
|
|
||||
int insertSelective(Organization record); |
int insertSelective(Organization record); |
||||
|
|
||||
List<Organization> selectByExample(OrganizationExample example); |
List<Organization> selectByExample(OrganizationExample example); |
||||
|
|
||||
Organization selectByPrimaryKey(Long id); |
Organization selectByPrimaryKey(Long id); |
||||
|
|
||||
int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example); |
int updateByExampleSelective(@Param("record") Organization record, @Param("example") OrganizationExample example); |
||||
|
|
||||
int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example); |
int updateByExample(@Param("record") Organization record, @Param("example") OrganizationExample example); |
||||
|
|
||||
int updateByPrimaryKeySelective(Organization record); |
int updateByPrimaryKeySelective(Organization record); |
||||
|
|
||||
int updateByPrimaryKey(Organization record); |
int updateByPrimaryKey(Organization record); |
||||
} |
} |
@ -1,323 +1,306 @@ |
|||||
<?xml version="1.0" encoding="UTF-8"?> |
<?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"> |
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
||||
<mapper namespace="com.ccsens.carbasics.persist.mapper.OrganizationMapper"> |
<mapper namespace="com.ccsens.carbasics.persist.mapper.OrganizationMapper"> |
||||
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.Organization"> |
<resultMap id="BaseResultMap" type="com.ccsens.carbasics.bean.po.Organization"> |
||||
<id column="id" jdbcType="BIGINT" property="id" /> |
<id column="id" jdbcType="BIGINT" property="id" /> |
||||
<result column="organization_type" jdbcType="TINYINT" property="organizationType" /> |
<result column="organization_type" jdbcType="TINYINT" property="organizationType" /> |
||||
<result column="code" jdbcType="VARCHAR" property="code" /> |
<result column="code" jdbcType="VARCHAR" property="code" /> |
||||
<result column="name" jdbcType="VARCHAR" property="name" /> |
<result column="name" jdbcType="VARCHAR" property="name" /> |
||||
<result column="short_name" jdbcType="VARCHAR" property="shortName" /> |
<result column="short_name" jdbcType="VARCHAR" property="shortName" /> |
||||
<result column="introduce" jdbcType="VARCHAR" property="introduce" /> |
<result column="introduce" jdbcType="VARCHAR" property="introduce" /> |
||||
<result column="level" jdbcType="TINYINT" property="level" /> |
<result column="level" jdbcType="TINYINT" property="level" /> |
||||
<result column="parent_id" jdbcType="BIGINT" property="parentId" /> |
<result column="operator" jdbcType="BIGINT" property="operator" /> |
||||
<result column="operator" jdbcType="BIGINT" property="operator" /> |
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
||||
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
||||
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
||||
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
</resultMap> |
||||
</resultMap> |
<sql id="Example_Where_Clause"> |
||||
<sql id="Example_Where_Clause"> |
<where> |
||||
<where> |
<foreach collection="oredCriteria" item="criteria" separator="or"> |
||||
<foreach collection="oredCriteria" item="criteria" separator="or"> |
<if test="criteria.valid"> |
||||
<if test="criteria.valid"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<choose> |
||||
<choose> |
<when test="criterion.noValue"> |
||||
<when test="criterion.noValue"> |
and ${criterion.condition} |
||||
and ${criterion.condition} |
</when> |
||||
</when> |
<when test="criterion.singleValue"> |
||||
<when test="criterion.singleValue"> |
and ${criterion.condition} #{criterion.value} |
||||
and ${criterion.condition} #{criterion.value} |
</when> |
||||
</when> |
<when test="criterion.betweenValue"> |
||||
<when test="criterion.betweenValue"> |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
</when> |
||||
</when> |
<when test="criterion.listValue"> |
||||
<when test="criterion.listValue"> |
and ${criterion.condition} |
||||
and ${criterion.condition} |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
#{listItem} |
||||
#{listItem} |
</foreach> |
||||
</foreach> |
</when> |
||||
</when> |
</choose> |
||||
</choose> |
</foreach> |
||||
</foreach> |
</trim> |
||||
</trim> |
</if> |
||||
</if> |
</foreach> |
||||
</foreach> |
</where> |
||||
</where> |
</sql> |
||||
</sql> |
<sql id="Update_By_Example_Where_Clause"> |
||||
<sql id="Update_By_Example_Where_Clause"> |
<where> |
||||
<where> |
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
||||
<foreach collection="example.oredCriteria" item="criteria" separator="or"> |
<if test="criteria.valid"> |
||||
<if test="criteria.valid"> |
<trim prefix="(" prefixOverrides="and" suffix=")"> |
||||
<trim prefix="(" prefixOverrides="and" suffix=")"> |
<foreach collection="criteria.criteria" item="criterion"> |
||||
<foreach collection="criteria.criteria" item="criterion"> |
<choose> |
||||
<choose> |
<when test="criterion.noValue"> |
||||
<when test="criterion.noValue"> |
and ${criterion.condition} |
||||
and ${criterion.condition} |
</when> |
||||
</when> |
<when test="criterion.singleValue"> |
||||
<when test="criterion.singleValue"> |
and ${criterion.condition} #{criterion.value} |
||||
and ${criterion.condition} #{criterion.value} |
</when> |
||||
</when> |
<when test="criterion.betweenValue"> |
||||
<when test="criterion.betweenValue"> |
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
||||
and ${criterion.condition} #{criterion.value} and #{criterion.secondValue} |
</when> |
||||
</when> |
<when test="criterion.listValue"> |
||||
<when test="criterion.listValue"> |
and ${criterion.condition} |
||||
and ${criterion.condition} |
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
||||
<foreach close=")" collection="criterion.value" item="listItem" open="(" separator=","> |
#{listItem} |
||||
#{listItem} |
</foreach> |
||||
</foreach> |
</when> |
||||
</when> |
</choose> |
||||
</choose> |
</foreach> |
||||
</foreach> |
</trim> |
||||
</trim> |
</if> |
||||
</if> |
</foreach> |
||||
</foreach> |
</where> |
||||
</where> |
</sql> |
||||
</sql> |
<sql id="Base_Column_List"> |
||||
<sql id="Base_Column_List"> |
id, organization_type, code, name, short_name, introduce, level, operator, created_at, |
||||
id, organization_type, code, name, short_name, introduce, level, parent_id, operator, |
updated_at, rec_status |
||||
created_at, updated_at, rec_status |
</sql> |
||||
</sql> |
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.OrganizationExample" resultMap="BaseResultMap"> |
||||
<select id="selectByExample" parameterType="com.ccsens.carbasics.bean.po.OrganizationExample" resultMap="BaseResultMap"> |
select |
||||
select |
<if test="distinct"> |
||||
<if test="distinct"> |
distinct |
||||
distinct |
</if> |
||||
</if> |
<include refid="Base_Column_List" /> |
||||
<include refid="Base_Column_List" /> |
from t_organization |
||||
from t_organization |
<if test="_parameter != null"> |
||||
<if test="_parameter != null"> |
<include refid="Example_Where_Clause" /> |
||||
<include refid="Example_Where_Clause" /> |
</if> |
||||
</if> |
<if test="orderByClause != null"> |
||||
<if test="orderByClause != null"> |
order by ${orderByClause} |
||||
order by ${orderByClause} |
</if> |
||||
</if> |
</select> |
||||
</select> |
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> |
select |
||||
select |
<include refid="Base_Column_List" /> |
||||
<include refid="Base_Column_List" /> |
from t_organization |
||||
from t_organization |
where id = #{id,jdbcType=BIGINT} |
||||
where id = #{id,jdbcType=BIGINT} |
</select> |
||||
</select> |
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
||||
<delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> |
delete from t_organization |
||||
delete from t_organization |
where id = #{id,jdbcType=BIGINT} |
||||
where id = #{id,jdbcType=BIGINT} |
</delete> |
||||
</delete> |
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.OrganizationExample"> |
||||
<delete id="deleteByExample" parameterType="com.ccsens.carbasics.bean.po.OrganizationExample"> |
delete from t_organization |
||||
delete from t_organization |
<if test="_parameter != null"> |
||||
<if test="_parameter != null"> |
<include refid="Example_Where_Clause" /> |
||||
<include refid="Example_Where_Clause" /> |
</if> |
||||
</if> |
</delete> |
||||
</delete> |
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
||||
<insert id="insert" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
insert into t_organization (id, organization_type, code, |
||||
insert into t_organization (id, organization_type, code, |
name, short_name, introduce, |
||||
name, short_name, introduce, |
level, operator, created_at, |
||||
level, parent_id, operator, |
updated_at, rec_status) |
||||
created_at, updated_at, rec_status |
values (#{id,jdbcType=BIGINT}, #{organizationType,jdbcType=TINYINT}, #{code,jdbcType=VARCHAR}, |
||||
) |
#{name,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, |
||||
values (#{id,jdbcType=BIGINT}, #{organizationType,jdbcType=TINYINT}, #{code,jdbcType=VARCHAR}, |
#{level,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
||||
#{name,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, |
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
||||
#{level,jdbcType=TINYINT}, #{parentId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
</insert> |
||||
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
||||
) |
insert into t_organization |
||||
</insert> |
<trim prefix="(" suffix=")" suffixOverrides=","> |
||||
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
<if test="id != null"> |
||||
insert into t_organization |
id, |
||||
<trim prefix="(" suffix=")" suffixOverrides=","> |
</if> |
||||
<if test="id != null"> |
<if test="organizationType != null"> |
||||
id, |
organization_type, |
||||
</if> |
</if> |
||||
<if test="organizationType != null"> |
<if test="code != null"> |
||||
organization_type, |
code, |
||||
</if> |
</if> |
||||
<if test="code != null"> |
<if test="name != null"> |
||||
code, |
name, |
||||
</if> |
</if> |
||||
<if test="name != null"> |
<if test="shortName != null"> |
||||
name, |
short_name, |
||||
</if> |
</if> |
||||
<if test="shortName != null"> |
<if test="introduce != null"> |
||||
short_name, |
introduce, |
||||
</if> |
</if> |
||||
<if test="introduce != null"> |
<if test="level != null"> |
||||
introduce, |
level, |
||||
</if> |
</if> |
||||
<if test="level != null"> |
<if test="operator != null"> |
||||
level, |
operator, |
||||
</if> |
</if> |
||||
<if test="parentId != null"> |
<if test="createdAt != null"> |
||||
parent_id, |
created_at, |
||||
</if> |
</if> |
||||
<if test="operator != null"> |
<if test="updatedAt != null"> |
||||
operator, |
updated_at, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
<if test="recStatus != null"> |
||||
created_at, |
rec_status, |
||||
</if> |
</if> |
||||
<if test="updatedAt != null"> |
</trim> |
||||
updated_at, |
<trim prefix="values (" suffix=")" suffixOverrides=","> |
||||
</if> |
<if test="id != null"> |
||||
<if test="recStatus != null"> |
#{id,jdbcType=BIGINT}, |
||||
rec_status, |
</if> |
||||
</if> |
<if test="organizationType != null"> |
||||
</trim> |
#{organizationType,jdbcType=TINYINT}, |
||||
<trim prefix="values (" suffix=")" suffixOverrides=","> |
</if> |
||||
<if test="id != null"> |
<if test="code != null"> |
||||
#{id,jdbcType=BIGINT}, |
#{code,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="organizationType != null"> |
<if test="name != null"> |
||||
#{organizationType,jdbcType=TINYINT}, |
#{name,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="code != null"> |
<if test="shortName != null"> |
||||
#{code,jdbcType=VARCHAR}, |
#{shortName,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="name != null"> |
<if test="introduce != null"> |
||||
#{name,jdbcType=VARCHAR}, |
#{introduce,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="shortName != null"> |
<if test="level != null"> |
||||
#{shortName,jdbcType=VARCHAR}, |
#{level,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="introduce != null"> |
<if test="operator != null"> |
||||
#{introduce,jdbcType=VARCHAR}, |
#{operator,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="level != null"> |
<if test="createdAt != null"> |
||||
#{level,jdbcType=TINYINT}, |
#{createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="parentId != null"> |
<if test="updatedAt != null"> |
||||
#{parentId,jdbcType=BIGINT}, |
#{updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="operator != null"> |
<if test="recStatus != null"> |
||||
#{operator,jdbcType=BIGINT}, |
#{recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="createdAt != null"> |
</trim> |
||||
#{createdAt,jdbcType=TIMESTAMP}, |
</insert> |
||||
</if> |
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.OrganizationExample" resultType="java.lang.Long"> |
||||
<if test="updatedAt != null"> |
select count(*) from t_organization |
||||
#{updatedAt,jdbcType=TIMESTAMP}, |
<if test="_parameter != null"> |
||||
</if> |
<include refid="Example_Where_Clause" /> |
||||
<if test="recStatus != null"> |
</if> |
||||
#{recStatus,jdbcType=TINYINT}, |
</select> |
||||
</if> |
<update id="updateByExampleSelective" parameterType="map"> |
||||
</trim> |
update t_organization |
||||
</insert> |
<set> |
||||
<select id="countByExample" parameterType="com.ccsens.carbasics.bean.po.OrganizationExample" resultType="java.lang.Long"> |
<if test="record.id != null"> |
||||
select count(*) from t_organization |
id = #{record.id,jdbcType=BIGINT}, |
||||
<if test="_parameter != null"> |
</if> |
||||
<include refid="Example_Where_Clause" /> |
<if test="record.organizationType != null"> |
||||
</if> |
organization_type = #{record.organizationType,jdbcType=TINYINT}, |
||||
</select> |
</if> |
||||
<update id="updateByExampleSelective" parameterType="map"> |
<if test="record.code != null"> |
||||
update t_organization |
code = #{record.code,jdbcType=VARCHAR}, |
||||
<set> |
</if> |
||||
<if test="record.id != null"> |
<if test="record.name != null"> |
||||
id = #{record.id,jdbcType=BIGINT}, |
name = #{record.name,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="record.organizationType != null"> |
<if test="record.shortName != null"> |
||||
organization_type = #{record.organizationType,jdbcType=TINYINT}, |
short_name = #{record.shortName,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="record.code != null"> |
<if test="record.introduce != null"> |
||||
code = #{record.code,jdbcType=VARCHAR}, |
introduce = #{record.introduce,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
<if test="record.name != null"> |
<if test="record.level != null"> |
||||
name = #{record.name,jdbcType=VARCHAR}, |
level = #{record.level,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="record.shortName != null"> |
<if test="record.operator != null"> |
||||
short_name = #{record.shortName,jdbcType=VARCHAR}, |
operator = #{record.operator,jdbcType=BIGINT}, |
||||
</if> |
</if> |
||||
<if test="record.introduce != null"> |
<if test="record.createdAt != null"> |
||||
introduce = #{record.introduce,jdbcType=VARCHAR}, |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="record.level != null"> |
<if test="record.updatedAt != null"> |
||||
level = #{record.level,jdbcType=TINYINT}, |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
</if> |
</if> |
||||
<if test="record.parentId != null"> |
<if test="record.recStatus != null"> |
||||
parent_id = #{record.parentId,jdbcType=BIGINT}, |
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
||||
</if> |
</if> |
||||
<if test="record.operator != null"> |
</set> |
||||
operator = #{record.operator,jdbcType=BIGINT}, |
<if test="_parameter != null"> |
||||
</if> |
<include refid="Update_By_Example_Where_Clause" /> |
||||
<if test="record.createdAt != null"> |
</if> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
</update> |
||||
</if> |
<update id="updateByExample" parameterType="map"> |
||||
<if test="record.updatedAt != null"> |
update t_organization |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
set id = #{record.id,jdbcType=BIGINT}, |
||||
</if> |
organization_type = #{record.organizationType,jdbcType=TINYINT}, |
||||
<if test="record.recStatus != null"> |
code = #{record.code,jdbcType=VARCHAR}, |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT}, |
name = #{record.name,jdbcType=VARCHAR}, |
||||
</if> |
short_name = #{record.shortName,jdbcType=VARCHAR}, |
||||
</set> |
introduce = #{record.introduce,jdbcType=VARCHAR}, |
||||
<if test="_parameter != null"> |
level = #{record.level,jdbcType=TINYINT}, |
||||
<include refid="Update_By_Example_Where_Clause" /> |
operator = #{record.operator,jdbcType=BIGINT}, |
||||
</if> |
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
||||
</update> |
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
||||
<update id="updateByExample" parameterType="map"> |
rec_status = #{record.recStatus,jdbcType=TINYINT} |
||||
update t_organization |
<if test="_parameter != null"> |
||||
set id = #{record.id,jdbcType=BIGINT}, |
<include refid="Update_By_Example_Where_Clause" /> |
||||
organization_type = #{record.organizationType,jdbcType=TINYINT}, |
</if> |
||||
code = #{record.code,jdbcType=VARCHAR}, |
</update> |
||||
name = #{record.name,jdbcType=VARCHAR}, |
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
||||
short_name = #{record.shortName,jdbcType=VARCHAR}, |
update t_organization |
||||
introduce = #{record.introduce,jdbcType=VARCHAR}, |
<set> |
||||
level = #{record.level,jdbcType=TINYINT}, |
<if test="organizationType != null"> |
||||
parent_id = #{record.parentId,jdbcType=BIGINT}, |
organization_type = #{organizationType,jdbcType=TINYINT}, |
||||
operator = #{record.operator,jdbcType=BIGINT}, |
</if> |
||||
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
<if test="code != null"> |
||||
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
code = #{code,jdbcType=VARCHAR}, |
||||
rec_status = #{record.recStatus,jdbcType=TINYINT} |
</if> |
||||
<if test="_parameter != null"> |
<if test="name != null"> |
||||
<include refid="Update_By_Example_Where_Clause" /> |
name = #{name,jdbcType=VARCHAR}, |
||||
</if> |
</if> |
||||
</update> |
<if test="shortName != null"> |
||||
<update id="updateByPrimaryKeySelective" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
short_name = #{shortName,jdbcType=VARCHAR}, |
||||
update t_organization |
</if> |
||||
<set> |
<if test="introduce != null"> |
||||
<if test="organizationType != null"> |
introduce = #{introduce,jdbcType=VARCHAR}, |
||||
organization_type = #{organizationType,jdbcType=TINYINT}, |
</if> |
||||
</if> |
<if test="level != null"> |
||||
<if test="code != null"> |
level = #{level,jdbcType=TINYINT}, |
||||
code = #{code,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="operator != null"> |
||||
<if test="name != null"> |
operator = #{operator,jdbcType=BIGINT}, |
||||
name = #{name,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="createdAt != null"> |
||||
<if test="shortName != null"> |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
short_name = #{shortName,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="updatedAt != null"> |
||||
<if test="introduce != null"> |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
introduce = #{introduce,jdbcType=VARCHAR}, |
</if> |
||||
</if> |
<if test="recStatus != null"> |
||||
<if test="level != null"> |
rec_status = #{recStatus,jdbcType=TINYINT}, |
||||
level = #{level,jdbcType=TINYINT}, |
</if> |
||||
</if> |
</set> |
||||
<if test="parentId != null"> |
where id = #{id,jdbcType=BIGINT} |
||||
parent_id = #{parentId,jdbcType=BIGINT}, |
</update> |
||||
</if> |
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
||||
<if test="operator != null"> |
update t_organization |
||||
operator = #{operator,jdbcType=BIGINT}, |
set organization_type = #{organizationType,jdbcType=TINYINT}, |
||||
</if> |
code = #{code,jdbcType=VARCHAR}, |
||||
<if test="createdAt != null"> |
name = #{name,jdbcType=VARCHAR}, |
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
short_name = #{shortName,jdbcType=VARCHAR}, |
||||
</if> |
introduce = #{introduce,jdbcType=VARCHAR}, |
||||
<if test="updatedAt != null"> |
level = #{level,jdbcType=TINYINT}, |
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
operator = #{operator,jdbcType=BIGINT}, |
||||
</if> |
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
||||
<if test="recStatus != null"> |
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
||||
rec_status = #{recStatus,jdbcType=TINYINT}, |
rec_status = #{recStatus,jdbcType=TINYINT} |
||||
</if> |
where id = #{id,jdbcType=BIGINT} |
||||
</set> |
</update> |
||||
where id = #{id,jdbcType=BIGINT} |
|
||||
</update> |
|
||||
<update id="updateByPrimaryKey" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
|
||||
update t_organization |
|
||||
set organization_type = #{organizationType,jdbcType=TINYINT}, |
|
||||
code = #{code,jdbcType=VARCHAR}, |
|
||||
name = #{name,jdbcType=VARCHAR}, |
|
||||
short_name = #{shortName,jdbcType=VARCHAR}, |
|
||||
introduce = #{introduce,jdbcType=VARCHAR}, |
|
||||
level = #{level,jdbcType=TINYINT}, |
|
||||
parent_id = #{parentId,jdbcType=BIGINT}, |
|
||||
operator = #{operator,jdbcType=BIGINT}, |
|
||||
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
||||
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
||||
rec_status = #{recStatus,jdbcType=TINYINT} |
|
||||
where id = #{id,jdbcType=BIGINT} |
|
||||
</update> |
|
||||
</mapper> |
</mapper> |
Loading…
Reference in new issue