|
|
|
@ -11,6 +11,7 @@ |
|
|
|
<result column="class_name" jdbcType="VARCHAR" property="className" /> |
|
|
|
<result column="create_time" jdbcType="BIGINT" property="createTime" /> |
|
|
|
<result column="flag" jdbcType="INTEGER" property="flag" /> |
|
|
|
<result column="type" jdbcType="INTEGER" property="type" /> |
|
|
|
</resultMap> |
|
|
|
<resultMap extends="BaseResultMap" id="ResultMapWithBLOBs" type="com.techsor.datacenter.business.model.BasicAssetClassBig"> |
|
|
|
<!-- |
|
|
|
@ -92,7 +93,7 @@ |
|
|
|
WARNING - @mbg.generated |
|
|
|
This element is automatically generated by MyBatis Generator, do not modify. |
|
|
|
--> |
|
|
|
id, company_id, class_name, create_time, flag |
|
|
|
id, company_id, class_name, create_time, flag, `type` |
|
|
|
</sql> |
|
|
|
<sql id="Blob_Column_List"> |
|
|
|
<!-- |
|
|
|
@ -180,11 +181,13 @@ |
|
|
|
SELECT LAST_INSERT_ID() |
|
|
|
</selectKey> |
|
|
|
insert into basic_asset_class_big (company_id, class_name, create_time, |
|
|
|
flag, thumbnail_normal_base64, thumbnail_alarm_base64, |
|
|
|
thumbnail_dis_base64) |
|
|
|
flag, `type`, thumbnail_normal_base64, |
|
|
|
thumbnail_alarm_base64, thumbnail_dis_base64 |
|
|
|
) |
|
|
|
values (#{companyId,jdbcType=BIGINT}, #{className,jdbcType=VARCHAR}, #{createTime,jdbcType=BIGINT}, |
|
|
|
#{flag,jdbcType=INTEGER}, #{thumbnailNormalBase64,jdbcType=LONGVARCHAR}, #{thumbnailAlarmBase64,jdbcType=LONGVARCHAR}, |
|
|
|
#{thumbnailDisBase64,jdbcType=LONGVARCHAR}) |
|
|
|
#{flag,jdbcType=INTEGER}, #{type,jdbcType=INTEGER}, #{thumbnailNormalBase64,jdbcType=LONGVARCHAR}, |
|
|
|
#{thumbnailAlarmBase64,jdbcType=LONGVARCHAR}, #{thumbnailDisBase64,jdbcType=LONGVARCHAR} |
|
|
|
) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.techsor.datacenter.business.model.BasicAssetClassBig"> |
|
|
|
<!-- |
|
|
|
@ -208,6 +211,9 @@ |
|
|
|
<if test="flag != null"> |
|
|
|
flag, |
|
|
|
</if> |
|
|
|
<if test="type != null"> |
|
|
|
`type`, |
|
|
|
</if> |
|
|
|
<if test="thumbnailNormalBase64 != null"> |
|
|
|
thumbnail_normal_base64, |
|
|
|
</if> |
|
|
|
@ -231,6 +237,9 @@ |
|
|
|
<if test="flag != null"> |
|
|
|
#{flag,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="type != null"> |
|
|
|
#{type,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="thumbnailNormalBase64 != null"> |
|
|
|
#{thumbnailNormalBase64,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
@ -274,6 +283,9 @@ |
|
|
|
<if test="record.flag != null"> |
|
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.type != null"> |
|
|
|
`type` = #{record.type,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="record.thumbnailNormalBase64 != null"> |
|
|
|
thumbnail_normal_base64 = #{record.thumbnailNormalBase64,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
@ -299,6 +311,7 @@ |
|
|
|
class_name = #{record.className,jdbcType=VARCHAR}, |
|
|
|
create_time = #{record.createTime,jdbcType=BIGINT}, |
|
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
|
`type` = #{record.type,jdbcType=INTEGER}, |
|
|
|
thumbnail_normal_base64 = #{record.thumbnailNormalBase64,jdbcType=LONGVARCHAR}, |
|
|
|
thumbnail_alarm_base64 = #{record.thumbnailAlarmBase64,jdbcType=LONGVARCHAR}, |
|
|
|
thumbnail_dis_base64 = #{record.thumbnailDisBase64,jdbcType=LONGVARCHAR} |
|
|
|
@ -316,7 +329,8 @@ |
|
|
|
company_id = #{record.companyId,jdbcType=BIGINT}, |
|
|
|
class_name = #{record.className,jdbcType=VARCHAR}, |
|
|
|
create_time = #{record.createTime,jdbcType=BIGINT}, |
|
|
|
flag = #{record.flag,jdbcType=INTEGER} |
|
|
|
flag = #{record.flag,jdbcType=INTEGER}, |
|
|
|
`type` = #{record.type,jdbcType=INTEGER} |
|
|
|
<if test="_parameter != null"> |
|
|
|
<include refid="Update_By_Example_Where_Clause" /> |
|
|
|
</if> |
|
|
|
@ -340,6 +354,9 @@ |
|
|
|
<if test="flag != null"> |
|
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="type != null"> |
|
|
|
`type` = #{type,jdbcType=INTEGER}, |
|
|
|
</if> |
|
|
|
<if test="thumbnailNormalBase64 != null"> |
|
|
|
thumbnail_normal_base64 = #{thumbnailNormalBase64,jdbcType=LONGVARCHAR}, |
|
|
|
</if> |
|
|
|
@ -362,6 +379,7 @@ |
|
|
|
class_name = #{className,jdbcType=VARCHAR}, |
|
|
|
create_time = #{createTime,jdbcType=BIGINT}, |
|
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
|
`type` = #{type,jdbcType=INTEGER}, |
|
|
|
thumbnail_normal_base64 = #{thumbnailNormalBase64,jdbcType=LONGVARCHAR}, |
|
|
|
thumbnail_alarm_base64 = #{thumbnailAlarmBase64,jdbcType=LONGVARCHAR}, |
|
|
|
thumbnail_dis_base64 = #{thumbnailDisBase64,jdbcType=LONGVARCHAR} |
|
|
|
@ -376,7 +394,8 @@ |
|
|
|
set company_id = #{companyId,jdbcType=BIGINT}, |
|
|
|
class_name = #{className,jdbcType=VARCHAR}, |
|
|
|
create_time = #{createTime,jdbcType=BIGINT}, |
|
|
|
flag = #{flag,jdbcType=INTEGER} |
|
|
|
flag = #{flag,jdbcType=INTEGER}, |
|
|
|
`type` = #{type,jdbcType=INTEGER} |
|
|
|
where id = #{id,jdbcType=BIGINT} |
|
|
|
</update> |
|
|
|
</mapper> |