refactor(mall): 优化订单和积分流水号生成逻辑
- 在 ApiMallOrderInfoServiceImpl 中使用带 "order" 前缀的订单号生成
- 在 ScoreServiceImpl 中使用带 "sign" 前缀的订单号生成
| | |
| | | throw new FebsException("请重新选择收货地址信息"); |
| | | } |
| | | |
| | | String orderNo = MallUtils.getOrderNum(); |
| | | String orderNo = MallUtils.getOrderNum("order"); |
| | | MallOrderInfo orderInfo = new MallOrderInfo(); |
| | | orderInfo.setOrderNo(orderNo); |
| | | orderInfo.setOrderTime(new Date()); |
| | |
| | | member.getId(), |
| | | amount, |
| | | ScoreFlowTypeEnum.SIGN_EXPERIENCE.getValue(), |
| | | MallUtils.getOrderNum(), |
| | | MallUtils.getOrderNum("sign"), |
| | | FlowTypeEnum.SCORE.getValue(), |
| | | StrUtil.format(ScoreFlowTypeEnum.SIGN_EXPERIENCE.getDesc(),amount), |
| | | 2); |
| | |
| | | member.getId(), |
| | | amount, |
| | | ScoreFlowTypeEnum.SIGN_SCORE.getValue(), |
| | | MallUtils.getOrderNum(), |
| | | MallUtils.getOrderNum("sign"), |
| | | FlowTypeEnum.PRIZE_SCORE.getValue(), |
| | | StrUtil.format(ScoreFlowTypeEnum.SIGN_SCORE.getDesc(),amount), |
| | | 2); |