预警调试

This commit is contained in:
mashuai 2024-09-20 11:16:05 +08:00
parent 7da4f2450e
commit 53e9193ba4
2 changed files with 8 additions and 3 deletions

View File

@ -46,8 +46,8 @@
<if test="relUser != null and relUser != ''"> <if test="relUser != null and relUser != ''">
and tbr.rel_user like concat('%',#{relUser},'%') and tbr.rel_user like concat('%',#{relUser},'%')
</if> </if>
<if test="auditStatus != null and auditStatus != ''"> <if test="createTime != null and createTime != ''">
and tbr.audit_status = #{auditStatus} and DATE_FORMAT(tbr.create_time, '%Y-%m-%d') = DATE_FORMAT(#{createTime}, '%Y-%m-%d')
</if> </if>
GROUP BY tbr.id GROUP BY tbr.id
</select> </select>

View File

@ -50,6 +50,9 @@
<!--@mbg.generated--> <!--@mbg.generated-->
insert into tb_device insert into tb_device
<trim prefix="(" suffix=")" suffixOverrides=","> <trim prefix="(" suffix=")" suffixOverrides=",">
<if test="id != null">
id,
</if>
<if test="devType != null and devType != ''"> <if test="devType != null and devType != ''">
dev_type, dev_type,
</if> </if>
@ -95,7 +98,9 @@
<if test="configId != null"> <if test="configId != null">
#{configId,jdbcType=BIGINT}, #{configId,jdbcType=BIGINT},
</if> </if>
1, <if test="devStatus != null">
#{devStatus,jdbcType=INTEGER},
</if>
<if test="devWarn != null"> <if test="devWarn != null">
#{devWarn,jdbcType=INTEGER}, #{devWarn,jdbcType=INTEGER},
</if> </if>