|
@@ -268,10 +268,10 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
List<StudentPaymentOrder> studentPaymentOrderList = studentPaymentOrderService.queryByCondition(null, musicGroupId, studentId,
|
|
|
DealStatusEnum.SUCCESS, OrderTypeEnum.APPLY);
|
|
|
|
|
|
- List<Long> orderIdList = studentPaymentOrderList.stream().map(t -> t.getId()).collect(Collectors.toList());
|
|
|
+ List<Long> orderIdList = studentPaymentOrderList.stream().map(StudentPaymentOrder::getId).collect(Collectors.toList());
|
|
|
|
|
|
List<StudentPaymentOrderDetail> studentPaymentOrderDetailList = new ArrayList<StudentPaymentOrderDetail>();
|
|
|
- if (orderIdList != null && orderIdList.size() > 0) {
|
|
|
+ if (CollectionUtils.isNotEmpty(orderIdList)) {
|
|
|
studentPaymentOrderDetailList = studentPaymentOrderDetailService.getOrderDetail(orderIdList);
|
|
|
}
|
|
|
|
|
@@ -291,8 +291,8 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
StudentPaymentOrderDetail detail = new StudentPaymentOrderDetail();
|
|
|
detail.setGoodsIdList(studentLastChange.getChangeAccessories());
|
|
|
List<Goods> goods = goodsDao.findGoodsByIds(detail.getGoodsIdList());
|
|
|
- if (goods != null && goods.size() > 0) {
|
|
|
- detail.setName(goods.stream().map(t -> t.getName()).collect(Collectors.joining(",")));
|
|
|
+ if (CollectionUtils.isNotEmpty(goods)) {
|
|
|
+ detail.setName(goods.stream().map(Goods::getName).collect(Collectors.joining(",")));
|
|
|
}
|
|
|
if (studentLastChange.getOriginalOrderId() != null) {
|
|
|
detail.setPaymentOrderId((long) studentLastChange.getOriginalOrderId());
|
|
@@ -307,8 +307,8 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
|
|
|
StudentPaymentOrderDetail detail = new StudentPaymentOrderDetail();
|
|
|
detail.setGoodsIdList(studentLastChange.getChangeMusical() + "");
|
|
|
List<Goods> goods = goodsDao.findGoodsByIds(detail.getGoodsIdList());
|
|
|
- if (goods != null && goods.size() > 0) {
|
|
|
- detail.setName(goods.stream().map(t -> t.getName()).collect(Collectors.joining(",")));
|
|
|
+ if (CollectionUtils.isNotEmpty(goods)) {
|
|
|
+ detail.setName(goods.stream().map(Goods::getName).collect(Collectors.joining(",")));
|
|
|
}
|
|
|
if (studentLastChange.getOriginalOrderId() != null) {
|
|
|
detail.setPaymentOrderId((long) studentLastChange.getOriginalOrderId());
|