积分列表添加返回积分字段

This commit is contained in:
xuwenbo
2021-02-22 17:05:52 +08:00
parent df0aae91eb
commit 0bb8893eff
4 changed files with 9 additions and 8 deletions

View File

@ -6,6 +6,7 @@
package co.yixiang.modules.product.service.dto;
import co.yixiang.modules.category.service.dto.YxStoreCategorySmallDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import java.io.Serializable;
@ -126,5 +127,8 @@ public class YxStoreProductDto implements Serializable {
/** 淘宝京东1688类型 */
private String soureLink;
@ApiModelProperty(value = "是否开启积分兑换")
private Integer isIntegral;
private YxStoreCategorySmallDto storeCategory;
}

View File

@ -548,6 +548,7 @@ public class YxStoreProductServiceImpl extends BaseServiceImpl<StoreProductMappe
yxStoreProduct.setPrice(BigDecimal.valueOf(resultDTO.getMinPrice()));
yxStoreProduct.setOtPrice(BigDecimal.valueOf(resultDTO.getMinOtPrice()));
yxStoreProduct.setCost(BigDecimal.valueOf(resultDTO.getMinCost()));
yxStoreProduct.setIntegral(resultDTO.getMinIntegral());
yxStoreProduct.setStock(resultDTO.getStock());
yxStoreProduct.setSliderImage(String.join(",", storeProductDto.getSliderImage()));

View File

@ -153,4 +153,8 @@ public class YxStoreProductQueryVo implements Serializable {
@ApiModelProperty(value = "是否开启积分兑换")
private Integer isIntegral;
/** 需要多少积分*/
@ApiModelProperty(value = "需要多少积分")
private Integer integral;
}