|
@@ -1,5 +1,6 @@
|
|
|
package com.jeeplus.modules.sg.project.web;
|
|
|
|
|
|
+import com.jeeplus.common.json.AjaxJson;
|
|
|
import com.jeeplus.core.web.BaseController;
|
|
|
import com.jeeplus.modules.sg.overheadline.service.OverheadLineService;
|
|
|
import com.jeeplus.modules.sg.project.entity.WbsItem;
|
|
@@ -186,19 +187,29 @@ public class ProjectTemController extends BaseController {
|
|
|
}
|
|
|
return newDate+result;
|
|
|
}
|
|
|
-
|
|
|
-// @RequestMapping("/verfiy")
|
|
|
+ //校验项目名称是否存在
|
|
|
+ @RequestMapping("/verfiy")
|
|
|
+ @ResponseBody
|
|
|
+ public HashMap getVerfiy(String projectName,String projectId){
|
|
|
+ HashMap map = new HashMap();
|
|
|
+ List<WbsItem> wbsItemList = itemService.findItemByName(projectName,projectId);
|
|
|
+ if (wbsItemList!=null&&!wbsItemList.isEmpty()){
|
|
|
+ map.put("msg","导入失败! 项目名称:"+projectName+" 已存在");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+ map.put("code",1);
|
|
|
+ map.put("msg","导入成功");
|
|
|
+ return map;
|
|
|
+ }
|
|
|
+// //删除项目
|
|
|
+// @RequestMapping("/deleteItem")
|
|
|
// @ResponseBody
|
|
|
-// public HashMap getVerfiy(String projectName,String projectId){
|
|
|
-// HashMap map = new HashMap();
|
|
|
-// List<WbsItem> wbsItemList = itemService.findItemByName(projectName,projectId);
|
|
|
-// if (wbsItemList!=null&&!wbsItemList.isEmpty()){
|
|
|
-// map.put("code",1);
|
|
|
-// map.put("msg","导入失败! 项目名称:"+projectName+" 已存在");
|
|
|
-// return map;
|
|
|
-// }
|
|
|
-// map.put("msg","导入成功");
|
|
|
-// return map;
|
|
|
+// public AjaxJson deleteItem(WbsItem wbsItem){
|
|
|
+// wbsItem.setDelFlag("1");
|
|
|
+// AjaxJson j = new AjaxJson();
|
|
|
+// itemService.updateItem(wbsItem);
|
|
|
+// j.setSuccess(true);
|
|
|
+// j.setMsg("删除成功");
|
|
|
+// return j;
|
|
|
// }
|
|
|
-
|
|
|
}
|