积分商品,砍价商品结算单错误问题
This commit is contained in:
parent
47ad388f7d
commit
230a8810ef
@ -25,11 +25,20 @@ spring:
|
|||||||
admin:
|
admin:
|
||||||
client:
|
client:
|
||||||
url: http://192.168.0.116:8000
|
url: http://192.168.0.116:8000
|
||||||
|
# mongodb
|
||||||
|
data:
|
||||||
|
mongodb:
|
||||||
|
uri: 192.168.0.116:27017
|
||||||
|
database: lilishop
|
||||||
|
username: root
|
||||||
|
password: lilishop
|
||||||
|
authentication-database: admin
|
||||||
|
# replica-set-name: mongoreplset
|
||||||
cache:
|
cache:
|
||||||
type: redis
|
type: redis
|
||||||
# Redis
|
# Redis
|
||||||
redis:
|
redis:
|
||||||
host: 192.168.0.116
|
host: 101.43.251.145
|
||||||
port: 6379
|
port: 6379
|
||||||
password: lilishop
|
password: lilishop
|
||||||
lettuce:
|
lettuce:
|
||||||
@ -60,7 +69,7 @@ spring:
|
|||||||
default-datasource:
|
default-datasource:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driverClassName: com.mysql.cj.jdbc.Driver
|
driverClassName: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://192.168.0.116:3306/lilishop?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
url: jdbc:mysql://101.43.251.145:3306/zhimai1?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
|
||||||
username: root
|
username: root
|
||||||
password: lilishop
|
password: lilishop
|
||||||
maxActive: 50
|
maxActive: 50
|
||||||
@ -154,6 +163,8 @@ ignored:
|
|||||||
- /**/*.css
|
- /**/*.css
|
||||||
- /**/*.png
|
- /**/*.png
|
||||||
- /**/*.ico
|
- /**/*.ico
|
||||||
|
- /buyer/distribution/distribution/**
|
||||||
|
- /store/distribution/goods/**
|
||||||
|
|
||||||
# Swagger界面内容配置
|
# Swagger界面内容配置
|
||||||
swagger:
|
swagger:
|
||||||
@ -182,6 +193,7 @@ logging:
|
|||||||
cn.lili: info
|
cn.lili: info
|
||||||
# org.hibernate: debug
|
# org.hibernate: debug
|
||||||
# org.springframework: debug
|
# org.springframework: debug
|
||||||
|
# org.springframework.data.mongodb.core: debug
|
||||||
file:
|
file:
|
||||||
# 指定路径
|
# 指定路径
|
||||||
path: logs
|
path: logs
|
||||||
@ -211,22 +223,22 @@ lili:
|
|||||||
#短信模版配置
|
#短信模版配置
|
||||||
sms:
|
sms:
|
||||||
#登录
|
#登录
|
||||||
LOGIN: SMS_205755300
|
LOGIN: SMS_234157072
|
||||||
#注册
|
#注册
|
||||||
REGISTER: SMS_205755298
|
REGISTER: SMS_234157072
|
||||||
#找回密码
|
#找回密码
|
||||||
FIND_USER: SMS_205755301
|
FIND_USER: SMS_234157072
|
||||||
#设置密码
|
#设置密码
|
||||||
UPDATE_PASSWORD: SMS_205755297
|
UPDATE_PASSWORD: SMS_234157072
|
||||||
#支付密码
|
#支付密码
|
||||||
WALLET_PASSWORD: SMS_205755301
|
WALLET_PASSWORD: SMS_234157072
|
||||||
system:
|
system:
|
||||||
isDemoSite: false
|
isDemoSite: false
|
||||||
isTestModel: true
|
isTestModel: true
|
||||||
# 脱敏级别:
|
# 脱敏级别:
|
||||||
# 0:不做脱敏处理
|
# 0:不做脱敏处理
|
||||||
# 1:管理端用户手机号等信息脱敏
|
# 1:管理端用户手机号等信息脱敏
|
||||||
# 2:商家端信息脱敏(为2时,表示管理端,商家端同时脱敏)
|
# 2:商家端信息脱敏(为2时,表示管理端,商家端同时脱敏)
|
||||||
sensitiveLevel: 1
|
sensitiveLevel: 1
|
||||||
|
|
||||||
statistics:
|
statistics:
|
||||||
@ -268,7 +280,7 @@ lili:
|
|||||||
data:
|
data:
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
cluster-name: elasticsearch
|
cluster-name: elasticsearch
|
||||||
cluster-nodes: 192.168.0.116:9200
|
cluster-nodes: 101.43.251.145:9200
|
||||||
index:
|
index:
|
||||||
number-of-replicas: 0
|
number-of-replicas: 0
|
||||||
number-of-shards: 3
|
number-of-shards: 3
|
||||||
@ -297,10 +309,8 @@ lili:
|
|||||||
notice-group: lili_notice_group
|
notice-group: lili_notice_group
|
||||||
notice-send-topic: lili_send_notice_topic
|
notice-send-topic: lili_send_notice_topic
|
||||||
notice-send-group: lili_send_notice_group
|
notice-send-group: lili_send_notice_group
|
||||||
after-sale-topic: lili_after_sale_topic
|
|
||||||
after-sale-group: lili_after_sale_group
|
|
||||||
rocketmq:
|
rocketmq:
|
||||||
name-server: 192.168.0.116:9876
|
name-server: 101.43.251.145:9876
|
||||||
isVIPChannel: false
|
isVIPChannel: false
|
||||||
producer:
|
producer:
|
||||||
group: lili_group
|
group: lili_group
|
||||||
@ -309,7 +319,7 @@ rocketmq:
|
|||||||
xxl:
|
xxl:
|
||||||
job:
|
job:
|
||||||
admin:
|
admin:
|
||||||
addresses: http://192.168.0.116:9001/xxl-job-admin
|
addresses: http://127.0.0.1:8080/xxl-job-admin
|
||||||
executor:
|
executor:
|
||||||
appname: xxl-job-executor-lilishop
|
appname: xxl-job-executor-lilishop
|
||||||
address:
|
address:
|
||||||
|
@ -4,6 +4,7 @@ import cn.hutool.core.text.CharSequenceUtil;
|
|||||||
import cn.hutool.json.JSONObject;
|
import cn.hutool.json.JSONObject;
|
||||||
import cn.hutool.json.JSONUtil;
|
import cn.hutool.json.JSONUtil;
|
||||||
import cn.lili.common.enums.PromotionTypeEnum;
|
import cn.lili.common.enums.PromotionTypeEnum;
|
||||||
|
import cn.lili.common.utils.CurrencyUtil;
|
||||||
import cn.lili.modules.goods.service.CategoryService;
|
import cn.lili.modules.goods.service.CategoryService;
|
||||||
import cn.lili.modules.order.cart.entity.dto.TradeDTO;
|
import cn.lili.modules.order.cart.entity.dto.TradeDTO;
|
||||||
import cn.lili.modules.order.cart.entity.enums.CartTypeEnum;
|
import cn.lili.modules.order.cart.entity.enums.CartTypeEnum;
|
||||||
@ -85,7 +86,7 @@ public class CommissionRender implements CartRenderStep {
|
|||||||
if (kanjiaPromotions.isPresent()) {
|
if (kanjiaPromotions.isPresent()) {
|
||||||
JSONObject promotionsObj = JSONUtil.parseObj(kanjiaPromotions.get().getValue());
|
JSONObject promotionsObj = JSONUtil.parseObj(kanjiaPromotions.get().getValue());
|
||||||
KanjiaActivityGoods kanjiaActivityGoods = JSONUtil.toBean(promotionsObj, KanjiaActivityGoods.class);
|
KanjiaActivityGoods kanjiaActivityGoods = JSONUtil.toBean(promotionsObj, KanjiaActivityGoods.class);
|
||||||
priceDetailDTO.setSettlementPrice(kanjiaActivityGoods.getSettlementPrice());
|
priceDetailDTO.setSettlementPrice(CurrencyUtil.add(kanjiaActivityGoods.getSettlementPrice(),priceDetailDTO.getBillPrice()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -222,6 +222,7 @@ public class PointsGoodsServiceImpl extends AbstractPromotionsServiceImpl<Points
|
|||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
public void updateEsGoodsIndex(PointsGoods promotions) {
|
public void updateEsGoodsIndex(PointsGoods promotions) {
|
||||||
|
super.updateEsGoodsIndex(promotions);
|
||||||
Map<String, Object> query = MapUtil.builder(new HashMap<String, Object>()).put("id", promotions.getSkuId()).build();
|
Map<String, Object> query = MapUtil.builder(new HashMap<String, Object>()).put("id", promotions.getSkuId()).build();
|
||||||
Map<String, Object> update = MapUtil.builder(new HashMap<String, Object>()).put("points", promotions.getPoints()).build();
|
Map<String, Object> update = MapUtil.builder(new HashMap<String, Object>()).put("points", promotions.getPoints()).build();
|
||||||
//修改规格索引,发送mq消息
|
//修改规格索引,发送mq消息
|
||||||
|
Loading…
x
Reference in New Issue
Block a user