|
@@ -1,27 +1,18 @@
|
|
|
package com.sooka.service.impl;
|
|
|
|
|
|
-import com.alibaba.fastjson.JSON;
|
|
|
-import com.alibaba.fastjson.JSONArray;
|
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
+import com.sooka.base.BaseApi;
|
|
|
import com.sooka.base.BaseService;
|
|
|
-import com.sooka.mapper.Guiji_Housingconstruction_Mapper;
|
|
|
-import com.sooka.mapper.Guiji_Housingconstruction_Mapper2;
|
|
|
import com.sooka.mapper.Guiji_Medicine_Mapper;
|
|
|
import com.sooka.mapper.Guiji_Medicine_Mapper2;
|
|
|
import com.sooka.model.ResultModel;
|
|
|
import com.sooka.model.bo.*;
|
|
|
-import com.sooka.service.Guiji_Housingconstruction_Service;
|
|
|
import com.sooka.service.Guiji_Medicine_Service;
|
|
|
-import com.sooka.utils.UnicodeUtil;
|
|
|
-import org.springframework.scheduling.annotation.Scheduled;
|
|
|
+import com.sooka.utils.HttpUtil;
|
|
|
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.UUID;
|
|
|
+import java.util.*;
|
|
|
|
|
|
@Service
|
|
|
public class Guiji_Medicine_ServiceImpl extends BaseService implements Guiji_Medicine_Service {
|
|
@@ -35,7 +26,12 @@ public class Guiji_Medicine_ServiceImpl extends BaseService implements Guiji_Med
|
|
|
@Override
|
|
|
public ResultModel guiji_medicine_dept_data(String str) {
|
|
|
ResultModel r = new ResultModel();
|
|
|
+ Map log = new HashMap();
|
|
|
try {
|
|
|
+ log.put("operationStatus", "1");
|
|
|
+ log.put("interfaceinfoId", "4af02f5e-a641-4b0d-aa0a-7d0a22ea3102");
|
|
|
+ log.put("interfaceinfoName", "归集-市医药-种植采集数");
|
|
|
+
|
|
|
Guiji_medicine_dept_data_Bean bean = new Guiji_medicine_dept_data_Bean();
|
|
|
initBaseGuijiBean(str, bean);
|
|
|
|
|
@@ -62,10 +58,15 @@ public class Guiji_Medicine_ServiceImpl extends BaseService implements Guiji_Med
|
|
|
r.setCode(0);
|
|
|
r.setMessage("成功");
|
|
|
} catch (Exception e) {
|
|
|
+ log.put("operationStatus", "0");
|
|
|
+ log.put("exceptionLog", e);
|
|
|
e.printStackTrace();
|
|
|
r.setCode(99999);
|
|
|
r.setMessage("失败");
|
|
|
-
|
|
|
+ } finally {
|
|
|
+ log.put("param", str);
|
|
|
+ log.put("results", r);
|
|
|
+ HttpUtil.doPost(BaseApi.manager_url + "/system/interfaceLog/addLog", JSONObject.toJSONString(log), null);
|
|
|
}
|
|
|
return r;
|
|
|
}
|