From bbb099f6458519198aa0dd300839632b5bb10171 Mon Sep 17 00:00:00 2001 From: Derran Date: Tue, 8 Oct 2024 11:45:14 +0800 Subject: [PATCH] =?UTF-8?q?=E6=82=AC=E8=B5=8F=E6=8B=9B=E4=BA=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../product/user/response/UserPageProductByMatchmakerVo.java | 3 +++ .../mapper/product/WalletAccountAssociateOrderRecordDao.xml | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/product/user/response/UserPageProductByMatchmakerVo.java b/dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/product/user/response/UserPageProductByMatchmakerVo.java index 34bf38e..3f3a3cb 100644 --- a/dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/product/user/response/UserPageProductByMatchmakerVo.java +++ b/dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/product/user/response/UserPageProductByMatchmakerVo.java @@ -42,4 +42,7 @@ public class UserPageProductByMatchmakerVo { @ApiModelProperty("售价") private BigDecimal unitSellingPrice; + @ApiModelProperty("有效期天") + private String validityPeriodDays; + } diff --git a/dating-agency-mall-server/src/main/resources/mapper/product/WalletAccountAssociateOrderRecordDao.xml b/dating-agency-mall-server/src/main/resources/mapper/product/WalletAccountAssociateOrderRecordDao.xml index 9d6403a..ed72c16 100644 --- a/dating-agency-mall-server/src/main/resources/mapper/product/WalletAccountAssociateOrderRecordDao.xml +++ b/dating-agency-mall-server/src/main/resources/mapper/product/WalletAccountAssociateOrderRecordDao.xml @@ -145,9 +145,11 @@ dp.product_desc, dp.detail_desc, dps.unit_original_price, - dps.unit_selling_price + dps.unit_selling_price, + dpst2.`value` as validityPeriodDays from da_product as dp LEFT JOIN da_product_spec as dps on dps.is_delete=0 and dps.product_id=dp.id + LEFT JOIN da_product_spec_term as dpst2 on dpst2.is_delete=0 and dpst2.product_spec_id =dps.id and dpst2.`name`=3 where dp.is_delete=0 and dp.`status`=1 and dp.product_type=3 AND dp.sub_category = #{queryParam.subCategory}