积分列表添加返回积分字段
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;
|
||||
|
||||
}
|
||||
|
@ -13,7 +13,6 @@ import cn.hutool.core.util.StrUtil;
|
||||
import co.yixiang.api.YshopException;
|
||||
import co.yixiang.constant.ShopConstants;
|
||||
import co.yixiang.constant.SystemConfigConstants;
|
||||
import co.yixiang.dozer.service.IGenerator;
|
||||
import co.yixiang.enums.ShopCommonEnum;
|
||||
import co.yixiang.tools.domain.QiniuContent;
|
||||
import co.yixiang.tools.service.LocalStorageService;
|
||||
@ -24,20 +23,13 @@ import lombok.AllArgsConstructor;
|
||||
import co.yixiang.logging.aop.log.Log;
|
||||
import co.yixiang.modules.canvas.domain.StoreCanvas;
|
||||
import co.yixiang.modules.canvas.service.StoreCanvasService;
|
||||
import co.yixiang.modules.canvas.service.dto.StoreCanvasQueryCriteria;
|
||||
import co.yixiang.modules.canvas.service.dto.StoreCanvasDto;
|
||||
import org.springframework.data.domain.Pageable;
|
||||
import org.springframework.http.HttpStatus;
|
||||
import org.springframework.http.ResponseEntity;
|
||||
import org.springframework.security.access.prepost.PreAuthorize;
|
||||
import org.springframework.validation.annotation.Validated;
|
||||
import org.springframework.web.bind.annotation.*;
|
||||
import io.swagger.annotations.*;
|
||||
import java.io.IOException;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import co.yixiang.domain.PageResult;
|
||||
import org.springframework.web.multipart.MultipartFile;
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user