|
@ -10,6 +10,9 @@ |
|
|
<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="level_id" jdbcType="BIGINT" property="levelId" /> |
|
|
<result column="level_id" jdbcType="BIGINT" property="levelId" /> |
|
|
|
|
|
<result column="province_id" jdbcType="BIGINT" property="provinceId" /> |
|
|
|
|
|
<result column="city_id" jdbcType="BIGINT" property="cityId" /> |
|
|
|
|
|
<result column="county_id" jdbcType="BIGINT" property="countyId" /> |
|
|
<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 +77,8 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, organization_type, code, name, short_name, introduce, level, level_id, operator, |
|
|
id, organization_type, code, name, short_name, introduce, level, level_id, province_id, |
|
|
created_at, updated_at, rec_status |
|
|
city_id, county_id, operator, 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 |
|
@ -110,12 +113,14 @@ |
|
|
<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, level_id, operator, |
|
|
level, level_id, province_id, |
|
|
|
|
|
city_id, county_id, operator, |
|
|
created_at, updated_at, rec_status |
|
|
created_at, 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}, #{levelId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
|
|
#{level,jdbcType=TINYINT}, #{levelId,jdbcType=BIGINT}, #{provinceId,jdbcType=BIGINT}, |
|
|
|
|
|
#{cityId,jdbcType=BIGINT}, #{countyId,jdbcType=BIGINT}, #{operator,jdbcType=BIGINT}, |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
) |
|
|
) |
|
|
</insert> |
|
|
</insert> |
|
@ -146,6 +151,15 @@ |
|
|
<if test="levelId != null"> |
|
|
<if test="levelId != null"> |
|
|
level_id, |
|
|
level_id, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="provinceId != null"> |
|
|
|
|
|
province_id, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="cityId != null"> |
|
|
|
|
|
city_id, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="countyId != null"> |
|
|
|
|
|
county_id, |
|
|
|
|
|
</if> |
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
operator, |
|
|
operator, |
|
|
</if> |
|
|
</if> |
|
@ -184,6 +198,15 @@ |
|
|
<if test="levelId != null"> |
|
|
<if test="levelId != null"> |
|
|
#{levelId,jdbcType=BIGINT}, |
|
|
#{levelId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="provinceId != null"> |
|
|
|
|
|
#{provinceId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="cityId != null"> |
|
|
|
|
|
#{cityId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="countyId != null"> |
|
|
|
|
|
#{countyId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
#{operator,jdbcType=BIGINT}, |
|
|
#{operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -231,6 +254,15 @@ |
|
|
<if test="record.levelId != null"> |
|
|
<if test="record.levelId != null"> |
|
|
level_id = #{record.levelId,jdbcType=BIGINT}, |
|
|
level_id = #{record.levelId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.provinceId != null"> |
|
|
|
|
|
province_id = #{record.provinceId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.cityId != null"> |
|
|
|
|
|
city_id = #{record.cityId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="record.countyId != null"> |
|
|
|
|
|
county_id = #{record.countyId,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> |
|
@ -258,6 +290,9 @@ |
|
|
introduce = #{record.introduce,jdbcType=VARCHAR}, |
|
|
introduce = #{record.introduce,jdbcType=VARCHAR}, |
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
level = #{record.level,jdbcType=TINYINT}, |
|
|
level_id = #{record.levelId,jdbcType=BIGINT}, |
|
|
level_id = #{record.levelId,jdbcType=BIGINT}, |
|
|
|
|
|
province_id = #{record.provinceId,jdbcType=BIGINT}, |
|
|
|
|
|
city_id = #{record.cityId,jdbcType=BIGINT}, |
|
|
|
|
|
county_id = #{record.countyId,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}, |
|
@ -290,6 +325,15 @@ |
|
|
<if test="levelId != null"> |
|
|
<if test="levelId != null"> |
|
|
level_id = #{levelId,jdbcType=BIGINT}, |
|
|
level_id = #{levelId,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="provinceId != null"> |
|
|
|
|
|
province_id = #{provinceId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="cityId != null"> |
|
|
|
|
|
city_id = #{cityId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
|
|
|
<if test="countyId != null"> |
|
|
|
|
|
county_id = #{countyId,jdbcType=BIGINT}, |
|
|
|
|
|
</if> |
|
|
<if test="operator != null"> |
|
|
<if test="operator != null"> |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
operator = #{operator,jdbcType=BIGINT}, |
|
|
</if> |
|
|
</if> |
|
@ -314,6 +358,9 @@ |
|
|
introduce = #{introduce,jdbcType=VARCHAR}, |
|
|
introduce = #{introduce,jdbcType=VARCHAR}, |
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
level = #{level,jdbcType=TINYINT}, |
|
|
level_id = #{levelId,jdbcType=BIGINT}, |
|
|
level_id = #{levelId,jdbcType=BIGINT}, |
|
|
|
|
|
province_id = #{provinceId,jdbcType=BIGINT}, |
|
|
|
|
|
city_id = #{cityId,jdbcType=BIGINT}, |
|
|
|
|
|
county_id = #{countyId,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}, |
|
|