|
@@ -3,6 +3,7 @@ package com.sooka.service.impl;
|
|
|
|
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSON;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
|
+import com.sooka.base.BaseApi;
|
|
import com.sooka.base.BaseGuijiBean;
|
|
import com.sooka.base.BaseGuijiBean;
|
|
import com.sooka.base.BaseService;
|
|
import com.sooka.base.BaseService;
|
|
import com.sooka.mapper.Guiji_Library_Mapper;
|
|
import com.sooka.mapper.Guiji_Library_Mapper;
|
|
@@ -11,10 +12,13 @@ import com.sooka.model.ResultModel;
|
|
import com.sooka.model.bo.*;
|
|
import com.sooka.model.bo.*;
|
|
import com.sooka.service.Guiji_Library_Service;
|
|
import com.sooka.service.Guiji_Library_Service;
|
|
|
|
|
|
|
|
+import com.sooka.utils.HttpUtil;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
import javax.annotation.Resource;
|
|
|
|
+import java.util.HashMap;
|
|
import java.util.List;
|
|
import java.util.List;
|
|
|
|
+import java.util.Map;
|
|
import java.util.UUID;
|
|
import java.util.UUID;
|
|
|
|
|
|
@Service
|
|
@Service
|
|
@@ -28,6 +32,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel add_guiji_library_baseinfo(String str) {
|
|
public ResultModel add_guiji_library_baseinfo(String str) {
|
|
ResultModel r = new ResultModel();
|
|
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 {
|
|
try {
|
|
Guiji_library_baseinfo_Bean bean = new Guiji_library_baseinfo_Bean();
|
|
Guiji_library_baseinfo_Bean bean = new Guiji_library_baseinfo_Bean();
|
|
initBaseGuijiBean(str,bean);
|
|
initBaseGuijiBean(str,bean);
|
|
@@ -67,6 +76,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
r.setMessage("失败");
|
|
e.printStackTrace();
|
|
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;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -74,6 +89,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel add_guiji_library_borrow(String str) {
|
|
public ResultModel add_guiji_library_borrow(String str) {
|
|
ResultModel r = new ResultModel();
|
|
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 {
|
|
try {
|
|
Guiji_library_borrow_Bean bean = new Guiji_library_borrow_Bean();
|
|
Guiji_library_borrow_Bean bean = new Guiji_library_borrow_Bean();
|
|
JSONObject jsonObject = JSON.parseObject(str);
|
|
JSONObject jsonObject = JSON.parseObject(str);
|
|
@@ -105,6 +125,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
|
|
|
|
@@ -113,6 +139,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel add_guiji_library_give(String str) {
|
|
public ResultModel add_guiji_library_give(String str) {
|
|
ResultModel r = new ResultModel();
|
|
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 {
|
|
try {
|
|
Guiji_library_give_Bean bean = new Guiji_library_give_Bean();
|
|
Guiji_library_give_Bean bean = new Guiji_library_give_Bean();
|
|
JSONObject jsonObject = JSON.parseObject(str);
|
|
JSONObject jsonObject = JSON.parseObject(str);
|
|
@@ -144,6 +175,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -151,6 +188,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel add_creditpoints(String str) {
|
|
public ResultModel add_creditpoints(String str) {
|
|
ResultModel r = new ResultModel();
|
|
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 {
|
|
try {
|
|
Guiji_library_creditpoints_Bean bean = new Guiji_library_creditpoints_Bean();
|
|
Guiji_library_creditpoints_Bean bean = new Guiji_library_creditpoints_Bean();
|
|
JSONObject jsonObject = JSON.parseObject(str);
|
|
JSONObject jsonObject = JSON.parseObject(str);
|
|
@@ -185,6 +227,12 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -195,6 +243,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel select_guiji_library_baseinfo(Guiji_library_baseinfo_Bean bean) {
|
|
public ResultModel select_guiji_library_baseinfo(Guiji_library_baseinfo_Bean bean) {
|
|
ResultModel r = getResultModel();
|
|
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{
|
|
try{
|
|
if(bean.getName() == null){
|
|
if(bean.getName() == null){
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
@@ -207,9 +260,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
}
|
|
}
|
|
}catch(Exception e){
|
|
}catch(Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
- e.printStackTrace();
|
|
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -217,6 +275,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel select_guiji_library_borrow(Guiji_library_borrow_Bean bean) {
|
|
public ResultModel select_guiji_library_borrow(Guiji_library_borrow_Bean bean) {
|
|
ResultModel r = getResultModel();
|
|
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{
|
|
try{
|
|
if(bean.getName()== null && bean.getBarcode() == null){
|
|
if(bean.getName()== null && bean.getBarcode() == null){
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
@@ -230,9 +293,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
|
|
|
|
}catch(Exception e){
|
|
}catch(Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
- e.printStackTrace();
|
|
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -240,6 +308,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel select_guiji_library_give(Guiji_library_give_Bean bean) {
|
|
public ResultModel select_guiji_library_give(Guiji_library_give_Bean bean) {
|
|
ResultModel r = getResultModel();
|
|
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{
|
|
try{
|
|
if(bean.getName() == null && bean.getBarcode() == null){
|
|
if(bean.getName() == null && bean.getBarcode() == null){
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
@@ -253,9 +326,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
|
|
|
|
}catch(Exception e){
|
|
}catch(Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
- e.printStackTrace();
|
|
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
}
|
|
}
|
|
@@ -263,6 +341,11 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
@Override
|
|
@Override
|
|
public ResultModel select_guiji_library_creditpoints(Guiji_library_creditpoints_Bean bean) {
|
|
public ResultModel select_guiji_library_creditpoints(Guiji_library_creditpoints_Bean bean) {
|
|
ResultModel r = getResultModel();
|
|
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{
|
|
try{
|
|
if(bean.getCardno() == null && bean.getName() == null){
|
|
if(bean.getCardno() == null && bean.getName() == null){
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
@@ -275,9 +358,14 @@ public class Guiji_Library_ServiceImpl extends BaseService implements Guiji_Libr
|
|
}
|
|
}
|
|
}catch(Exception e){
|
|
}catch(Exception e){
|
|
e.printStackTrace();
|
|
e.printStackTrace();
|
|
- e.printStackTrace();
|
|
|
|
r.setCode(99999);
|
|
r.setCode(99999);
|
|
r.setMessage("失败");
|
|
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;
|
|
return r;
|
|
}
|
|
}
|