Merge branch 'master-jdk17' of https://gitee.com/zhijiantianya/ruoyi-vue-pro
# Conflicts: # yudao-framework/yudao-spring-boot-starter-mybatis/src/main/java/cn/iocoder/yudao/framework/mybatis/core/util/MyBatisUtils.java
This commit is contained in:
commit
8e4ba25e84
|
@ -36,8 +36,9 @@ public class MyBatisUtils {
|
||||||
Page<T> page = new Page<>(pageParam.getPageNo(), pageParam.getPageSize());
|
Page<T> page = new Page<>(pageParam.getPageNo(), pageParam.getPageSize());
|
||||||
// 排序字段
|
// 排序字段
|
||||||
if (!CollectionUtil.isEmpty(sortingFields)) {
|
if (!CollectionUtil.isEmpty(sortingFields)) {
|
||||||
page.addOrder(sortingFields.stream().map(sortingField -> SortingField.ORDER_ASC.equals(sortingField.getOrder()) ?
|
page.addOrder(sortingFields.stream().map(sortingField -> SortingField.ORDER_ASC.equals(sortingField.getOrder())
|
||||||
OrderItem.asc(StrUtil.toUnderlineCase(sortingField.getField())) : OrderItem.desc(StrUtil.toUnderlineCase(sortingField.getField())))
|
? OrderItem.asc(StrUtil.toUnderlineCase(sortingField.getField()))
|
||||||
|
: OrderItem.desc(StrUtil.toUnderlineCase(sortingField.getField())))
|
||||||
.collect(Collectors.toList()));
|
.collect(Collectors.toList()));
|
||||||
}
|
}
|
||||||
return page;
|
return page;
|
||||||
|
|
|
@ -17,7 +17,7 @@ public abstract class AbstractSliderDesensitizationHandler<T extends Annotation>
|
||||||
public String desensitize(String origin, T annotation) {
|
public String desensitize(String origin, T annotation) {
|
||||||
// 1. 判断是否禁用脱敏
|
// 1. 判断是否禁用脱敏
|
||||||
Object disable = SpringExpressionUtils.parseExpression(getDisable(annotation));
|
Object disable = SpringExpressionUtils.parseExpression(getDisable(annotation));
|
||||||
if (Boolean.FALSE.equals(disable)) {
|
if (Boolean.TRUE.equals(disable)) {
|
||||||
return origin;
|
return origin;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,7 @@ public class TradePriceServiceImpl implements TradePriceService {
|
||||||
List<ProductSkuRespDTO> skuList = spuIdAndSkuListMap.get(spuId);
|
List<ProductSkuRespDTO> skuList = spuIdAndSkuListMap.get(spuId);
|
||||||
List<AppTradeProductSettlementRespVO.Sku> skuVOList = convertList(skuList, sku -> {
|
List<AppTradeProductSettlementRespVO.Sku> skuVOList = convertList(skuList, sku -> {
|
||||||
AppTradeProductSettlementRespVO.Sku skuVO = new AppTradeProductSettlementRespVO.Sku()
|
AppTradeProductSettlementRespVO.Sku skuVO = new AppTradeProductSettlementRespVO.Sku()
|
||||||
.setId(sku.getId()).setPromotionPrice(sku.getPrice());
|
.setId(sku.getId());
|
||||||
TradePriceCalculateRespBO.OrderItem orderItem = new TradePriceCalculateRespBO.OrderItem()
|
TradePriceCalculateRespBO.OrderItem orderItem = new TradePriceCalculateRespBO.OrderItem()
|
||||||
.setPayPrice(sku.getPrice()).setCount(1);
|
.setPayPrice(sku.getPrice()).setCount(1);
|
||||||
// 计算限时折扣的优惠价格
|
// 计算限时折扣的优惠价格
|
||||||
|
|
Loading…
Reference in New Issue