sdf fix
This commit is contained in:
@@ -73,10 +73,12 @@ public abstract class DeviceDTO {
|
||||
* 管理端口
|
||||
*/
|
||||
private Integer managePort;
|
||||
@NotNull(message = "加密密钥索引不能为空")
|
||||
private Integer encKeyIdx;
|
||||
/**
|
||||
* 访问凭证
|
||||
*/
|
||||
@NotBlank(message = "访问凭证不能为空")
|
||||
private String accessCredentials;
|
||||
/**
|
||||
* 备注
|
||||
|
||||
@@ -20,6 +20,7 @@ import java.time.Duration;
|
||||
import java.time.LocalDateTime;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
import java.util.concurrent.Executors;
|
||||
|
||||
/**
|
||||
* @author liulu
|
||||
@@ -50,8 +51,8 @@ public class DeviceTask implements InitializingBean {
|
||||
if (CollectionUtils.isEmpty(records)) {
|
||||
break;
|
||||
}
|
||||
for (Device record : records) {
|
||||
threadPoolTaskExecutor.execute(() -> {
|
||||
Executors.newSingleThreadExecutor().execute(() -> {
|
||||
for (Device record : records) {
|
||||
DeviceCheckRes checkRes = tmkService.checkDevice(record);
|
||||
Device up = new Device();
|
||||
up.setId(record.getId());
|
||||
@@ -69,8 +70,8 @@ public class DeviceTask implements InitializingBean {
|
||||
}
|
||||
up.setEncTmk(checkRes.getEncTmk());
|
||||
spDeviceMapper.updateById(up);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -140,6 +140,7 @@ logging:
|
||||
level:
|
||||
root: info
|
||||
com.sunyard.chsm.mapper: debug
|
||||
com.sunyard.chsm.service.TmkService: debug
|
||||
# org.springframework.web: trace
|
||||
# config: classpath:log4j2.xml
|
||||
|
||||
|
||||
Reference in New Issue
Block a user