设备状态bug修复
This commit is contained in:
parent
b89dea9054
commit
8e0da57ba1
|
|
@ -18,13 +18,13 @@
|
|||
|
||||
<sql id="Base_Column_List">
|
||||
<!--@mbg.generated-->
|
||||
id, dev_type, dev_code, dev_name, bd_id, config_id, dev_status, dev_warn, del_flag,
|
||||
id, dev_type, dev_code, dev_name, bd_id, config_id, dev_status, dev_warn, del_flag,
|
||||
logo_url
|
||||
</sql>
|
||||
|
||||
<select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap">
|
||||
<!--@mbg.generated-->
|
||||
select
|
||||
select
|
||||
<include refid="Base_Column_List" />
|
||||
from tb_device
|
||||
where id = #{id,jdbcType=BIGINT}
|
||||
|
|
@ -37,13 +37,13 @@
|
|||
|
||||
<insert id="insert" parameterType="com.bonus.base.domain.TbDevice">
|
||||
<!--@mbg.generated-->
|
||||
insert into tb_device (id, dev_type, dev_code,
|
||||
dev_name, bd_id, config_id,
|
||||
dev_status, dev_warn, del_flag,
|
||||
insert into tb_device (id, dev_type, dev_code,
|
||||
dev_name, bd_id, config_id,
|
||||
dev_status, dev_warn, del_flag,
|
||||
logo_url)
|
||||
values (#{id,jdbcType=BIGINT}, #{devType,jdbcType=VARCHAR}, #{devCode,jdbcType=VARCHAR},
|
||||
#{devName,jdbcType=VARCHAR}, #{bdId,jdbcType=BIGINT}, #{configId,jdbcType=BIGINT},
|
||||
#{devStatus,jdbcType=INTEGER}, #{devWarn,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER},
|
||||
values (#{id,jdbcType=BIGINT}, #{devType,jdbcType=VARCHAR}, #{devCode,jdbcType=VARCHAR},
|
||||
#{devName,jdbcType=VARCHAR}, #{bdId,jdbcType=BIGINT}, #{configId,jdbcType=BIGINT},
|
||||
#{devStatus,jdbcType=INTEGER}, #{devWarn,jdbcType=INTEGER}, #{delFlag,jdbcType=INTEGER},
|
||||
#{logoUrl,jdbcType=VARCHAR})
|
||||
</insert>
|
||||
<insert id="insertSelective" parameterType="com.bonus.base.domain.TbDevice">
|
||||
|
|
@ -282,7 +282,7 @@
|
|||
<if test="devCode != null and devCode != ''">
|
||||
and td.dev_code like concat('%',#{devCode},'%')
|
||||
</if>
|
||||
<if test="devStatus != null and devStatus != ''">
|
||||
<if test="devStatus != null">
|
||||
and td.dev_status = #{devStatus}
|
||||
</if>
|
||||
</select>
|
||||
|
|
@ -329,4 +329,4 @@
|
|||
and td.dev_type = #{deviceTypeCode}
|
||||
</if>
|
||||
</select>
|
||||
</mapper>
|
||||
</mapper>
|
||||
|
|
|
|||
Loading…
Reference in New Issue