public PartyEntity init(Model model, Long partyStructTypeId,
Long partyEntityId) {
// 维度,比如行政组织
List<PartyStructType> partyStructTypes = partyStructTypeManager.getAll(
"priority", true);
PartyStructType partyStructType = null;
if (partyStructTypeId == null) {
// 如果没有指定维度,就使用第一个维度当做默认维度
partyStructType = partyStructTypes.get(0);
partyStructTypeId = partyStructType.getId();
} else {
partyStructType = partyStructTypeManager.get(partyStructTypeId);
}
if (partyEntityId == null) {