duhanyu
杜函宇 9 hours ago
parent 2ae797efa2
commit 78168453a3

@ -520,18 +520,22 @@ public class AssetTaskController extends BaseController {
// } // }
StringBuilder a = new StringBuilder(); StringBuilder a = new StringBuilder();
if (!assetCurrent.getGlymList().isEmpty()) { if (assetCurrent.getGlymList() != null) {
assetCurrent.getGlymList().forEach(x -> { assetCurrent.getGlymList().forEach(x -> {
a.append(x); if (!Objects.equals(x.getKey(), "") && x.getKey() != null) {
a.append(","); a.append(x.getKey());
a.append(",");
}
}); });
} }
assetCurrent.setGlym(a.toString()); assetCurrent.setGlym(a.toString());
StringBuilder b = new StringBuilder(); StringBuilder b = new StringBuilder();
if (!assetCurrent.getGlIpList().isEmpty()) { if (assetCurrent.getGlIpList() != null) {
assetCurrent.getGlymList().forEach(x -> { assetCurrent.getGlIpList().forEach(x -> {
b.append(x); if (!Objects.equals(x.getKey(), "") && x.getKey() != null) {
b.append(","); b.append(x.getKey());
b.append(",");
}
}); });
} }
assetCurrent.setGlIp(b.toString()); assetCurrent.setGlIp(b.toString());

Loading…
Cancel
Save