From 937395744e984ac3a602fde389d5fd2d4b10f224 Mon Sep 17 00:00:00 2001 From: lvleigang <957075182@qq.com> Date: Thu, 17 Oct 2024 10:29:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../application/entity/U8CReturnEntity.java | 58 +++++ .../impl/SysApplicationServiceImpl.java | 208 +++++++++++++----- .../entity/SysMessageManageLogEntity.java | 22 ++ 3 files changed, 227 insertions(+), 61 deletions(-) create mode 100644 service/src/main/java/com/hzya/frame/sysnew/application/entity/U8CReturnEntity.java diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/entity/U8CReturnEntity.java b/service/src/main/java/com/hzya/frame/sysnew/application/entity/U8CReturnEntity.java new file mode 100644 index 00000000..cbe17902 --- /dev/null +++ b/service/src/main/java/com/hzya/frame/sysnew/application/entity/U8CReturnEntity.java @@ -0,0 +1,58 @@ +package com.hzya.frame.sysnew.application.entity; + + +/** + * 应用表(SysApplication)实体类 + * + * @author makejava + * @since 2023-09-22 16:22:18 + */ +public class U8CReturnEntity { + + private String status; + private String data; + private String taskNumber; + private String errorcode; + private String errormsg; + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public String getData() { + return data; + } + + public void setData(String data) { + this.data = data; + } + + public String getTaskNumber() { + return taskNumber; + } + + public void setTaskNumber(String taskNumber) { + this.taskNumber = taskNumber; + } + + public String getErrorcode() { + return errorcode; + } + + public void setErrorcode(String errorcode) { + this.errorcode = errorcode; + } + + public String getErrormsg() { + return errormsg; + } + + public void setErrormsg(String errormsg) { + this.errormsg = errormsg; + } +} + diff --git a/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java b/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java index d7d27103..c90a4621 100644 --- a/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java +++ b/service/src/main/java/com/hzya/frame/sysnew/application/service/impl/SysApplicationServiceImpl.java @@ -73,6 +73,7 @@ import javax.servlet.ServletRequest; import javax.servlet.ServletResponse; import javax.servlet.http.HttpServletRequest; import java.io.IOException; +import java.io.InputStream; import java.lang.reflect.Method; import java.nio.file.Files; import java.nio.file.Path; @@ -1688,10 +1689,18 @@ public class SysApplicationServiceImpl extends BaseService oldheaderMap = ServletUtil.getHeaderMap(request); + logger.info("发送数据3"+(System.currentTimeMillis()-startTime1)); + String oldquerys = request.getQueryString(); //应用key String publicKey = request.getHeader("publicKey"); @@ -1701,8 +1710,11 @@ public class SysApplicationServiceImpl extends BaseService a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); @@ -1791,6 +1810,7 @@ public class SysApplicationServiceImpl extends BaseService a = Arrays.asList(new String[]{"apicode", "appid", "secretkey", "publickey", "x-forwarded-for", "cookie", "x-forwarded-proto", "x-real-ip", "content-length", "accept-language", "host", "content-type", "connection", "cache-control", "accept-encoding", "pragma", "accept", "user-agent"}); //Map headers = new HashMap<>(); //if (receiveApi.getHeaderIn() != null && !"".equals(receiveApi.getHeaderIn())) { @@ -1881,6 +1905,8 @@ public class SysApplicationServiceImpl extends BaseService 0) { for (Method m : methods) { if (null != m) { @@ -1947,16 +1983,30 @@ public class SysApplicationServiceImpl extends BaseService ids; + + private JSONObject returnObject; + private U8CReturnEntity u8CReturnEntity; + public String getReturnType() { return returnType; } @@ -196,5 +202,21 @@ public class SysMessageManageLogEntity extends BaseEntity { public void setCreateTimeEnd(Date createTimeEnd) { this.createTimeEnd = createTimeEnd; } + + public JSONObject getReturnObject() { + return returnObject; + } + + public void setReturnObject(JSONObject returnObject) { + this.returnObject = returnObject; + } + + public U8CReturnEntity getU8CReturnEntity() { + return u8CReturnEntity; + } + + public void setU8CReturnEntity(U8CReturnEntity u8CReturnEntity) { + this.u8CReturnEntity = u8CReturnEntity; + } }