fix:添加批量升级创建时间

V0.5.x
荭琪枫 2023-07-18 22:44:21 +08:00
parent 5fb249f765
commit 2a59e21d80
2 changed files with 4 additions and 6 deletions

View File

@ -17,10 +17,7 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.*;
@Data
@Builder
@ -56,6 +53,7 @@ public class TbDeviceTag {
*
*/
@ApiModelProperty(value = "标签值")
@Column(name = "[value]")
private String value;
}

View File

@ -160,11 +160,11 @@ public class OtaService {
AtomicReference<Integer> fail = new AtomicReference<>(0);
deviceIds.forEach(deviceId -> {
try {
//DeviceInfo deviceInfo = deviceInfoData.findByDeviceId(deviceId);
DeviceInfo deviceInfo = deviceInfoData.findByDeviceId(deviceId);
String taskId = deviceService.otaUpgrade(deviceId, true, otaPackage);
deviceOtaDetails.add(DeviceOtaDetail.builder()
.taskId(taskId)
//.deviceName(deviceInfo.getDeviceName())
.deviceName(deviceInfo.getDeviceName())
.otaInfoId(deviceOtaInfo.getId())
.module(otaPackage.getModule())
.version(otaPackage.getVersion())