积分列表添加返回积分字段
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
@ -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()));
|
||||
|
||||
|
@ -153,4 +153,8 @@ public class YxStoreProductQueryVo implements Serializable {
|
||||
@ApiModelProperty(value = "是否开启积分兑换")
|
||||
private Integer isIntegral;
|
||||
|
||||
/** 需要多少积分*/
|
||||
@ApiModelProperty(value = "需要多少积分")
|
||||
private Integer integral;
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user