| | |
| | | |
| | | void deleteAll(); |
| | | |
| | | /** |
| | | * 批量修改设备厂商类型 |
| | | * |
| | | * @param list |
| | | * @return |
| | | */ |
| | | int batchUpdateDeviceType(@Param("list") List<TMonitor> list); |
| | | } |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="batchUpdateDeviceType"> |
| | | <foreach collection="list" separator=";" item="item"> |
| | | UPDATE t_monitor |
| | | SET |
| | | update_time = #{item.updateTime}, |
| | | device_type = #{item.deviceType} |
| | | WHERE id = #{item.id} |
| | | </foreach> |
| | | </update> |
| | | |
| | | <update id="updateTMonitor" parameterType="com.ycl.platform.domain.entity.TMonitor"> |
| | | update t_monitor |
| | | <trim prefix="SET" suffixOverrides=","> |