|
|
@ -3,11 +3,12 @@ |
|
|
|
<mapper namespace="com.ccsens.logistics.persist.mapper.LogisticsEnvironmentRecordMapper"> |
|
|
|
<resultMap id="BaseResultMap" type="com.ccsens.logistics.bean.po.LogisticsEnvironmentRecord"> |
|
|
|
<id column="id" jdbcType="BIGINT" property="id" /> |
|
|
|
<result column="num_value" jdbcType="INTEGER" property="numValue" /> |
|
|
|
<result column="num_value" jdbcType="DECIMAL" property="numValue" /> |
|
|
|
<result column="num_type" jdbcType="TINYINT" property="numType" /> |
|
|
|
<result column="equipment_id" jdbcType="BIGINT" property="equipmentId" /> |
|
|
|
<result column="warehouse_id" jdbcType="BIGINT" property="warehouseId" /> |
|
|
|
<result column="record_time" jdbcType="BIGINT" property="recordTime" /> |
|
|
|
<result column="is_alarm" jdbcType="TINYINT" property="isAlarm" /> |
|
|
|
<result column="created_at" jdbcType="TIMESTAMP" property="createdAt" /> |
|
|
|
<result column="updated_at" jdbcType="TIMESTAMP" property="updatedAt" /> |
|
|
|
<result column="rec_status" jdbcType="TINYINT" property="recStatus" /> |
|
|
@ -71,8 +72,8 @@ |
|
|
|
</where> |
|
|
|
</sql> |
|
|
|
<sql id="Base_Column_List"> |
|
|
|
id, num_value, num_type, equipment_id, warehouse_id, record_time, created_at, updated_at, |
|
|
|
rec_status |
|
|
|
id, num_value, num_type, equipment_id, warehouse_id, record_time, is_alarm, created_at, |
|
|
|
updated_at, rec_status |
|
|
|
</sql> |
|
|
|
<select id="selectByExample" parameterType="com.ccsens.logistics.bean.po.LogisticsEnvironmentRecordExample" resultMap="BaseResultMap"> |
|
|
|
select |
|
|
@ -107,12 +108,12 @@ |
|
|
|
<insert id="insert" parameterType="com.ccsens.logistics.bean.po.LogisticsEnvironmentRecord"> |
|
|
|
insert into t_logistics_environment_record (id, num_value, num_type, |
|
|
|
equipment_id, warehouse_id, record_time, |
|
|
|
created_at, updated_at, rec_status |
|
|
|
) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{numValue,jdbcType=INTEGER}, #{numType,jdbcType=TINYINT}, |
|
|
|
is_alarm, created_at, updated_at, |
|
|
|
rec_status) |
|
|
|
values (#{id,jdbcType=BIGINT}, #{numValue,jdbcType=DECIMAL}, #{numType,jdbcType=TINYINT}, |
|
|
|
#{equipmentId,jdbcType=BIGINT}, #{warehouseId,jdbcType=BIGINT}, #{recordTime,jdbcType=BIGINT}, |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, #{recStatus,jdbcType=TINYINT} |
|
|
|
) |
|
|
|
#{isAlarm,jdbcType=TINYINT}, #{createdAt,jdbcType=TIMESTAMP}, #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
#{recStatus,jdbcType=TINYINT}) |
|
|
|
</insert> |
|
|
|
<insert id="insertSelective" parameterType="com.ccsens.logistics.bean.po.LogisticsEnvironmentRecord"> |
|
|
|
insert into t_logistics_environment_record |
|
|
@ -135,6 +136,9 @@ |
|
|
|
<if test="recordTime != null"> |
|
|
|
record_time, |
|
|
|
</if> |
|
|
|
<if test="isAlarm != null"> |
|
|
|
is_alarm, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at, |
|
|
|
</if> |
|
|
@ -150,7 +154,7 @@ |
|
|
|
#{id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="numValue != null"> |
|
|
|
#{numValue,jdbcType=INTEGER}, |
|
|
|
#{numValue,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="numType != null"> |
|
|
|
#{numType,jdbcType=TINYINT}, |
|
|
@ -164,6 +168,9 @@ |
|
|
|
<if test="recordTime != null"> |
|
|
|
#{recordTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="isAlarm != null"> |
|
|
|
#{isAlarm,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
#{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -188,7 +195,7 @@ |
|
|
|
id = #{record.id,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.numValue != null"> |
|
|
|
num_value = #{record.numValue,jdbcType=INTEGER}, |
|
|
|
num_value = #{record.numValue,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="record.numType != null"> |
|
|
|
num_type = #{record.numType,jdbcType=TINYINT}, |
|
|
@ -202,6 +209,9 @@ |
|
|
|
<if test="record.recordTime != null"> |
|
|
|
record_time = #{record.recordTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="record.isAlarm != null"> |
|
|
|
is_alarm = #{record.isAlarm,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="record.createdAt != null"> |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -219,11 +229,12 @@ |
|
|
|
<update id="updateByExample" parameterType="map"> |
|
|
|
update t_logistics_environment_record |
|
|
|
set id = #{record.id,jdbcType=BIGINT}, |
|
|
|
num_value = #{record.numValue,jdbcType=INTEGER}, |
|
|
|
num_value = #{record.numValue,jdbcType=DECIMAL}, |
|
|
|
num_type = #{record.numType,jdbcType=TINYINT}, |
|
|
|
equipment_id = #{record.equipmentId,jdbcType=BIGINT}, |
|
|
|
warehouse_id = #{record.warehouseId,jdbcType=BIGINT}, |
|
|
|
record_time = #{record.recordTime,jdbcType=BIGINT}, |
|
|
|
is_alarm = #{record.isAlarm,jdbcType=TINYINT}, |
|
|
|
created_at = #{record.createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{record.updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{record.recStatus,jdbcType=TINYINT} |
|
|
@ -235,7 +246,7 @@ |
|
|
|
update t_logistics_environment_record |
|
|
|
<set> |
|
|
|
<if test="numValue != null"> |
|
|
|
num_value = #{numValue,jdbcType=INTEGER}, |
|
|
|
num_value = #{numValue,jdbcType=DECIMAL}, |
|
|
|
</if> |
|
|
|
<if test="numType != null"> |
|
|
|
num_type = #{numType,jdbcType=TINYINT}, |
|
|
@ -249,6 +260,9 @@ |
|
|
|
<if test="recordTime != null"> |
|
|
|
record_time = #{recordTime,jdbcType=BIGINT}, |
|
|
|
</if> |
|
|
|
<if test="isAlarm != null"> |
|
|
|
is_alarm = #{isAlarm,jdbcType=TINYINT}, |
|
|
|
</if> |
|
|
|
<if test="createdAt != null"> |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
</if> |
|
|
@ -263,11 +277,12 @@ |
|
|
|
</update> |
|
|
|
<update id="updateByPrimaryKey" parameterType="com.ccsens.logistics.bean.po.LogisticsEnvironmentRecord"> |
|
|
|
update t_logistics_environment_record |
|
|
|
set num_value = #{numValue,jdbcType=INTEGER}, |
|
|
|
set num_value = #{numValue,jdbcType=DECIMAL}, |
|
|
|
num_type = #{numType,jdbcType=TINYINT}, |
|
|
|
equipment_id = #{equipmentId,jdbcType=BIGINT}, |
|
|
|
warehouse_id = #{warehouseId,jdbcType=BIGINT}, |
|
|
|
record_time = #{recordTime,jdbcType=BIGINT}, |
|
|
|
is_alarm = #{isAlarm,jdbcType=TINYINT}, |
|
|
|
created_at = #{createdAt,jdbcType=TIMESTAMP}, |
|
|
|
updated_at = #{updatedAt,jdbcType=TIMESTAMP}, |
|
|
|
rec_status = #{recStatus,jdbcType=TINYINT} |
|
|
|