From 8a524787c88a9128cc69af890d4181a01aad0e8c Mon Sep 17 00:00:00 2001
From: 吴学文 <wuxuewen@wuxuewendeMacBook-Pro.local>
Date: 星期六, 06 七月 2019 23:09:33 +0800
Subject: [PATCH] 修改代码生成器生成的app 加入user_id 的问题

---
 java110-bean/src/main/java/com/java110/entity/center/AppService.java |   62 ++++++++++++++++++++++--------
 1 files changed, 45 insertions(+), 17 deletions(-)

diff --git a/java110-bean/src/main/java/com/java110/entity/center/AppService.java b/java110-bean/src/main/java/com/java110/entity/center/AppService.java
index 0266a07..527bf36 100644
--- a/java110-bean/src/main/java/com/java110/entity/center/AppService.java
+++ b/java110-bean/src/main/java/com/java110/entity/center/AppService.java
@@ -1,6 +1,7 @@
 package com.java110.entity.center;
 
 import java.io.Serializable;
+import java.util.Map;
 
 /**
  * 鎻愪緵鏈嶅姟
@@ -12,20 +13,23 @@
 
     private String serviceCode;
 
-    private String invokeMethod;
-
     private String businessTypeCd;
 
     private String name;
 
     private int seq;
 
+    //娑堟伅闃熼噷鍚嶇О 鍙湁寮傛鏃舵湁鐢�
+    private String messageQueueName;
+
     private String url;
 
     //鍙湁webservice鏃舵墠鏈夌敤
     private String method;
 
-    private String invokeModel;
+    private String isInstance;
+
+
 
     private int timeOut;
 
@@ -49,13 +53,6 @@
         this.serviceCode = serviceCode;
     }
 
-    public String getInvokeMethod() {
-        return invokeMethod;
-    }
-
-    public void setInvokeMethod(String invokeMethod) {
-        this.invokeMethod = invokeMethod;
-    }
 
     public String getBusinessTypeCd() {
         return businessTypeCd;
@@ -97,13 +94,6 @@
         this.method = method;
     }
 
-    public String getInvokeModel() {
-        return invokeModel;
-    }
-
-    public void setInvokeModel(String invokeModel) {
-        this.invokeModel = invokeModel;
-    }
 
     public int getTimeOut() {
         return timeOut;
@@ -128,4 +118,42 @@
     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(Integer.parseInt(serviceInfo.get("service_id").toString()));
+        this.setIsInstance(serviceInfo.get("is_instance").toString());
+        this.setStatusCd("0");
+        return this;
+    }
+
+    public static AppService newInstance(){
+        return new AppService();
+    }
+
+
 }

--
Gitblit v1.8.0