chengf
2025-07-18 271f0165b4701b63a756afca9d440df8a829ce2f
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
package com.java110.dto.system;
 
import java.io.Serializable;
import java.util.Map;
 
/**
 * 提供服务
 * Created by wuxw on 2018/4/14.
 */
public class AppService implements Serializable{
 
    private String serviceId;
 
    private String serviceCode;
 
    private String businessTypeCd;
 
    private String name;
 
    private int seq;
 
    //消息队里名称 只有异步时有用
    private String messageQueueName;
 
    private String url;
 
    //只有webservice时才有用
    private String method;
 
    private String isInstance;
 
 
 
    private int timeOut;
 
    private int retryCount;
 
    private String statusCd;
 
    public String getServiceId() {
        return serviceId;
    }
 
    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }
 
    public String getServiceCode() {
        return serviceCode;
    }
 
    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }
 
 
    public String getBusinessTypeCd() {
        return businessTypeCd;
    }
 
    public void setBusinessTypeCd(String businessTypeCd) {
        this.businessTypeCd = businessTypeCd;
    }
 
    public String getName() {
        return name;
    }
 
    public void setName(String name) {
        this.name = name;
    }
 
    public int getSeq() {
        return seq;
    }
 
    public void setSeq(int seq) {
        this.seq = seq;
    }
 
    public String getUrl() {
        return url;
    }
 
    public void setUrl(String url) {
        this.url = url;
    }
 
    public String getMethod() {
        return method;
    }
 
    public void setMethod(String method) {
        this.method = method;
    }
 
 
    public int getTimeOut() {
        return timeOut;
    }
 
    public void setTimeOut(int timeOut) {
        this.timeOut = timeOut;
    }
 
    public int getRetryCount() {
        return retryCount;
    }
 
    public void setRetryCount(int retryCount) {
        this.retryCount = retryCount;
    }
 
    public String getStatusCd() {
        return statusCd;
    }
 
    public void setStatusCd(String statusCd) {
        this.statusCd = statusCd;
    }
 
    public String getMessageQueueName() {
        return messageQueueName;
    }
 
    public void setMessageQueueName(String messageQueueName) {
        this.messageQueueName = messageQueueName;
    }
 
    public String getIsInstance() {
        return isInstance;
    }
 
    public void setIsInstance(String isInstance) {
        this.isInstance = isInstance;
    }
 
    public AppService builder(Map serviceInfo){
        this.setBusinessTypeCd(serviceInfo.get("business_type_cd").toString());
        this.setMessageQueueName(serviceInfo.get("messageQueueName") == null ? null :serviceInfo.get("messageQueueName").toString());
        this.setMethod(serviceInfo.get("method")==null ? null:serviceInfo.get("method").toString());
        this.setName(serviceInfo.get("name").toString());
        this.setRetryCount(Integer.parseInt(serviceInfo.get("retry_count").toString()));
        this.setSeq(Integer.parseInt(serviceInfo.get("seq").toString()));
        this.setServiceCode(serviceInfo.get("service_code").toString());
        this.setTimeOut(Integer.parseInt(serviceInfo.get("timeout").toString()));
        this.setUrl(serviceInfo.get("url") == null ? null : serviceInfo.get("url").toString());
        this.setServiceId(serviceInfo.get("service_id").toString());
        this.setIsInstance(serviceInfo.get("is_instance").toString());
        this.setStatusCd("0");
        return this;
    }
 
    public static AppService newInstance(){
        return new AppService();
    }
 
 
}