Browse Source

基础配置

master
张彭杰 1 year ago
parent
commit
ba4fc2d37f
2 changed files with 3 additions and 3 deletions
  1. 4
      dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/product/user/response/UserGetMatchmakerFranchiseInfoVo.java
  2. 2
      dating-agency-mall-server/src/main/java/com/qniao/dam/query/product/impl/ProductQueryServiceImpl.java

4
dating-agency-mall-server/src/main/java/com/qniao/dam/api/query/product/user/response/UserGetMatchmakerFranchiseInfoVo.java

@ -8,8 +8,8 @@ import java.math.BigDecimal;
@Data @Data
public class UserGetMatchmakerFranchiseInfoVo { public class UserGetMatchmakerFranchiseInfoVo {
@ApiModelProperty("售价")
private BigDecimal unitSellingPrice;
@ApiModelProperty("加盟费")
private BigDecimal franchiseAmount;
@ApiModelProperty("服务") @ApiModelProperty("服务")
private String servicePhone; private String servicePhone;

2
dating-agency-mall-server/src/main/java/com/qniao/dam/query/product/impl/ProductQueryServiceImpl.java

@ -120,7 +120,7 @@ public class ProductQueryServiceImpl implements ProductQueryService {
if (Objects.nonNull(product)) { if (Objects.nonNull(product)) {
List<ProductSpec> productSpecList = listProductSpecBy(product.getId()); List<ProductSpec> productSpecList = listProductSpecBy(product.getId());
if (CollUtil.isNotEmpty(productSpecList)) { if (CollUtil.isNotEmpty(productSpecList)) {
infoVo.setUnitSellingPrice(productSpecList.get(0).getUnitSellingPrice());
infoVo.setFranchiseAmount(productSpecList.get(0).getUnitSellingPrice());
} }
} }
return infoVo; return infoVo;

Loading…
Cancel
Save