@RequestParam("partyStructTypeId") Long partyStructTypeId,
@RequestParam("parentTypeId") Long parentTypeId,
@RequestParam("childTypeId") Long childTypeId,
RedirectAttributes redirectAttributes) {
if (id != null) {
PartyStructRule partyStructRule = partyStructRuleManager.get(id);
partyStructRuleManager.remove(partyStructRule);
}
PartyStructRule partyStructRule = new PartyStructRule();
partyStructRule.setPartyStructType(partyStructTypeManager
.get(partyStructTypeId));
partyStructRule.setParentType(partyTypeManager.get(parentTypeId));
partyStructRule.setChildType(partyTypeManager.get(childTypeId));
partyStructRuleManager.save(partyStructRule);
messageHelper.addFlashMessage(redirectAttributes, "core.success.save",
"保存成功");