|
@ -9,7 +9,6 @@ |
|
|
<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" /> |
|
@ -74,8 +73,8 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, organization_type, code, name, short_name, introduce, level, parent_id, operator, |
|
|
id, organization_type, code, name, short_name, introduce, level, operator, created_at, |
|
|
created_at, updated_at, rec_status |
|
|
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 |
|
@ -110,14 +109,12 @@ |
|
|
<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, parent_id, operator, |
|
|
level, operator, created_at, |
|
|
created_at, updated_at, rec_status |
|
|
updated_at, rec_status) |
|
|
) |
|
|
|
|
|
values (#{id,jdbcType=BIGINT}, #{organizationType,jdbcType=TINYINT}, #{code,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{organizationType,jdbcType=TINYINT}, #{code,jdbcType=VARCHAR}, |
|
|
#{name,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, |
|
|
#{name,jdbcType=VARCHAR}, #{shortName,jdbcType=VARCHAR}, #{introduce,jdbcType=VARCHAR}, |
|
|
#{level,jdbcType=TINYINT}, #{parentId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
|
|
#{level,jdbcType=TINYINT}, #{operator,jdbcType=BIGINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
) |
|
|
|
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.carbasics.bean.po.Organization"> |
|
|
insert into t_organization |
|
|
insert into t_organization |
|
@ -143,9 +140,6 @@ |
|
|
<if test="level != null"> |
|
|
<if test="level != null"> |
|
|
level, |
|
|
level, |
|
|
</if> |
|
|
</if> |
|
|
<if test="parentId != null"> |
|
|
|
|
|
parent_id, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
operator, |
|
|
operator, |
|
|
</if> |
|
|
</if> |
|
@ -181,9 +175,6 @@ |
|
|
<if test="level != null"> |
|
|
<if test="level != null"> |
|
|
#{level,jdbcType=TINYINT}, |
|
|
#{level,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="parentId != null"> |
|
|
|
|
|
#{parentId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
#{operator,jdbcType=BIGINT}, |
|
|
#{operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -228,9 +219,6 @@ |
|
|
<if test="record.level != null"> |
|
|
<if test="record.level != null"> |
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="record.parentId != null"> |
|
|
|
|
|
parent_id = #{record.parentId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.operator != null"> |
|
|
<if test="record.operator != null"> |
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -257,7 +245,6 @@ |
|
|
short_name = #{record.shortName,jdbcType=VARCHAR}, |
|
|
short_name = #{record.shortName,jdbcType=VARCHAR}, |
|
|
introduce = #{record.introduce,jdbcType=VARCHAR}, |
|
|
introduce = #{record.introduce,jdbcType=VARCHAR}, |
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
parent_id = #{record.parentId,jdbcType=BIGINT}, |
|
|
|
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
operator = #{record.operator,jdbcType=BIGINT}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
@ -287,9 +274,6 @@ |
|
|
<if test="level != null"> |
|
|
<if test="level != null"> |
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
<if test="parentId != null"> |
|
|
|
|
|
parent_id = #{parentId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -313,7 +297,6 @@ |
|
|
short_name = #{shortName,jdbcType=VARCHAR}, |
|
|
short_name = #{shortName,jdbcType=VARCHAR}, |
|
|
introduce = #{introduce,jdbcType=VARCHAR}, |
|
|
introduce = #{introduce,jdbcType=VARCHAR}, |
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
parent_id = #{parentId,jdbcType=BIGINT}, |
|
|
|
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|