This commit is contained in:
wangshilong 2024-11-28 09:04:48 +08:00
parent 5af284a6d7
commit 2dddc8115b
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ public abstract class Command implements Serializable {
@NotNull(message = "下发设备标识不能为空") @NotNull(message = "下发设备标识不能为空")
private Long deviceId; private Long deviceId;
public Collection<ModbusCommandDto> buildModbusCommand() { public final Collection<ModbusCommandDto> buildModbusCommand() {
if (!this.validate()) { if (!this.validate()) {
throw new InvalidParameterException("Invalid command"); throw new InvalidParameterException("Invalid command");
} }