java110
2021-12-22 c29e5eba528fd4e811c4e27bee99e5032c6fd54d
java110-bean/src/main/java/com/java110/entity/center/AppService.java
old mode 100644 new mode 100755
@@ -9,7 +9,7 @@
 */
public class AppService implements Serializable{
    private int serviceId;
    private String serviceId;
    private String serviceCode;
@@ -27,7 +27,9 @@
    //只有webservice时才有用
    private String method;
    private String invokeModel;
    private String isInstance;
    private int timeOut;
@@ -35,11 +37,11 @@
    private String statusCd;
    public int getServiceId() {
    public String getServiceId() {
        return serviceId;
    }
    public void setServiceId(int serviceId) {
    public void setServiceId(String serviceId) {
        this.serviceId = serviceId;
    }
@@ -92,13 +94,6 @@
        this.method = method;
    }
    public String getInvokeModel() {
        return invokeModel;
    }
    public void setInvokeModel(String invokeModel) {
        this.invokeModel = invokeModel;
    }
    public int getTimeOut() {
        return timeOut;
@@ -132,9 +127,16 @@
        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.setInvokeModel(serviceInfo.get("invoke_model").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());
@@ -143,7 +145,9 @@
        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(Integer.parseInt(serviceInfo.get("service_id").toString()));
        this.setServiceId(serviceInfo.get("service_id").toString());
        this.setIsInstance(serviceInfo.get("is_instance").toString());
        this.setStatusCd("0");
        return this;
    }