From bdd2591534c031f421ac29a1e6d026ef2a05a99f Mon Sep 17 00:00:00 2001 From: chaiyapeng <3535863041@qq.com> Date: Sun, 1 Sep 2024 10:59:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8E=A5=E5=8F=A3=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/muyu/domain/Connector.java | 16 ++++++++++++---- .../main/resources/mapper/ConnectorMappers.xml | 2 +- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/cloud-mart-common/src/main/java/com/muyu/domain/Connector.java b/cloud-mart-common/src/main/java/com/muyu/domain/Connector.java index 11e8647..16badc8 100644 --- a/cloud-mart-common/src/main/java/com/muyu/domain/Connector.java +++ b/cloud-mart-common/src/main/java/com/muyu/domain/Connector.java @@ -46,10 +46,6 @@ public class Connector { @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date connectorTime; - /** - * 价格 - */ - private BigDecimal connectorPrice; /** * 剩余次数 */ @@ -58,6 +54,18 @@ public class Connector { * 购买次数 */ private Integer connectorFrequency; + /** + * API_URL + */ + private String connectorApiurl; + /** + * API_EYE + */ + private String connectorApikey; + /** + * 请求方式 + */ + private String connectorRequest; /** * 状态 */ diff --git a/cloud-mart-server/src/main/resources/mapper/ConnectorMappers.xml b/cloud-mart-server/src/main/resources/mapper/ConnectorMappers.xml index 8f44547..0403845 100644 --- a/cloud-mart-server/src/main/resources/mapper/ConnectorMappers.xml +++ b/cloud-mart-server/src/main/resources/mapper/ConnectorMappers.xml @@ -4,7 +4,7 @@ "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> - update connector set connector_name=#{connectorName},connector_sort=#{connectorSort},connector_describe=#{connectorDescribe},connector_picture=#{connectorPicture},connector_company=#{connectorCompany},connector_time=#{connectorTime},connector_residue_degree=#{connectorResidueDegree},connector_frequency=#{connectorFrequency},connector_status=#{connectorStatus} where connector_id=#{connectorId} + update connector set connector_name=#{connectorName},connector_sort=#{connectorSort},connector_describe=#{connectorDescribe},connector_picture=#{connectorPicture},connector_company=#{connectorCompany},connector_time=#{connectorTime},connector_residue_degree=#{connectorResidueDegree},connector_frequency=#{connectorFrequency},connector_status=#{connectorStatus},connector_apiurl=#{connectorApiurl},connector_apikey=#{connectorApikey},connector_request=#{connectorRequest} where connector_id=#{connectorId} delete from connector where connector_id=#{connectorId}