[DEBUG] correct edit model
This commit is contained in:
parent
4c45f403a3
commit
5e0bcc37f5
@ -413,7 +413,7 @@ public class NodeInterface {
|
|||||||
if (!root.path("description").isMissingNode()) {
|
if (!root.path("description").isMissingNode()) {
|
||||||
query += ", `description` = ? ";
|
query += ", `description` = ? ";
|
||||||
}
|
}
|
||||||
if (!root.path("parent_id").isMissingNode()) {
|
if (!root.path("parentId").isMissingNode()) {
|
||||||
query += ", `parent_id` = ? ";
|
query += ", `parent_id` = ? ";
|
||||||
}
|
}
|
||||||
query += " WHERE `id` = ?";
|
query += " WHERE `id` = ?";
|
||||||
@ -435,11 +435,11 @@ public class NodeInterface {
|
|||||||
ps.setString(iii++, root.path("description").asText());
|
ps.setString(iii++, root.path("description").asText());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!root.path("parent_id").isMissingNode()) {
|
if (!root.path("parentId").isMissingNode()) {
|
||||||
if (root.path("parent_id").isNull()) {
|
if (root.path("parentId").isNull()) {
|
||||||
ps.setNull(iii++, Types.BIGINT);
|
ps.setNull(iii++, Types.BIGINT);
|
||||||
} else {
|
} else {
|
||||||
ps.setLong(iii++, root.path("parent_id").asLong());
|
ps.setLong(iii++, root.path("parentId").asLong());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ps.setLong(iii++, id);
|
ps.setLong(iii++, id);
|
||||||
|
@ -138,21 +138,20 @@ public class VideoResource {
|
|||||||
if (!root.path("time").isMissingNode()) {
|
if (!root.path("time").isMissingNode()) {
|
||||||
query += ", `time` = ? ";
|
query += ", `time` = ? ";
|
||||||
}
|
}
|
||||||
if (!root.path("type_id").isMissingNode()) {
|
if (!root.path("typeId").isMissingNode()) {
|
||||||
query += ", `type_id` = ? ";
|
query += ", `type_id` = ? ";
|
||||||
}
|
}
|
||||||
if (!root.path("universe_id").isMissingNode()) {
|
if (!root.path("universeId").isMissingNode()) {
|
||||||
query += ", `universe_id` = ? ";
|
query += ", `universe_id` = ? ";
|
||||||
}
|
}
|
||||||
if (!root.path("series_id").isMissingNode()) {
|
if (!root.path("seriesId").isMissingNode()) {
|
||||||
query += ", `series_id` = ? ";
|
query += ", `series_id` = ? ";
|
||||||
}
|
}
|
||||||
if (!root.path("season_id").isMissingNode()) {
|
if (!root.path("seasonId").isMissingNode()) {
|
||||||
query += ", `season_id` = ? ";
|
query += ", `season_id` = ? ";
|
||||||
}
|
}
|
||||||
query += " WHERE `id` = ?";
|
query += " WHERE `id` = ?";
|
||||||
DBEntry entry = new DBEntry(WebLauncher.dbConfig);
|
DBEntry entry = new DBEntry(WebLauncher.dbConfig);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
PreparedStatement ps = entry.connection.prepareStatement(query);
|
PreparedStatement ps = entry.connection.prepareStatement(query);
|
||||||
int iii = 1;
|
int iii = 1;
|
||||||
@ -184,32 +183,32 @@ public class VideoResource {
|
|||||||
ps.setInt(iii++, root.path("time").asInt());
|
ps.setInt(iii++, root.path("time").asInt());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!root.path("type_id").isMissingNode()) {
|
if (!root.path("typeId").isMissingNode()) {
|
||||||
if (root.path("type_id").isNull()) {
|
if (root.path("typeId").isNull()) {
|
||||||
ps.setNull(iii++, Types.BIGINT);
|
ps.setNull(iii++, Types.BIGINT);
|
||||||
} else {
|
} else {
|
||||||
ps.setLong(iii++, root.path("type_id").asLong());
|
ps.setLong(iii++, root.path("typeId").asLong());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!root.path("universe_id").isMissingNode()) {
|
if (!root.path("universe_id").isMissingNode()) {
|
||||||
if (root.path("universe_id").isNull()) {
|
if (root.path("universe_id").isNull()) {
|
||||||
ps.setNull(iii++, Types.BIGINT);
|
ps.setNull(iii++, Types.BIGINT);
|
||||||
} else {
|
} else {
|
||||||
ps.setLong(iii++, root.path("universe_id").asLong());
|
ps.setLong(iii++, root.path("universeId").asLong());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!root.path("series_id").isMissingNode()) {
|
if (!root.path("seriesId").isMissingNode()) {
|
||||||
if (root.path("series_id").isNull()) {
|
if (root.path("seriesId").isNull()) {
|
||||||
ps.setNull(iii++, Types.BIGINT);
|
ps.setNull(iii++, Types.BIGINT);
|
||||||
} else {
|
} else {
|
||||||
ps.setLong(iii++, root.path("series_id").asLong());
|
ps.setLong(iii++, root.path("seriesId").asLong());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!root.path("season_id").isMissingNode()) {
|
if (!root.path("seasonId").isMissingNode()) {
|
||||||
if (root.path("season_id").isNull()) {
|
if (root.path("seasonId").isNull()) {
|
||||||
ps.setNull(iii++, Types.BIGINT);
|
ps.setNull(iii++, Types.BIGINT);
|
||||||
} else {
|
} else {
|
||||||
ps.setLong(iii++, root.path("season_id").asLong());
|
ps.setLong(iii++, root.path("seasonId").asLong());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
ps.setLong(iii++, id);
|
ps.setLong(iii++, id);
|
||||||
|
@ -139,7 +139,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="send_value">
|
<div class="send_value">
|
||||||
<button class="button fill-x color-button-validate color-shadow-black" [disabled]="!need_send" (click)="sendValues()" type="submit"><i class="material-icons">save_alt</i> Save</button>
|
<button class="button fill-x color-button-validate color-shadow-black" [disabled]="!needSend" (click)="sendValues()" type="submit"><i class="material-icons">save_alt</i> Save</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
@ -157,7 +157,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="request_raw">
|
<div class="request_raw">
|
||||||
<div class="input">
|
<div class="input">
|
||||||
<div class="cover" *ngFor="let element of covers_display">
|
<div class="cover" *ngFor="let element of coversDisplay">
|
||||||
<div class="cover-image">
|
<div class="cover-image">
|
||||||
<img src="{{element.url}}"/>
|
<img src="{{element.url}}"/>
|
||||||
</div>
|
</div>
|
||||||
@ -190,7 +190,7 @@
|
|||||||
<i class="material-icons">data_usage</i> ID:
|
<i class="material-icons">data_usage</i> ID:
|
||||||
</div>
|
</div>
|
||||||
<div class="input">
|
<div class="input">
|
||||||
{{data.data_id}}
|
{{data.dataId}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
Loading…
Reference in New Issue
Block a user