@RequestMapping("/config/save")
public String saveConfig(String type, Long configId, String configKey, String configValue,
String configDesc, Long projectId, Long moduleId, Long selModuleId, int page,
@RequestParam(defaultValue="")String flag) {
User user = (User) SessionHolder.getSession().getAttribute("sessionUser");
if(configId == null) {
configService.insertConfig(configKey, configValue, configDesc, projectId, moduleId, user.getUserCode());
} else {
configService.updateConfig(type, configId, configKey, configValue, configDesc, projectId, moduleId, user.getUserCode());
}
String projCode = (String)projectService.queryProject(projectId).get("PROJ_CODE");
String config = configService.queryConfigs(projCode, type, "");
diamondServerHandler.pushConfig(projCode, type, config);