|
@@ -124,7 +124,7 @@ public class ProjectController extends BaseController {
|
|
|
// String type = wbsItem.getType(); //项目类型
|
|
|
String id = getId();
|
|
|
wbsItem.setId(id);
|
|
|
-// try {
|
|
|
+ try {
|
|
|
// 保存数据到数据库
|
|
|
// if(type.equals("1")) {
|
|
|
// overheadLineService.saveJk(file,wbsItem);
|
|
@@ -141,13 +141,13 @@ public class ProjectController extends BaseController {
|
|
|
}
|
|
|
addMessage(redirectAttributes, "导入成功");
|
|
|
return "redirect:/a/jkxl/list?id="+id+"&type="+str;
|
|
|
-// } catch (RuntimeException e) {
|
|
|
-// addMessage(redirectAttributes, "导入失败,"+e.getMessage());
|
|
|
-// return "redirect:/a/project/list";
|
|
|
-// } catch (Exception e){
|
|
|
-// addMessage(redirectAttributes, "导入失败");
|
|
|
-// return "redirect:/a/project/list";
|
|
|
-// }
|
|
|
+ } catch (RuntimeException e) {
|
|
|
+ addMessage(redirectAttributes, "导入失败,"+e.getMessage());
|
|
|
+ return "redirect:/a/project/list";
|
|
|
+ } catch (Exception e){
|
|
|
+ addMessage(redirectAttributes, "导入失败");
|
|
|
+ return "redirect:/a/project/list";
|
|
|
+ }
|
|
|
// return "redirect:/a/jkxl/list?id="+id;
|
|
|
}
|
|
|
|