修复数据类型错误
This commit is contained in:
parent
abab7967b0
commit
d23c368d10
@ -51,6 +51,7 @@ public class Cache {
|
||||
}
|
||||
|
||||
private void loadDominionsExecution() {
|
||||
long start = System.currentTimeMillis();
|
||||
id_dominions = new ConcurrentHashMap<>();
|
||||
world_dominion_tree = new ConcurrentHashMap<>();
|
||||
dominion_children = new ConcurrentHashMap<>();
|
||||
@ -73,6 +74,7 @@ public class Cache {
|
||||
BlueMapConnect.render();
|
||||
recheckPlayerState = true;
|
||||
_last_update_dominion.set(System.currentTimeMillis());
|
||||
XLogger.debug("loadDominionsExecution cost: %d ms", System.currentTimeMillis() - start);
|
||||
}
|
||||
|
||||
/**
|
||||
@ -94,6 +96,7 @@ public class Cache {
|
||||
}
|
||||
|
||||
private void loadPlayerPrivilegesExecution() {
|
||||
long start = System.currentTimeMillis();
|
||||
List<PlayerPrivilegeDTO> all_privileges = PlayerPrivilegeDTO.selectAll();
|
||||
if (all_privileges == null) {
|
||||
XLogger.err("加载玩家特权失败");
|
||||
@ -109,6 +112,7 @@ public class Cache {
|
||||
}
|
||||
recheckPlayerState = true;
|
||||
_last_update_privilege.set(System.currentTimeMillis());
|
||||
XLogger.debug("loadPlayerPrivilegesExecution cost: %d ms", System.currentTimeMillis() - start);
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -155,7 +155,7 @@ public class DominionDTO {
|
||||
String tp_location,
|
||||
String color) {
|
||||
this.id.value = id;
|
||||
this.owner.value = owner;
|
||||
this.owner.value = owner.toString();
|
||||
this.name.value = name;
|
||||
this.world.value = world;
|
||||
this.x1.value = x1;
|
||||
@ -177,7 +177,7 @@ public class DominionDTO {
|
||||
Integer x1, Integer y1, Integer z1, Integer x2, Integer y2, Integer z2,
|
||||
Integer parentDomId) {
|
||||
this.id.value = id;
|
||||
this.owner.value = owner;
|
||||
this.owner.value = owner.toString();
|
||||
this.name.value = name;
|
||||
this.world.value = world;
|
||||
this.x1.value = x1;
|
||||
@ -222,7 +222,6 @@ public class DominionDTO {
|
||||
}
|
||||
|
||||
private DominionDTO doUpdate(UpdateRow updateRow) {
|
||||
Field id = new Field("id", this.id);
|
||||
updateRow.returningAll(id)
|
||||
.table("dominion")
|
||||
.where("id = ?", id.value);
|
||||
|
Reference in New Issue
Block a user