|
@@ -18,6 +18,7 @@ import com.jeeplus.modules.sg.managementcenter.materialproject.entity.MaterialPr
|
|
|
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectActProclnsAss;
|
|
|
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectAssignment;
|
|
|
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.entity.ProjectPlanArrage;
|
|
|
+import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.service.ProjectDailyPlanService;
|
|
|
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.service.ProjectPlanActService;
|
|
|
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.service.ProjectPlanArrageService;
|
|
|
import com.jeeplus.modules.sg.managementcenter.projectPlanArrage.util.BookStrapTreeUtil;
|
|
@@ -56,6 +57,8 @@ public class ProjectPlanArrageController extends BaseController {
|
|
|
private ActTaskService actTaskService;
|
|
|
@Autowired
|
|
|
private OaNotifyService oaNotifyService;
|
|
|
+ @Autowired
|
|
|
+ private ProjectDailyPlanService projectDailyPlanService;
|
|
|
|
|
|
|
|
|
/*
|
|
@@ -1193,6 +1196,40 @@ public class ProjectPlanArrageController extends BaseController {
|
|
|
}
|
|
|
|
|
|
|
|
|
+ //主页面 删除按钮
|
|
|
+ @ResponseBody
|
|
|
+ @RequestMapping(value = "getDeleteMainAll")
|
|
|
+ public AjaxJson getDeleteMainAll(String ids,String projectNames){
|
|
|
+ AjaxJson ajaxJson = new AjaxJson();
|
|
|
+ try {
|
|
|
+ String comment = URLDecoder.decode(projectNames, "UTF-8");
|
|
|
+ List<String> idList = new ArrayList<String>();
|
|
|
+ List<String> list = new ArrayList<>();
|
|
|
+ if (ids.contains(",")){
|
|
|
+ String[] split = ids.split(",");
|
|
|
+ String[] names = comment.split(",");
|
|
|
+ for (String s:split){
|
|
|
+ idList.add(s);
|
|
|
+ }
|
|
|
+ for (String name:names){
|
|
|
+ list.add(name);
|
|
|
+ }
|
|
|
+ }else {
|
|
|
+ list.add(comment);
|
|
|
+ idList.add(ids);
|
|
|
+ }
|
|
|
+ projectDailyPlanService.updateNoMartailDaily(list);
|
|
|
+ projectPlanArrageService.deleteMainAll(idList);
|
|
|
+ ajaxJson.setSuccess(true);
|
|
|
+ ajaxJson.setMsg("退回库成功");
|
|
|
+ return ajaxJson;
|
|
|
+ }catch (Exception e){
|
|
|
+ e.printStackTrace();
|
|
|
+ }
|
|
|
+ ajaxJson.setSuccess(false);
|
|
|
+ ajaxJson.setMsg("退回库失败");
|
|
|
+ return ajaxJson;
|
|
|
+ }
|
|
|
|
|
|
//运行单位人员发起流程到配网项目经理
|
|
|
// @ResponseBody
|