1078-简化设备注册取值写法

This commit is contained in:
648540858
2024-03-15 17:50:03 +08:00
parent 23a72e94e6
commit 93946407e8
10 changed files with 139 additions and 18 deletions

View File

@@ -88,4 +88,11 @@ public interface JTDeviceMapper {
@Delete("delete from wvp_jt_device where terminal_id = #{terminalId}")
void deleteDeviceByTerminalId(@Param("terminalId") String terminalId);
@Update(value = {" <script>" +
"UPDATE wvp_jt_device " +
"SET status=#{connected} " +
"WHERE terminal_id=#{terminalId}"+
" </script>"})
void updateDeviceStatus(@Param("connected") boolean connected, @Param("terminalId") String terminalId);
}