Commit 1161af17 by HlQ

[add] 服务列表等相关查询时不经过 JsonbTypeHandler 处理

1 parent 88bacf3d
......@@ -12,7 +12,7 @@ import java.time.LocalDateTime;
*/
@Getter
@Setter
@TableName(value = "mr_agent_service", autoResultMap = true)
@TableName(value = "mr_agent_service")
public class RAgentService {
@TableId(value = "id", type = IdType.AUTO)
......
......@@ -14,7 +14,7 @@ import java.time.LocalDateTime;
*/
@Getter
@Setter
@TableName(value = "m_service", autoResultMap = true)
@TableName(value = "m_service")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class ServiceInfo extends BaseDTO {
@TableId(value = "id", type = IdType.AUTO)
......
......@@ -150,6 +150,9 @@ public class AgentServiceImpl extends MPJBaseServiceImpl<AgentMapper, Agent> imp
.selectAs(ServiceInfo::getType, ServiceInfo::getType)
.selectAs(RAgentService::getUrl, ServiceInfo::getUrl)
.selectAs(RAgentService::getMethod, ServiceInfo::getMethod)
.select("t1.req_headers as reqHeaders")
.select("t1.req_body as reqBody")
.selectAs(RAgentService::getResBody, ServiceInfo::getResBody)
.selectAs(RAgentService::getUsername, ServiceInfo::getUsername)
.selectAs(RAgentService::getPassword, ServiceInfo::getPassword)
.selectAs(ServiceInfo::getDescription, ServiceInfo::getDescription)
......@@ -184,6 +187,9 @@ public class AgentServiceImpl extends MPJBaseServiceImpl<AgentMapper, Agent> imp
rAgentService.setServiceUid(s.getUid());
rAgentService.setUrl(s.getUrl());
rAgentService.setMethod(s.getMethod());
rAgentService.setReqHeaders(s.getReqHeaders());
rAgentService.setReqBody(s.getReqBody());
rAgentService.setResBody(s.getResBody());
rAgentService.setUsername(s.getUsername());
rAgentService.setPassword(s.getPassword());
return rAgentService;
......@@ -213,6 +219,9 @@ public class AgentServiceImpl extends MPJBaseServiceImpl<AgentMapper, Agent> imp
.selectAs(ServiceInfo::getType, ServiceInfo::getType)
.selectAs(RAgentService::getUrl, ServiceInfo::getUrl)
.selectAs(RAgentService::getMethod, ServiceInfo::getMethod)
.select("t1.req_headers as reqHeaders")
.select("t1.req_body as reqBody")
.selectAs(RAgentService::getResBody, ServiceInfo::getResBody)
.selectAs(RAgentService::getUsername, ServiceInfo::getUsername)
.selectAs(RAgentService::getPassword, ServiceInfo::getPassword)
.leftJoin(RAgentService.class, RAgentService::getServiceUid, ServiceInfo::getUid)
......@@ -297,6 +306,9 @@ public class AgentServiceImpl extends MPJBaseServiceImpl<AgentMapper, Agent> imp
.selectAs(ServiceInfo::getType, ServiceInfo::getType)
.selectAs(RAgentService::getUrl, ServiceInfo::getUrl)
.selectAs(RAgentService::getMethod, ServiceInfo::getMethod)
.select("t1.req_headers as reqHeaders")
.select("t1.req_body as reqBody")
.selectAs(RAgentService::getResBody, ServiceInfo::getResBody)
.selectAs(RAgentService::getUsername, ServiceInfo::getUsername)
.selectAs(RAgentService::getPassword, ServiceInfo::getPassword)
.leftJoin(RAgentService.class, RAgentService::getServiceUid, ServiceInfo::getUid)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!