forked from gzzfw/backEnd/gz-dyh

wangwh
2024-10-28 e79d8c8f9679839bf983341fe2cf3212e1bb3001
dyh-service/dyh-sync-bydyh/src/main/java/cn/huge/module/bycase/controller/SyncCaseController.java
@@ -45,7 +45,7 @@
    public Object countEndCase() {
        try {
            Map<String, Object> terms = Maps.newHashMap();
            terms.put("EndProcess", "EndProcess");
            terms.put("endProcess", "endProcess");
            return ReturnSucUtils.getRepInfo(caseInfoService.countTerms(terms));
        } catch (Exception e) {
            log.error("[SyncCustController.countEndCase]请求失败,异常信息:"+e, e);
@@ -71,4 +71,39 @@
        }
    }
    /**
     * 数据割接-统计进行中的纠纷案件信息
     * @url {ctx}/api/client/syncCase/countTodoCase
     * @return
     */
    @GetMapping("/countTodoCase")
    public Object countTodoCase() {
        try {
            Map<String, Object> terms = Maps.newHashMap();
            terms.put("todoProcess", "todoProcess");
            return ReturnSucUtils.getRepInfo(caseInfoService.countTerms(terms));
        } catch (Exception e) {
            log.error("[SyncCustController.countTodoCase]请求失败,异常信息:"+e, e);
            return ReturnFailUtils.getRepInfo(e.getMessage());
        }
    }
    /**
     * 数据割接-进行中的纠纷案件信息
     * @url {ctx}/api/client/syncCase/byToGzTodoCase
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/byToGzTodoCase")
    public Object byToGzTodoCase(@RequestParam(value = "page") int page, @RequestParam(value = "size") int size) {
        try {
            List<GZCaseDTO> gzCaseDTOList = caseInfoService.byToGzTodoCase(page, size);
            return ReturnSucUtils.getRepInfo(gzCaseDTOList);
        } catch (Exception e) {
            log.error("[SyncCustController.byToGzTodoCase]请求失败,异常信息:"+e, e);
            return ReturnFailUtils.getRepInfo(e.getMessage());
        }
    }
}