后台首页新增统计,JPA关联优化,积分抵扣修复
This commit is contained in:
@ -1270,7 +1270,7 @@ public class YxStoreOrderServiceImpl extends BaseServiceImpl<YxStoreOrderMapper,
|
||||
Double integralRatio = Double.valueOf(cacheDTO.getOther().getIntegralRatio());
|
||||
if(totalPrice >= integralFull){
|
||||
Double userIntegral = userInfo.getIntegral().doubleValue();
|
||||
if(userIntegral >= integralMax) userIntegral = integralMax;
|
||||
if(integralMax > 0 && userIntegral >= integralMax) userIntegral = integralMax;
|
||||
deductionPrice = NumberUtil.mul(userIntegral, integralRatio);
|
||||
if(deductionPrice < payPrice){
|
||||
payPrice = NumberUtil.sub(payPrice.doubleValue(),deductionPrice);
|
||||
|
@ -143,7 +143,6 @@ public class StoreProductController extends BaseController {
|
||||
if(!userType.equals(AppFromEnum.ROUNTINE.getValue())) {
|
||||
userType = AppFromEnum.H5.getValue();
|
||||
}
|
||||
from = "app";
|
||||
//app类型
|
||||
if(StrUtil.isNotBlank(from) && AppFromEnum.APP.getValue().equals(from)){
|
||||
String name = id+"_"+uid + "_"+from+"_product_detail_wap.jpg";
|
||||
|
Reference in New Issue
Block a user