master
kira 6 years ago
parent 65741a145d
commit 568e54467f

@ -73,6 +73,7 @@ public class PermissionClientModulesServiceImpl implements PermissionClientModul
} }
private void saveMongoLog(JSONObject account, JSONObject oldRecord, JSONObject modifyData, String business) { private void saveMongoLog(JSONObject account, JSONObject oldRecord, JSONObject modifyData, String business) {
try {
modifyData.remove("id"); modifyData.remove("id");
PermissionClientModuleLog mongoRecord = new PermissionClientModuleLog(); PermissionClientModuleLog mongoRecord = new PermissionClientModuleLog();
mongoRecord.setBusiness(business); mongoRecord.setBusiness(business);
@ -86,5 +87,7 @@ public class PermissionClientModulesServiceImpl implements PermissionClientModul
Map<String, Object> beforeModify = modifyData.keySet().stream().collect(Collectors.toMap(key -> key, oldRecord::get)); Map<String, Object> beforeModify = modifyData.keySet().stream().collect(Collectors.toMap(key -> key, oldRecord::get));
mongoRecord.setOriginData(JSON.toJSONString(beforeModify)); mongoRecord.setOriginData(JSON.toJSONString(beforeModify));
mongoTemplate.insert(mongoRecord); mongoTemplate.insert(mongoRecord);
}catch (Exception ignore){
}
} }
} }

Loading…
Cancel
Save