|
@@ -181,7 +181,7 @@ public class RuralCostProjectRecordsController extends BaseController {
|
|
if (!beanValidator(model, projectRecords)){
|
|
if (!beanValidator(model, projectRecords)){
|
|
return form(projectRecords, model);
|
|
return form(projectRecords, model);
|
|
}
|
|
}
|
|
-// try {
|
|
|
|
|
|
+ try {
|
|
// projectRecords.setProjectStatus(ProjectStatusEnum.IN_APRL.getValue());
|
|
// projectRecords.setProjectStatus(ProjectStatusEnum.IN_APRL.getValue());
|
|
if (!projectRecords.getIsNewRecord()) {//编辑表单保存
|
|
if (!projectRecords.getIsNewRecord()) {//编辑表单保存
|
|
RuralProjectRecords t = projectRecordsService.get(projectRecords.getId());//从数据库取出记录的值
|
|
RuralProjectRecords t = projectRecordsService.get(projectRecords.getId());//从数据库取出记录的值
|
|
@@ -193,10 +193,10 @@ public class RuralCostProjectRecordsController extends BaseController {
|
|
projectRecordsService.saveProject(projectRecords, ProjectStatusEnum.IN_APRL);//保存
|
|
projectRecordsService.saveProject(projectRecords, ProjectStatusEnum.IN_APRL);//保存
|
|
}
|
|
}
|
|
addMessage(redirectAttributes, "保存项目成功");
|
|
addMessage(redirectAttributes, "保存项目成功");
|
|
-// }catch (Exception e){
|
|
|
|
-// logger.error("保存项目异常:",e);
|
|
|
|
-// addMessage(redirectAttributes, "保存项目异常:"+e.getMessage());
|
|
|
|
-// }
|
|
|
|
|
|
+ }catch (Exception e){
|
|
|
|
+ logger.error("保存项目异常:",e);
|
|
|
|
+ addMessage(redirectAttributes, "保存项目异常:"+e.getMessage());
|
|
|
|
+ }
|
|
return "redirect:"+Global.getAdminPath()+"/ruralProject/ruralCostProjectRecords/?repage";
|
|
return "redirect:"+Global.getAdminPath()+"/ruralProject/ruralCostProjectRecords/?repage";
|
|
}
|
|
}
|
|
/**
|
|
/**
|