|
@@ -641,7 +641,10 @@ public class StudentRepairServiceImpl extends BaseServiceImpl<Integer, StudentRe
|
|
|
studentRepairDao.update(studentRepair);
|
|
|
|
|
|
String channelType = "";
|
|
|
- List<Integer> couponIdList = Arrays.stream(studentRepair.getCouponIds().split(",")).mapToInt(Integer::valueOf).boxed().collect(Collectors.toList());
|
|
|
+ List<Integer> couponIdList = new ArrayList<>();
|
|
|
+ if(StringUtils.isNotEmpty(studentRepair.getCouponIds())){
|
|
|
+ couponIdList = Arrays.stream(studentRepair.getCouponIds().split(",")).mapToInt(Integer::valueOf).boxed().collect(Collectors.toList());
|
|
|
+ }
|
|
|
StudentPaymentOrder studentPaymentOrder = sysCouponCodeService.use(couponIdList,amount,true);
|
|
|
amount = studentPaymentOrder.getActualAmount();
|
|
|
studentPaymentOrder.setUserId(studentRepair.getStudentId());
|