|
|
@ -7,6 +7,7 @@ |
|
|
|
<result column="name" jdbcType="VARCHAR" property="name" /> |
|
|
|
<result column="independent" jdbcType="TINYINT" property="independent" /> |
|
|
|
<result column="quarantine" jdbcType="TINYINT" property="quarantine" /> |
|
|
|
<result column="scene" jdbcType="TINYINT" property="scene" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
@ -70,7 +71,7 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, code, name, independent, quarantine, created_at, updated_at, rec_status |
|
|
|
id, code, name, independent, quarantine, scene, created_at, updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.health.bean.po.HealthTypeExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -104,11 +105,13 @@ |
|
|
|
</delete> |
|
|
|
<insert id="insert" parameterType="com.ccsens.health.bean.po.HealthType"> |
|
|
|
insert into t_health_type (id, code, name, |
|
|
|
independent, quarantine, created_at, |
|
|
|
updated_at, rec_status) |
|
|
|
independent, quarantine, scene, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{code,jdbcType=VARCHAR}, #{name,jdbcType=VARCHAR}, |
|
|
|
#{independent,jdbcType=TINYINT}, #{quarantine,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
#{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT}) |
|
|
|
#{independent,jdbcType=TINYINT}, #{quarantine,jdbcType=TINYINT}, #{scene,jdbcType=TINYINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.health.bean.po.HealthType"> |
|
|
|
insert into t_health_type |
|
|
@ -128,6 +131,9 @@ |
|
|
|
<if test="quarantine != null"> |
|
|
|
quarantine, |
|
|
|
</if> |
|
|
|
<if test="scene != null"> |
|
|
|
scene, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at, |
|
|
|
</if> |
|
|
@ -154,6 +160,9 @@ |
|
|
|
<if test="quarantine != null"> |
|
|
|
#{quarantine,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="scene != null"> |
|
|
|
#{scene,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -189,6 +198,9 @@ |
|
|
|
<if test="record.quarantine != null"> |
|
|
|
quarantine = #{record.quarantine,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.scene != null"> |
|
|
|
scene = #{record.scene,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.createdAt != null"> |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -210,6 +222,7 @@ |
|
|
|
name = #{record.name,jdbcType=VARCHAR}, |
|
|
|
independent = #{record.independent,jdbcType=TINYINT}, |
|
|
|
quarantine = #{record.quarantine,jdbcType=TINYINT}, |
|
|
|
scene = #{record.scene,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
@ -232,6 +245,9 @@ |
|
|
|
<if test="quarantine != null"> |
|
|
|
quarantine = #{quarantine,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="scene != null"> |
|
|
|
scene = #{scene,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -250,6 +266,7 @@ |
|
|
|
name = #{name,jdbcType=VARCHAR}, |
|
|
|
independent = #{independent,jdbcType=TINYINT}, |
|
|
|
quarantine = #{quarantine,jdbcType=TINYINT}, |
|
|
|
scene = #{scene,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|