Commit f54ef225 authored by 赵啸非's avatar 赵啸非

添加设备相关信息

parent e6e389e5
Pipeline #2639 failed with stages
......@@ -40,6 +40,7 @@ public class DevicePdu extends BaseEntityLong {
* 站点名称
*/
private String siteName;
private Long productId;
/**
* 产品编码
*/
......
......@@ -67,13 +67,14 @@ public class SyncSiteDeviceTaskImpl implements ITaskExcuteService {
if (siteRest.getCode() == YesNoEnum.YES.getValue()) {
log.info("站点总数量:{}", siteRest.getData().size());
siteRest.getData().forEach(site -> {
log.info("站点名称:{}",site.getSiteName());
log.info("站点名称:{}", site.getSiteName());
DevicePdu devicePdu = new DevicePdu();
devicePdu.setProductCode("tdj");
// devicePdu.setProductCode("tdj");
devicePdu.setProductId(9L);
devicePdu.setSiteId(site.getId());
devicePdu.setSize(-1);
Rest<RespData<List<DevicePdu>>> deviceRest = deviceFeign.list(devicePdu);
log.info("deviceRest:{}",JSON.toJSONString(deviceRest));
log.info("deviceRest:{}", JSON.toJSONString(deviceRest));
if (YesNoEnum.YES.getValue() == deviceRest.getCode()) {
List<DevicePdu> devicePduList = deviceRest.getData().getData();
log.info("填单机总数量:{}", devicePduList.size());
......@@ -160,8 +161,8 @@ public class SyncSiteDeviceTaskImpl implements ITaskExcuteService {
List<SkinEntity> newSkinList = skinBasePduList.stream().map(newSkin -> {
SkinEntity skinEntity = new SkinEntity();
skinEntity.initAttrValue();
newSkin.setCssFilePath("/"+StrUtil.subAfter(newSkin.getCssFilePath(), "/", true));
newSkin.setPreviewImagePath("/"+StrUtil.subAfter(newSkin.getPreviewImagePath(), "/", true));
newSkin.setCssFilePath("/" + StrUtil.subAfter(newSkin.getCssFilePath(), "/", true));
newSkin.setPreviewImagePath("/" + StrUtil.subAfter(newSkin.getPreviewImagePath(), "/", true));
BeanUtils.copyProperties(newSkin, skinEntity, BeanUtil.getNullPropertyNames(newSkin));
return skinEntity;
}).collect(Collectors.toList());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment