下单测试数据准备

This commit is contained in:
jieyuu 2024-09-29 20:43:18 +08:00
parent 7c348ac613
commit 95f5db067c
7 changed files with 13 additions and 11 deletions

View File

@ -6,5 +6,6 @@ public class TimeConstant {
* 支付订单有效时长超过未支付则关闭订单
* 订单超时 毫秒 默认30分钟
*/
public static final long ORDER_PAY_TIMEOUT_MILLS = 1000 * 60 * 30;
// todo 测试时将时间改为了5分钟 记得改回30分钟
public static final long ORDER_PAY_TIMEOUT_MILLS = 1000 * 60 * 5;
}

View File

@ -73,4 +73,5 @@ mqconfig:
coupon_release_routing_key: coupon.release.routing.key
#消息过期时间,毫秒,测试改为15秒
ttl: 15000
#为了测试修改时间 todo 记得修改回1500
ttl: 360000

View File

@ -66,7 +66,6 @@ public class MyBatisPlusGenerator {
.setRestControllerStyle(true)
// 生成的表, 支持多表一起生成以数组形式填写
//TODO TODO TODO TODO
// .setInclude("coupon","coupon_record");
.setInclude("coupon_task");

View File

@ -201,11 +201,11 @@ public class ProductOrderServiceImpl extends ServiceImpl<ProductOrderMapper, Pro
productOrderDO.setDel(0);
productOrderDO.setOrderType(ProductOrderTypeEnum.DAILY.name());
//实际支付的价格
// 实际支付的价格
productOrderDO.setPayAmount(orderRequest.getRealPayAmount());
// 总价
productOrderDO.setTotalAmount(orderRequest.getTotalAmount());
productOrderDO.setState(ProductOrderStateEnum.NEW.name());
//
productOrderDO.setPayType(ProductOrderPayTypeEnum.valueOf(orderRequest.getPayType()).name());
// 收货地址

View File

@ -61,7 +61,8 @@ mqconfig:
order_close_routing_key: order.close.routing.key
#消息过期时间,毫秒,测试改为15秒
ttl: 15000
# 为了测试修改时间为300秒 todo 记得修改
ttl: 300000
# 支付宝配置
alipay:

View File

@ -62,4 +62,5 @@ mqconfig:
stock_release_routing_key: stock.release.routing.key
#消息过期时间,毫秒,测试改为15秒
ttl: 15000
#为了测试修改时间 todo 记得修改回1500
ttl: 360000

View File

@ -57,10 +57,10 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO> implements
/**
* 用户注册
* 邮箱验证码验证
* 密码加密 TODO
* 账号唯一性检查 TODO
* 密码加密
* 账号唯一性检查
* 插入数据库
* 新注册用户福利发放 TODO
* 新注册用户福利发放
*
* @param registerRequest
* @return
@ -88,7 +88,6 @@ public class UserServiceImpl extends ServiceImpl<UserMapper, UserDO> implements
userDO.setCreateTime(new Date());
//设置密码 加密
// userDO.setPwd(userRegisterRequest.getPwd());
//生成密钥 盐e
userDO.setSecret("$1$" + CommonUtil.getStringNumRandom(8));