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