YYC
2026-03-02 df8646d27148573510e6c0ab0230a09133df1454
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
package com.fzzy.igds.api.v1.service;
 
import com.fzzy.igds.api.v1.data.ApiV1Req;
import com.fzzy.igds.api.v1.data.ApiV1Resp;
import com.fzzy.igds.domain.GatewaySer;
import com.fzzy.igds.domain.SnapConf;
import com.fzzy.igds.service.SnapConfService;
import com.alibaba.fastjson.JSONObject;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
import java.util.List;
 
/**
 * @Description 抓拍配置解析
 * @Author CZT
 * @Date 2026/1/7 11:03
 */
@Slf4j
@Component
public class ApiV1Service3020 {
 
    @Resource
    private SnapConfService snapConfService;
 
    /**
     *
     * @param req
     * @param gatewaySer
     * @return
     */
    public ApiV1Resp<Object> analysis(ApiV1Req<Object> req, GatewaySer gatewaySer) {
 
        //获取库区下所有抓拍配置
        List<SnapConf> list = snapConfService.selectList(gatewaySer.getDeptId());
 
        if(null == list || list.isEmpty()){
            return ApiV1Resp.error("未获取到抓拍配置信息!", req);
        }
        log.info("质押监管接口V1,3020接口解析完成={}", req);
        return ApiV1Resp.success(list, req);
 
    }
 
}