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

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

Loading…
Cancel
Save