| | |
| | | |
| | | /** |
| | | * 路灯表 |
| | | * |
| | | * @TableName light |
| | | */ |
| | | @TableName(value ="light") |
| | | @TableName(value = "light") |
| | | @Data |
| | | @AllArgsConstructor |
| | | @NoArgsConstructor |
| | |
| | | Light light = new Light(); |
| | | light.setLightPercent(heartBeatDataPackage.getLightPercent()); |
| | | light.setLight2Percent(heartBeatDataPackage.getLight2Percent()); |
| | | update(light, Wrappers.lambdaUpdate(Light.class).eq(Light::getDeviceCode, deviceName)); |
| | | log.info("更新路灯亮度"); |
| | | boolean update = update(light, Wrappers.lambdaUpdate(Light.class).eq(Light::getDeviceCode, deviceName)); |
| | | log.info("更新路灯亮度 {}", update); |
| | | } |
| | | } |
| | | |