|
@@ -2,6 +2,7 @@ package com.sooka.service.impl;
|
|
|
|
|
|
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_Healthcommission_Mapper;
|
|
|
import com.sooka.mapper.Guiji_Healthcommission_Mapper2;
|
|
@@ -10,14 +11,13 @@ import com.sooka.model.bo.Guiji_healthcommission_tjxx_Bean;
|
|
|
import com.sooka.model.bo.Guiji_healthcommission_xx_Bean;
|
|
|
import com.sooka.model.bo.Guiji_healthcommission_yyryxx_Bean;
|
|
|
import com.sooka.service.Guiji_healthcommission_Service;
|
|
|
+import com.sooka.utils.HttpUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
|
import javax.annotation.Resource;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
-import java.util.Calendar;
|
|
|
-import java.util.Date;
|
|
|
-import java.util.List;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@Service
|
|
|
public class Guiji_healthcommission_ServiceImpl extends BaseService implements Guiji_healthcommission_Service {
|
|
@@ -31,6 +31,11 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
@Override
|
|
|
public ResultModel add_guiji_healthcommission_xx(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", "ba4bb56b-ad60-4ca0-8dd8-7385ce719159");
|
|
|
+ log.put("interfaceinfoName", "归集-市卫建委(血站)-献血者信息");
|
|
|
try {
|
|
|
Guiji_healthcommission_xx_Bean bean = new Guiji_healthcommission_xx_Bean();
|
|
|
initBaseGuijiBean(str, bean);
|
|
@@ -74,6 +79,12 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
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;
|
|
|
}
|
|
@@ -81,6 +92,11 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
@Override
|
|
|
public ResultModel add_guiji_healthcommission_yyryxx(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", "23ede941-c39b-48fb-a860-0bf23d5b5f61");
|
|
|
+ log.put("interfaceinfoName", "归集-市卫建委(体检)-预约人员信息");
|
|
|
try {
|
|
|
Guiji_healthcommission_yyryxx_Bean bean = new Guiji_healthcommission_yyryxx_Bean();
|
|
|
initBaseGuijiBean(str, bean);
|
|
@@ -116,6 +132,12 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
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;
|
|
|
}
|
|
@@ -124,6 +146,11 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
public ResultModel add_guiji_healthcommission_tjxx(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", "00c7a248-8faf-4c65-a9b2-6aaf5fe541d8");
|
|
|
+ log.put("interfaceinfoName", "归集-市卫建委(体检)-体检信息表");
|
|
|
try {
|
|
|
Guiji_healthcommission_tjxx_Bean bean = new Guiji_healthcommission_tjxx_Bean();
|
|
|
initBaseGuijiBean(str, bean);
|
|
@@ -204,8 +231,13 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
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;
|
|
|
}
|
|
|
|
|
@@ -214,6 +246,11 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
@Override
|
|
|
public ResultModel select_guiji_healthcommission_xx(Guiji_healthcommission_xx_Bean bean) {
|
|
|
ResultModel r = getResultModel();
|
|
|
+ Map log = new HashMap();
|
|
|
+ log.put("operationStatus", "1");
|
|
|
+ log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
|
|
|
+ log.put("interfaceinfoId", "485efd9c-330a-4a11-9f84-c51e2234dd04");
|
|
|
+ log.put("interfaceinfoName", "共享(市)-市卫建委(血站)-献血者信息");
|
|
|
try {
|
|
|
if (bean.getName() == null || bean.getIDCardNum() == null) {
|
|
|
r.setCode(99999);
|
|
@@ -229,6 +266,12 @@ public class Guiji_healthcommission_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;
|
|
|
}
|
|
@@ -236,6 +279,11 @@ public class Guiji_healthcommission_ServiceImpl extends BaseService implements G
|
|
|
@Override
|
|
|
public ResultModel select_guiji_healthcommission_tjxx(Guiji_healthcommission_tjxx_Bean bean) {
|
|
|
ResultModel r = getResultModel();
|
|
|
+ Map log = new HashMap();
|
|
|
+ log.put("operationStatus", "1");
|
|
|
+ log.put("platformInterfacetype", "platform_interfacetype_2");//1 共享 2归集
|
|
|
+ log.put("interfaceinfoId", "0b315bc2-2eeb-46e7-b952-3df0fa70442c");
|
|
|
+ log.put("interfaceinfoName", "共享(市)-市卫建委(体检)-体检信息表");
|
|
|
try {
|
|
|
if(bean.getUserName()== null || bean.getCardID() == null){
|
|
|
r.setCode(99999);
|
|
@@ -249,6 +297,12 @@ public class Guiji_healthcommission_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;
|
|
|
}
|