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}