You've already forked FrameTour-BE
Compare commits
2 Commits
cdd434317f
...
8745cde2fb
Author | SHA1 | Date | |
---|---|---|---|
8745cde2fb | |||
1d5e4562f2 |
@@ -136,8 +136,10 @@ public class OrderBiz {
|
||||
productItem.setPurchaseCount(1);
|
||||
productItem.setScenicId(scenic.getId().toString());
|
||||
calculationRequest.setProducts(Collections.singletonList(productItem));
|
||||
calculationRequest.setUserId(face.getMemberId());
|
||||
calculationRequest.setFaceId(face.getId());
|
||||
if (face != null) {
|
||||
calculationRequest.setUserId(face.getMemberId());
|
||||
}
|
||||
calculationRequest.setFaceId(goodsId);
|
||||
PriceCalculationResult priceCalculationResult = iPriceCalculationService.calculatePrice(calculationRequest);
|
||||
priceObj.setPrice(priceCalculationResult.getFinalAmount());
|
||||
priceObj.setSlashPrice(priceCalculationResult.getOriginalAmount());
|
||||
|
@@ -12,15 +12,5 @@ public class BatchConfigRequest {
|
||||
@JsonProperty("configs")
|
||||
@NotEmpty(message = "配置列表不能为空")
|
||||
@Valid
|
||||
private List<BatchConfigItem> configs;
|
||||
|
||||
@Data
|
||||
public static class BatchConfigItem {
|
||||
@JsonProperty("configKey")
|
||||
@NotEmpty(message = "配置键不能为空")
|
||||
private String configKey;
|
||||
|
||||
@JsonProperty("configValue")
|
||||
private String configValue;
|
||||
}
|
||||
private List<UpdateConfigRequest> configs;
|
||||
}
|
@@ -1,6 +1,7 @@
|
||||
package com.ycwl.basic.integration.scenic.dto.config;
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonProperty;
|
||||
import jakarta.validation.constraints.NotBlank;
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
@@ -10,7 +11,10 @@ public class UpdateConfigRequest {
|
||||
|
||||
@JsonProperty("configValue")
|
||||
private String configValue;
|
||||
|
||||
|
||||
@JsonProperty("configType")
|
||||
private String configType;
|
||||
|
||||
@JsonProperty("description")
|
||||
private String description;
|
||||
}
|
Reference in New Issue
Block a user