|
@@ -264,8 +264,24 @@ public class ProjectFilingBatchController extends BaseController {
|
|
|
}
|
|
|
return "redirect:" + Global.getAdminPath() + "/projectFilingBatch/projectFilingBatchInfo/?repage";
|
|
|
}
|
|
|
-
|
|
|
-
|
|
|
+ /**
|
|
|
+ * 撤回
|
|
|
+ * @param projectFilingBatch
|
|
|
+ * @param redirectAttributes
|
|
|
+ * @return
|
|
|
+ */
|
|
|
+ @RequestMapping(value = "delete")
|
|
|
+ public String delete(ProjectFilingBatch projectFilingBatch, RedirectAttributes redirectAttributes) {
|
|
|
+ int status = projectFilingBatch.getFilingStatus();
|
|
|
+ if(status== ProjectStatusEnum.TSTORE.getValue()||status== ProjectStatusEnum.REJECTED.getValue()||status== ProjectStatusEnum.RECALL.getValue()){
|
|
|
+ projectFilingBatchService.delete(projectFilingBatch);
|
|
|
+ addMessage(redirectAttributes, "归档作废成功");
|
|
|
+ return "redirect:"+Global.getAdminPath()+"/projectFilingBatch/projectFilingBatchInfo/?repage";
|
|
|
+ }else {
|
|
|
+ addMessage(redirectAttributes, "归档作废失败,只有“暂存”、“驳回”、“撤回”状态的项目才能作废");
|
|
|
+ }
|
|
|
+ return "redirect:" + Global.getAdminPath() + "/projectFilingBatch/projectFilingBatchInfo/?repage";
|
|
|
+ }
|
|
|
/**
|
|
|
* 线下归档员进行归档审批——项目审批
|
|
|
* 修改
|