|
|
@ -11,6 +11,7 @@ |
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|
|
<result column="update_by" jdbcType="VARCHAR" property="updateBy" /> |
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
<result column="update_time" jdbcType="TIMESTAMP" property="updateTime" /> |
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
<result column="del_flag" jdbcType="TINYINT" property="delFlag" /> |
|
|
|
|
|
<result column="status" jdbcType="VARCHAR" property="status" /> |
|
|
</resultMap> |
|
|
</resultMap> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<sql id="Example_Where_Clause"> |
|
|
<where> |
|
|
<where> |
|
|
@ -71,7 +72,8 @@ |
|
|
</where> |
|
|
</where> |
|
|
</sql> |
|
|
</sql> |
|
|
<sql id="Base_Column_List"> |
|
|
<sql id="Base_Column_List"> |
|
|
id, version, code, sort, create_by, create_time, update_by, update_time, del_flag |
|
|
id, version, code, sort, create_by, create_time, update_by, update_time, del_flag, |
|
|
|
|
|
status |
|
|
</sql> |
|
|
</sql> |
|
|
<select id="selectByExample" parameterType="com.ccsens.system.domain.po.HmsVersionExample" resultMap="BaseResultMap"> |
|
|
<select id="selectByExample" parameterType="com.ccsens.system.domain.po.HmsVersionExample" resultMap="BaseResultMap"> |
|
|
select |
|
|
select |
|
|
@ -106,12 +108,12 @@ |
|
|
<insert id="insert" parameterType="com.ccsens.system.domain.po.HmsVersion"> |
|
|
<insert id="insert" parameterType="com.ccsens.system.domain.po.HmsVersion"> |
|
|
insert into hms_version (id, version, code, |
|
|
insert into hms_version (id, version, code, |
|
|
sort, create_by, create_time, |
|
|
sort, create_by, create_time, |
|
|
update_by, update_time, del_flag |
|
|
update_by, update_time, del_flag, |
|
|
) |
|
|
status) |
|
|
values (#{id,jdbcType=BIGINT}, #{version,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, |
|
|
values (#{id,jdbcType=BIGINT}, #{version,jdbcType=VARCHAR}, #{code,jdbcType=VARCHAR}, |
|
|
#{sort,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{sort,jdbcType=INTEGER}, #{createBy,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, |
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT} |
|
|
#{updateBy,jdbcType=VARCHAR}, #{updateTime,jdbcType=TIMESTAMP}, #{delFlag,jdbcType=TINYINT}, |
|
|
) |
|
|
#{status,jdbcType=VARCHAR}) |
|
|
</insert> |
|
|
</insert> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.system.domain.po.HmsVersion"> |
|
|
<insert id="insertSelective" parameterType="com.ccsens.system.domain.po.HmsVersion"> |
|
|
insert into hms_version |
|
|
insert into hms_version |
|
|
@ -143,6 +145,9 @@ |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
del_flag, |
|
|
del_flag, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="status != null"> |
|
|
|
|
|
status, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<trim prefix="values (" suffix=")" suffixOverrides=","> |
|
|
<if test="id != null"> |
|
|
<if test="id != null"> |
|
|
@ -172,6 +177,9 @@ |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
#{delFlag,jdbcType=TINYINT}, |
|
|
#{delFlag,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="status != null"> |
|
|
|
|
|
#{status,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</trim> |
|
|
</trim> |
|
|
</insert> |
|
|
</insert> |
|
|
<select id="countByExample" parameterType="com.ccsens.system.domain.po.HmsVersionExample" resultType="java.lang.Long"> |
|
|
<select id="countByExample" parameterType="com.ccsens.system.domain.po.HmsVersionExample" resultType="java.lang.Long"> |
|
|
@ -210,6 +218,9 @@ |
|
|
<if test="record.delFlag != null"> |
|
|
<if test="record.delFlag != null"> |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="record.status != null"> |
|
|
|
|
|
status = #{record.status,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
@ -225,7 +236,8 @@ |
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
create_time = #{record.createTime,jdbcType=TIMESTAMP}, |
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|
|
update_by = #{record.updateBy,jdbcType=VARCHAR}, |
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
update_time = #{record.updateTime,jdbcType=TIMESTAMP}, |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT} |
|
|
del_flag = #{record.delFlag,jdbcType=TINYINT}, |
|
|
|
|
|
status = #{record.status,jdbcType=VARCHAR} |
|
|
<if test="_parameter != null"> |
|
|
<if test="_parameter != null"> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
</if> |
|
|
</if> |
|
|
@ -257,6 +269,9 @@ |
|
|
<if test="delFlag != null"> |
|
|
<if test="delFlag != null"> |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
</if> |
|
|
</if> |
|
|
|
|
|
<if test="status != null"> |
|
|
|
|
|
status = #{status,jdbcType=VARCHAR}, |
|
|
|
|
|
</if> |
|
|
</set> |
|
|
</set> |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
@ -269,7 +284,8 @@ |
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
create_time = #{createTime,jdbcType=TIMESTAMP}, |
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
update_by = #{updateBy,jdbcType=VARCHAR}, |
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
update_time = #{updateTime,jdbcType=TIMESTAMP}, |
|
|
del_flag = #{delFlag,jdbcType=TINYINT} |
|
|
del_flag = #{delFlag,jdbcType=TINYINT}, |
|
|
|
|
|
status = #{status,jdbcType=VARCHAR} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
</update> |
|
|
</update> |
|
|
</mapper> |
|
|
</mapper> |