Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -70,6 +70,7 @@ public class ShopUserController {
|
|||||||
queryWrapper.eq(ShopUserFlow::getBizCode, bizCode);
|
queryWrapper.eq(ShopUserFlow::getBizCode, bizCode);
|
||||||
}
|
}
|
||||||
queryWrapper.orderBy(ShopUserFlow::getCreateTime, false);
|
queryWrapper.orderBy(ShopUserFlow::getCreateTime, false);
|
||||||
|
queryWrapper.orderBy(ShopUserFlow::getId, true);
|
||||||
return CzgResult.success(shopUserFlowService.page(PageUtil.buildPage(), queryWrapper));
|
return CzgResult.success(shopUserFlowService.page(PageUtil.buildPage(), queryWrapper));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://rm-bp1b572nblln4jho2po.mysql.rds.aliyuncs.com:3306/czg_cashier_test?useUnicode=true&characterEncoding=utf-8
|
||||||
|
username: root
|
||||||
|
password: Czg666888
|
||||||
|
|
||||||
|
data:
|
||||||
|
redis:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 6379
|
||||||
|
password: chaozg123
|
||||||
|
timeout: 1000
|
||||||
|
database: 3
|
||||||
|
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
||||||
|
rabbitmq:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 5672
|
||||||
|
username: chaozg
|
||||||
|
password: chaozg123
|
||||||
|
|
||||||
|
dubbo:
|
||||||
|
application:
|
||||||
|
name: account-server
|
||||||
|
qos-port: 22223
|
||||||
|
qos-enable: true
|
||||||
|
registry:
|
||||||
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
|
group: server-prod
|
||||||
|
protocol:
|
||||||
|
threads: 20
|
||||||
|
port: 10103
|
||||||
|
name: dubbo
|
||||||
|
serialization: hessian2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
seata:
|
||||||
|
application-id: account-server
|
||||||
|
tx-service-group: group_seata
|
||||||
|
config:
|
||||||
|
type: nacos
|
||||||
|
nacos:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace:
|
||||||
|
group: group_seata
|
||||||
|
|
||||||
@@ -0,0 +1,56 @@
|
|||||||
|
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://rm-bp1b572nblln4jho2po.mysql.rds.aliyuncs.com:3306/czg_cashier_test?useUnicode=true&characterEncoding=utf-8
|
||||||
|
username: root
|
||||||
|
password: Czg666888
|
||||||
|
|
||||||
|
data:
|
||||||
|
redis:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 6379
|
||||||
|
password: chaozg123
|
||||||
|
timeout: 1000
|
||||||
|
database: 3
|
||||||
|
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
||||||
|
rabbitmq:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 5672
|
||||||
|
username: chaozg
|
||||||
|
password: chaozg123
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
dubbo:
|
||||||
|
application:
|
||||||
|
name: order-server
|
||||||
|
qos-port: 22233
|
||||||
|
qos-enable: true
|
||||||
|
logger: log4j2
|
||||||
|
environment: test
|
||||||
|
registry:
|
||||||
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
|
group: server-prod
|
||||||
|
protocol:
|
||||||
|
port: 10203
|
||||||
|
threads: 20
|
||||||
|
name: dubbo
|
||||||
|
serialization: hessian2
|
||||||
|
|
||||||
|
|
||||||
|
seata:
|
||||||
|
application-id: order-server
|
||||||
|
tx-service-group: group_seata
|
||||||
|
config:
|
||||||
|
type: nacos
|
||||||
|
nacos:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace:
|
||||||
|
group: group_seata
|
||||||
|
|
||||||
@@ -0,0 +1,50 @@
|
|||||||
|
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://rm-bp1b572nblln4jho2po.mysql.rds.aliyuncs.com:3306/czg_cashier_test?useUnicode=true&characterEncoding=utf-8
|
||||||
|
username: root
|
||||||
|
password: Czg666888
|
||||||
|
|
||||||
|
data:
|
||||||
|
redis:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 6379
|
||||||
|
password: chaozg123
|
||||||
|
timeout: 1000
|
||||||
|
database: 3
|
||||||
|
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
||||||
|
rabbitmq:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 5672
|
||||||
|
username: chaozg
|
||||||
|
password: chaozg123
|
||||||
|
|
||||||
|
dubbo:
|
||||||
|
application:
|
||||||
|
name: product-server
|
||||||
|
qos-port: 22243
|
||||||
|
qos-enable: true
|
||||||
|
registry:
|
||||||
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
|
group: server-prod
|
||||||
|
protocol:
|
||||||
|
port: 10303
|
||||||
|
threads: 20
|
||||||
|
name: dubbo
|
||||||
|
serialization: hessian2
|
||||||
|
|
||||||
|
seata:
|
||||||
|
application-id: product-server
|
||||||
|
tx-service-group: group_seata
|
||||||
|
config:
|
||||||
|
type: nacos
|
||||||
|
nacos:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace:
|
||||||
|
group: group_seata
|
||||||
@@ -0,0 +1,53 @@
|
|||||||
|
|
||||||
|
spring:
|
||||||
|
datasource:
|
||||||
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
|
url: jdbc:mysql://rm-bp1b572nblln4jho2po.mysql.rds.aliyuncs.com:3306/czg_cashier_test?useUnicode=true&characterEncoding=utf-8
|
||||||
|
username: root
|
||||||
|
password: Czg666888
|
||||||
|
|
||||||
|
data:
|
||||||
|
redis:
|
||||||
|
host: 121.40.109.122
|
||||||
|
port: 6379
|
||||||
|
password: chaozg123
|
||||||
|
timeout: 1000
|
||||||
|
database: 3
|
||||||
|
lettuce:
|
||||||
|
pool:
|
||||||
|
min-idle: 0
|
||||||
|
max-idle: 8
|
||||||
|
max-wait: -1ms
|
||||||
|
max-active: 16
|
||||||
|
|
||||||
|
cloud:
|
||||||
|
nacos:
|
||||||
|
discovery:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace: 237e1905-0a66-4375-9bb6-a51c3c034aca
|
||||||
|
|
||||||
|
dubbo:
|
||||||
|
application:
|
||||||
|
name: system-server
|
||||||
|
qos-port: 22253
|
||||||
|
qos-enable: true
|
||||||
|
registry:
|
||||||
|
address: nacos://121.40.109.122:8848 # Nacos 服务地址
|
||||||
|
group: server-prod
|
||||||
|
protocol:
|
||||||
|
port: 10403
|
||||||
|
threads: 20
|
||||||
|
name: dubbo
|
||||||
|
serialization: hessian2
|
||||||
|
|
||||||
|
|
||||||
|
seata:
|
||||||
|
application-id: system-server
|
||||||
|
tx-service-group: group_seata
|
||||||
|
config:
|
||||||
|
type: nacos
|
||||||
|
nacos:
|
||||||
|
server-addr: 121.40.109.122:8848
|
||||||
|
namespace:
|
||||||
|
group: group_seata
|
||||||
|
|
||||||
@@ -25,6 +25,10 @@ public class VipPayParamDTO {
|
|||||||
* 霸王餐使用 是否整单打包
|
* 霸王餐使用 是否整单打包
|
||||||
*/
|
*/
|
||||||
private Integer allPack;
|
private Integer allPack;
|
||||||
|
/**
|
||||||
|
* 用户端 使用 全打包 或者 全不打包
|
||||||
|
*/
|
||||||
|
private Integer userAllPack;
|
||||||
@NotNull(message = "充值金额不为空")
|
@NotNull(message = "充值金额不为空")
|
||||||
private BigDecimal amount;
|
private BigDecimal amount;
|
||||||
|
|
||||||
|
|||||||
@@ -524,7 +524,7 @@ public class PayServiceImpl implements PayService {
|
|||||||
//更新会员余额 并生成流水
|
//更新会员余额 并生成流水
|
||||||
shopUserService.updateMoney(shopUser.getShopId(), shopUserMoneyEditDTO);
|
shopUserService.updateMoney(shopUser.getShopId(), shopUserMoneyEditDTO);
|
||||||
userFlowService.updateRefund(inFlow.getId(), refPayParam.getRefAmount());
|
userFlowService.updateRefund(inFlow.getId(), refPayParam.getRefAmount());
|
||||||
if (giftFlow != null && (giftFlow.getAmount().subtract(refPayParam.getRefAmount())).compareTo(BigDecimal.ZERO) > 0) {
|
if (giftFlow != null && (giftFlow.getAmount().subtract(giftFlow.getRefundAmount())).compareTo(BigDecimal.ZERO) > 0) {
|
||||||
ShopUserMoneyEditDTO giftFlowEdit = new ShopUserMoneyEditDTO()
|
ShopUserMoneyEditDTO giftFlowEdit = new ShopUserMoneyEditDTO()
|
||||||
.setId(shopUser.getId())
|
.setId(shopUser.getId())
|
||||||
.setMoney(giftFlow.getAmount())
|
.setMoney(giftFlow.getAmount())
|
||||||
|
|||||||
@@ -151,6 +151,8 @@ public class ShopOrderStatisticServiceImpl extends ServiceImpl<ShopOrderStatisti
|
|||||||
}
|
}
|
||||||
statistic.setUpdateTime(LocalDateTime.now());
|
statistic.setUpdateTime(LocalDateTime.now());
|
||||||
BeanUtil.copyProperties(info, statistic);
|
BeanUtil.copyProperties(info, statistic);
|
||||||
|
statistic.setShopId(shopId);
|
||||||
|
statistic.setCreateDay(LocalDate.now());
|
||||||
saveOrUpdate(statistic);
|
saveOrUpdate(statistic);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user