广州市综治平台后端
xusd
2025-06-07 36306491396230522fa20585c2621a7fc899849a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
package cn.huge.module.byjudic.controller;
 
import cn.huge.base.common.utils.ReturnFailUtils;
import cn.huge.base.common.utils.ReturnSucUtils;
import cn.huge.module.bycase.domain.dto.GZCaseDTO;
import cn.huge.module.byjudic.domain.dto.GZJudicDTO;
import cn.huge.module.byjudic.service.JudicInfoService;
import com.google.common.collect.Maps;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;
 
import javax.servlet.http.HttpServletRequest;
import java.util.List;
import java.util.Map;
 
/**
 * @title: 数据割接-司法确认
 * @description: 数据割接-法确认
 * @company: hugeinfo
 * @author: zhouxt
 * @time: 2024-12-30 11:14:06
 * @version: 1.0.0
 */
@Slf4j
@RestController
@RequestMapping("/api/client/syncJudic")
public class SynJudicController {
    @Autowired(required = false)
    private HttpServletRequest request;
 
    @Autowired
    private JudicInfoService service;
 
    /**
     * 数据割接-已结束的纠纷案件信息
     * @url {ctx}/api/client/syncJudic/byToGzJudic
     * @param page
     * @param size
     * @return
     */
    @GetMapping("/byToGzJudic")
    public Object byToGzJudic(@RequestParam(value = "page") int page, @RequestParam(value = "size") int size) {
        try {
            List<GZJudicDTO> gzJudicDTOList = service.byToGzJudic(page, size);
            return ReturnSucUtils.getRepInfo(gzJudicDTOList);
        } catch (Exception e) {
            log.error("[SynJudicController.byToGzJudic]请求失败,异常信息:"+e, e);
            return ReturnFailUtils.getRepInfo(e.getMessage());
        }
    }
 
    /**
     * 数据割接-统计进行中的纠纷案件信息
     * @url {ctx}/api/client/syncJudic/countJudic
     * @return
     */
    @GetMapping("/countJudic")
    public Object countJudic() {
        try {
            Map<String, Object> terms = Maps.newHashMap();
            terms.put("deleteStatus","1");
            return ReturnSucUtils.getRepInfo(service.countTerms(terms));
        } catch (Exception e) {
            log.error("[SyncCustController.countTodoCase]请求失败,异常信息:"+e, e);
            return ReturnFailUtils.getRepInfo(e.getMessage());
        }
    }
 
}