gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java | ●●●●● patch | view | raw | blame | history |
gc-order/src/main/java/com/xzx/gc/order/service/JhyOrderService.java
@@ -240,6 +240,7 @@ JhyOrder order = jhyOrderMapper.selectByPrimaryKey(confirmDto.getOrderId()); AccountInfo jhyAccount = accountMapper.selectAccountInfoByUserId(order.getJhyId()); BigDecimal collectScore = StrUtil.isNotBlank(jhyAccount.getCollectScore()) ? new BigDecimal(jhyAccount.getCollectScore()) : BigDecimal.ZERO; log.info("===={}======{}====", collectScore, totalScore); if (totalScore.compareTo(collectScore) > 0) { throw new RestException(-3, "剩余积分不足"); }