Commit 541742fb authored by wei's avatar wei 🎱

根据项目群代码,查询所有案卷

parent 5e1e1eb1
...@@ -27,6 +27,15 @@ import org.springframework.stereotype.Controller; ...@@ -27,6 +27,15 @@ import org.springframework.stereotype.Controller;
@Controller(ExtFilesController.BEAN_NAME) @Controller(ExtFilesController.BEAN_NAME)
public class ExtFilesController<V extends ExtFilesVO, S extends ExtFilesService<V>> extends ExtFilesControllerShadow<V, S> { public class ExtFilesController<V extends ExtFilesVO, S extends ExtFilesService<V>> extends ExtFilesControllerShadow<V, S> {
@Autowired
private ExtFilesService extFilesService;
@ApiOperation(value = "获取项目群", notes = "移交单下文件清单退档")
@GetMapping(value = "/getExtFilesByProjectCode")
public ApiResult getExtFilesByProjectCode(@RequestParam("projectCode") Long projectCode) {
List<ExtFilesVO> extFilesVOList = extFilesService.getExtFilesByProjectCode(projectCode);
return ApiResult.ok(extFilesVOList);
}
} }
......
...@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*; ...@@ -23,7 +23,6 @@ import org.springframework.web.bind.annotation.*;
@Controller(ExtTransferDocumentController.BEAN_NAME) @Controller(ExtTransferDocumentController.BEAN_NAME)
public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S extends ExtTransferDocumentService<V>> extends ExtTransferDocumentControllerShadow<V, S> { public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S extends ExtTransferDocumentService<V>> extends ExtTransferDocumentControllerShadow<V, S> {
@Autowired @Autowired
private ExtTransferDocumentService extTransferDocumentService; private ExtTransferDocumentService extTransferDocumentService;
...@@ -33,24 +32,32 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex ...@@ -33,24 +32,32 @@ public class ExtTransferDocumentController<V extends ExtTransferDocumentVO, S ex
return ApiResult.ok(extTransferDocumentService.startWorkflow(id), "流程启动成功"); return ApiResult.ok(extTransferDocumentService.startWorkflow(id), "流程启动成功");
} }
@ApiOperation(value = "更新案卷部分字段信息", notes = "更新案卷部分字段信息", httpMethod = "POST") @ApiOperation(value = "更新案卷部分字段信息", notes = "更新案卷部分字段信息")
@PostMapping(value = "/updateExtFiles") @PostMapping(value = "/updateExtFiles")
public ApiResult updateExtFiles(@RequestBody ExtTransferDocumentVO extTransferDocumentVO) { public ApiResult updateExtFiles(@RequestBody ExtTransferDocumentVO extTransferDocumentVO) {
extTransferDocumentService.updateExtFiles(extTransferDocumentVO); extTransferDocumentService.updateExtFiles(extTransferDocumentVO);
return ApiResult.ok(ApiResult.SUCCESS, "更新案卷部分信息成功"); return ApiResult.ok(ApiResult.SUCCESS, "更新案卷部分信息成功");
} }
@ApiOperation(value = "获取项目信息", notes = "获取项目信息", httpMethod = "POST") @ApiOperation(value = "获取项目信息", notes = "获取项目信息")
@GetMapping(value = "/getTransferDocProject") @GetMapping(value = "/getTransferDocProject")
public ApiResult getTransferDocProjectById(@RequestParam("id") Long id) { public ApiResult getTransferDocProjectById(@RequestParam("id") Long id) {
return ApiResult.ok(extTransferDocumentService.getTransferDocProjectById(id)); return ApiResult.ok(extTransferDocumentService.getTransferDocProjectById(id));
} }
@ApiOperation(value = "获取文档列表", notes = "获取文档列表", httpMethod = "POST") @ApiOperation(value = "获取文档列表", notes = "获取文档列表")
@GetMapping(value = "/getDxDocumentList") @PostMapping(value = "/getDxDocumentList")
public ApiResult getDxDocumentList(@RequestBody SearchQueryCondition searchQueryCondition) { public ApiResult getDxDocumentList(@RequestBody SearchQueryCondition searchQueryCondition) {
return ApiResult.ok(extTransferDocumentService.getDxDocumentList(searchQueryCondition)); return ApiResult.ok(extTransferDocumentService.getDxDocumentList(searchQueryCondition));
} }
@ApiOperation(value = "移交单下文件清单退档", notes = "移交单下文件清单退档")
@GetMapping(value = "/returnDocument")
public ApiResult returnDocument(@RequestParam("id") Long id,
@RequestParam("docId") Long docId) {
extTransferDocumentService.returnDocument(id, docId);
return ApiResult.ok(ApiResult.SUCCESS, "退档成功");
}
} }
...@@ -28,4 +28,12 @@ public interface ExtFilesService<V extends ExtFilesVO> extends ExtFilesServiceSh ...@@ -28,4 +28,12 @@ public interface ExtFilesService<V extends ExtFilesVO> extends ExtFilesServiceSh
* @return * @return
*/ */
List<ExtFilesVO> findRecursionByVolumeNumber(String volumeNumber); List<ExtFilesVO> findRecursionByVolumeNumber(String volumeNumber);
/**
* 根据项目代号查询所有案卷
*
* @param projectCode
* @return
*/
List<ExtFilesVO> getExtFilesByProjectCode(Long projectCode);
} }
...@@ -32,4 +32,6 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext ...@@ -32,4 +32,6 @@ public interface ExtTransferDocumentService<V extends ExtTransferDocumentVO> ext
LocalDateTime getEndDate(List<DxWfProcessTaskVO> activities, String activityName); LocalDateTime getEndDate(List<DxWfProcessTaskVO> activities, String activityName);
void updateArchivingStatus(Long id); void updateArchivingStatus(Long id);
void returnDocument(Long id, Long docId);
} }
...@@ -112,6 +112,24 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic ...@@ -112,6 +112,24 @@ public class ExtFilesServiceImpl<V extends ExtFilesVO> implements ExtFilesServic
return (List<ExtFilesVO>) this.findRecursion(queryDoc).getContent(); return (List<ExtFilesVO>) this.findRecursion(queryDoc).getContent();
} }
@Override
public List<ExtFilesVO> getExtFilesByProjectCode(Long projectCode) {
SearchQueryCondition searchProgram = SearchUtil.buildQuery("number", SearchItem.Operator.EQ, projectCode);
DxPageImpl programDxPage = extDxContextProjectServiceFeign.findRecursion(searchProgram);
DxContextProjectVO dxContextProjectVO = (DxContextProjectVO) programDxPage.getContent().get(0);
String volumeNumber = "-" + dxContextProjectVO.getNumber() + "-";
SearchQueryCondition queryDoc = SearchQueryCondition.builder()
.searchItems(SearchItems.builder()
.item(new SearchItem("volumeNumber", SearchItem.Operator.LIKE, volumeNumber, null))
.item(new SearchItem("latest", SearchItem.Operator.EQ, true, null))
.item(new SearchItem("checkOuted", SearchItem.Operator.EQ, true, null))
.operator(SearchItems.BooleanOperator.AND).build()).build();
List<ExtFilesVO> content = (List<ExtFilesVO>) this.findRecursion(queryDoc).getContent();
return content;
}
private String getProjectCodeAndNumber(DxContextProjectVO dxContextProjectVO) { private String getProjectCodeAndNumber(DxContextProjectVO dxContextProjectVO) {
boolean projectClass = false; boolean projectClass = false;
// 项目群上的合同编号 // 项目群上的合同编号
......
...@@ -210,6 +210,11 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp ...@@ -210,6 +210,11 @@ public class ExtTransferDocumentServiceImpl<V extends ExtTransferDocumentVO> imp
} }
} }
@Override
public void returnDocument(Long id, Long docId) {
}
@Override @Override
public DxUserInfoVO getSignInfo(List<DxWfProcessTaskVO> activities, String activityName) { public DxUserInfoVO getSignInfo(List<DxWfProcessTaskVO> activities, String activityName) {
for (DxWfProcessTaskVO wf : activities) { for (DxWfProcessTaskVO wf : activities) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment