Selaa lähdekoodia

图书馆、自然资源(不动产) 日志改造

wangzhe 2 vuotta sitten
vanhempi
commit
9b59867c9a

+ 92 - 4
test-api/src/main/java/com/sooka/service/impl/Guiji_Library_ServiceImpl.java

@@ -3,6 +3,7 @@ package com.sooka.service.impl;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
+import com.sooka.base.BaseApi;
 import com.sooka.base.BaseGuijiBean;
 import com.sooka.base.BaseService;
 import com.sooka.mapper.Guiji_Library_Mapper;
@@ -11,10 +12,13 @@ import com.sooka.model.ResultModel;
 import com.sooka.model.bo.*;
 import com.sooka.service.Guiji_Library_Service;
 
+import com.sooka.utils.HttpUtil;
 import org.springframework.stereotype.Service;
 
 import javax.annotation.Resource;
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 import java.util.UUID;
 
 @Service
@@ -28,6 +32,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel add_guiji_library_baseinfo(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "5dc355e3-7ffb-4fc7-ba7c-ad5652d464b4");
+        log.put("interfaceinfoName", "归集-市文旅(图书馆)-人员基本信息");
         try {
             Guiji_library_baseinfo_Bean bean = new Guiji_library_baseinfo_Bean();
             initBaseGuijiBean(str,bean);
@@ -67,6 +76,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
             r.setCode(99999);
             r.setMessage("失败");
             e.printStackTrace();
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -74,6 +89,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel add_guiji_library_borrow(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "aa6b101e-25f3-423f-91d0-dcfde54894dc");
+        log.put("interfaceinfoName", "归集-市文旅(图书馆)-借书信息");
         try {
             Guiji_library_borrow_Bean bean = new Guiji_library_borrow_Bean();
             JSONObject jsonObject = JSON.parseObject(str);
@@ -105,6 +125,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
 
@@ -113,6 +139,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel add_guiji_library_give(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "1478cf99-4438-440e-9f2b-0e56a078f29c");
+        log.put("interfaceinfoName", "归集-市文旅(图书馆)-还书信息");
         try {
             Guiji_library_give_Bean bean = new Guiji_library_give_Bean();
             JSONObject jsonObject = JSON.parseObject(str);
@@ -144,6 +175,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -151,6 +188,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel add_creditpoints(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "2d4e3979-7daf-4405-b961-d2f3a22b635e");
+        log.put("interfaceinfoName", "归集-市文旅(图书馆)-信用积分");
         try {
             Guiji_library_creditpoints_Bean bean = new Guiji_library_creditpoints_Bean();
             JSONObject jsonObject = JSON.parseObject(str);
@@ -185,6 +227,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -195,6 +243,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel select_guiji_library_baseinfo(Guiji_library_baseinfo_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "a2044c83-4dc1-43c1-b1fc-4936534ed9ce");
+        log.put("interfaceinfoName", "共享(上报)-市文旅局(图书馆)-基本信息查询");
         try{
             if(bean.getName() == null){
                 r.setCode(99999);
@@ -207,9 +260,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
             }
         }catch(Exception e){
             e.printStackTrace();
-            e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -217,6 +275,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel select_guiji_library_borrow(Guiji_library_borrow_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "9c7ffbdf-56e6-40d1-9bf9-6483ca843774");
+        log.put("interfaceinfoName", "共享(上报)-市文旅(图书馆)-借书信息查询");
         try{
             if(bean.getName()== null && bean.getBarcode() == null){
                 r.setCode(99999);
@@ -230,9 +293,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
 
         }catch(Exception e){
             e.printStackTrace();
-            e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -240,6 +308,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel select_guiji_library_give(Guiji_library_give_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "93ad1eef-61cc-4a46-b97a-c2f05cec9426");
+        log.put("interfaceinfoName", "共享(上报)-市文旅(图书馆)-还书信息查询");
         try{
             if(bean.getName() == null && bean.getBarcode() == null){
                 r.setCode(99999);
@@ -253,9 +326,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
 
         }catch(Exception e){
             e.printStackTrace();
-            e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -263,6 +341,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
     @Override
     public ResultModel select_guiji_library_creditpoints(Guiji_library_creditpoints_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "8bf0954b-b77b-4d85-b352-4a6ec4a54d95");
+        log.put("interfaceinfoName", "共享(上报)-市文旅(图书馆)-信用分查询");
         try{
             if(bean.getCardno() == null && bean.getName() == null){
                 r.setCode(99999);
@@ -275,9 +358,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
             }
         }catch(Exception e){
             e.printStackTrace();
-            e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }

+ 70 - 0
test-api/src/main/java/com/sooka/service/impl/Guiji_naturalresources_ServiceImpl.java

@@ -3,6 +3,7 @@ package com.sooka.service.impl;
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
 import com.google.gson.annotations.Expose;
+import com.sooka.base.BaseApi;
 import com.sooka.base.BaseService;
 import com.sooka.mapper.Guiji_naturalresources_Mapper;
 import com.sooka.mapper.Guiji_naturalresources_Mapper2;
@@ -11,10 +12,13 @@ import com.sooka.model.bo.Guiji_naturalresources_bdcdjxx_Bean;
 import com.sooka.model.bo.Guiji_naturalresources_bdcdjzxx_Bean;
 import com.sooka.model.bo.Guiji_naturalresources_qlrjbxx_Bean;
 import com.sooka.service.Guiji_naturalresources_Service;
+import com.sooka.utils.HttpUtil;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
 
+import java.util.HashMap;
 import java.util.List;
+import java.util.Map;
 
 @Service
 public class Guiji_naturalresources_ServiceImpl extends BaseService implements Guiji_naturalresources_Service {
@@ -28,6 +32,11 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
     @Override
     public ResultModel add_guiji_naturalresources_qlrjbxx(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "1de6752d-19c2-4010-9b61-9450a9d718b6");
+        log.put("interfaceinfoName", "归集-市自然资源(不动产)-权利人基本信息");
         try {
             Guiji_naturalresources_qlrjbxx_Bean bean = new Guiji_naturalresources_qlrjbxx_Bean();
             JSONObject jsonObject = JSON.parseObject(str);
@@ -82,6 +91,12 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -89,6 +104,11 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
     @Override
     public ResultModel add_guiji_naturalresources_bdcdjxx(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "672238a3-3687-433c-888e-5db0c81eb8a8");
+        log.put("interfaceinfoName", "归集-市自然资源(不动产)-个人基本信息");
         try {
             Guiji_naturalresources_bdcdjxx_Bean bean = new Guiji_naturalresources_bdcdjxx_Bean();
             JSONObject jsonObject = JSON.parseObject(str);
@@ -149,6 +169,12 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -156,6 +182,11 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
     @Override
     public ResultModel add_guiji_naturalresources_bdcdjzxx(String str) {
         ResultModel r = new ResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
+        log.put("interfaceinfoId", "1543eb98-ba23-45f2-9883-1aac4c4d0c18");
+        log.put("interfaceinfoName", "归集-市自然资源(不动产)-不动产登记征信息");
         try {
             Guiji_naturalresources_bdcdjzxx_Bean bean = new Guiji_naturalresources_bdcdjzxx_Bean();
             JSONObject jsonObject = JSON.parseObject(str);
@@ -221,6 +252,12 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", str);
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -231,6 +268,11 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
     @Override
     public ResultModel qlrjbxx_select(Guiji_naturalresources_qlrjbxx_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "cf136708-f81a-4b56-81c2-458cca6c514d");
+        log.put("interfaceinfoName", "共享(市)-市自然资源(不动产)-权利人基本信息");
         try {
             if (bean.getQLRXZ().equals("其他") && bean.getQLRMC() == null) {
                 r.setCode(99999);
@@ -250,6 +292,12 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -257,6 +305,11 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
     @Override
     public ResultModel bdcdjxx_select(Guiji_naturalresources_bdcdjxx_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "27346269-5887-40dc-b1f8-bcaa7dcae22c");
+        log.put("interfaceinfoName", "共享(市)-市自然资源(不动产)-个人基本信息");
         try {
             if(bean.getDJBH() == null && bean.getFDZL() == null){
                 r.setCode(99999);
@@ -272,6 +325,12 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }
@@ -279,6 +338,11 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
     @Override
     public ResultModel bdcdjzxx_select(Guiji_naturalresources_bdcdjzxx_Bean bean) {
         ResultModel r = getResultModel();
+        Map log = new HashMap();
+        log.put("operationStatus", "1");
+        log.put("platformInterfacetype", "platform_interfacetype_1");//1 共享 2归集
+        log.put("interfaceinfoId", "992e8a15-ec23-472b-9e1d-ad9d3388ed01");
+        log.put("interfaceinfoName", "共享(市)-市自然资源(不动产)-不动产登记征信息");
         try {
             if(bean.getDJBH() == null && bean.getQLRMC() == null){
                 r.setCode(99999);
@@ -294,6 +358,12 @@ public class Guiji_naturalresources_ServiceImpl extends BaseService implements G
             e.printStackTrace();
             r.setCode(99999);
             r.setMessage("失败");
+            log.put("operationStatus", "0");
+            log.put("exceptionLog", e);
+        }finally {
+            log.put("param", bean.toString());
+            log.put("results", r);
+            HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
         }
         return r;
     }