边带子设备添加杆塔

This commit is contained in:
cwchen 2024-03-28 16:45:16 +08:00
parent cab920a18c
commit 5ec9e8ab60
2 changed files with 6 additions and 0 deletions

View File

@ -72,6 +72,9 @@ public class DeviceBdChildVo {
@ApiModelProperty(value = "区域名称") @ApiModelProperty(value = "区域名称")
private String areaName; private String areaName;
@ApiModelProperty(value = "杆塔ID")
private String gtId;
/** /**
* 查询条件限制 * 查询条件限制
*/ */

View File

@ -66,6 +66,7 @@
<if test="updateTime != null and updateTime!=''">device_model,</if> <if test="updateTime != null and updateTime!=''">device_model,</if>
<if test="bdId != null and bdId!=''">bd_id,</if> <if test="bdId != null and bdId!=''">bd_id,</if>
<if test="areaId != null and areaId!=''">area_id,</if> <if test="areaId != null and areaId!=''">area_id,</if>
<if test="gtId != null and gtId!=''">gt_id,</if>
</trim> </trim>
<trim prefix="values (" suffix=")" suffixOverrides=","> <trim prefix="values (" suffix=")" suffixOverrides=",">
<if test="deviceId != null and deviceId != ''">#{deviceId},</if> <if test="deviceId != null and deviceId != ''">#{deviceId},</if>
@ -80,6 +81,7 @@
<if test="deviceModel != null and deviceModel!=''">#{deviceModel},</if> <if test="deviceModel != null and deviceModel!=''">#{deviceModel},</if>
<if test="bdId != null and bdId!=''">#{bdId},</if> <if test="bdId != null and bdId!=''">#{bdId},</if>
<if test="areaId != null and areaId!=''">#{areaId},</if> <if test="areaId != null and areaId!=''">#{areaId},</if>
<if test="gtId != null and gtId!=''">#{gtId},</if>
</trim> </trim>
</if> </if>
<if test="type == 2"> <if test="type == 2">
@ -94,6 +96,7 @@
<if test="deviceModel != null and deviceModel != ''">device_model = #{deviceModel},</if> <if test="deviceModel != null and deviceModel != ''">device_model = #{deviceModel},</if>
<if test="bdId != null and bdId != ''">bd_id = #{bdId},</if> <if test="bdId != null and bdId != ''">bd_id = #{bdId},</if>
<if test="areaId != null and areaId != ''">area_id = #{areaId},</if> <if test="areaId != null and areaId != ''">area_id = #{areaId},</if>
<if test="gtId != null and gtId != ''">gt_id = #{gtId},</if>
</set> </set>
WHERE device_id = #{deviceId} WHERE device_id = #{deviceId}
</if> </if>