|
@@ -320,7 +320,7 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public List<MusicalListDetailDto> getMusicalListDetail(String musicGroupId, Integer studentId) {
|
|
|
+ public List<MusicalListDetailDto> getMusicalListDetail(String musicGroupId, Integer deliveryStatus) {
|
|
|
|
|
|
List<MusicalListDetailDto> musicalListDetailDtos = new ArrayList<MusicalListDetailDto>();
|
|
|
|
|
@@ -388,6 +388,16 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
|
boolean isChangeAccessories = false;
|
|
|
|
|
|
for (StudentPaymentOrderDetail spod : orderDetailList) {
|
|
|
+
|
|
|
+ if(deliveryStatus != null){
|
|
|
+ if (deliveryStatus == 0 && StringUtils.isNotBlank(spod.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (deliveryStatus == 1 && StringUtils.isBlank(spod.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
if (spod.getType() == OrderDetailTypeEnum.COURSE || spod.getType() == OrderDetailTypeEnum.HIGH_ONLINE_COURSE
|
|
|
|| spod.getType() == OrderDetailTypeEnum.SINGLE || spod.getType() == OrderDetailTypeEnum.VIP
|
|
@@ -403,6 +413,16 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
|
if (subjectChange.getChangeMusical() == null) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if(deliveryStatus != null){
|
|
|
+ if (deliveryStatus == 0 && StringUtils.isNotBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (deliveryStatus == 1 && StringUtils.isBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
if(spod.getType() == OrderDetailTypeEnum.MUSICAL){
|
|
|
kitGroupPurchaseType = subjectChange.getKitGroupPurchaseType();
|
|
|
musicalId = subjectChange.getChangeMusical() + "";
|
|
@@ -427,6 +447,15 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
|
if (StringUtils.isBlank(subjectChange.getChangeAccessories()) || isCalculatedOfAccessories == true) {
|
|
|
continue;
|
|
|
}
|
|
|
+ if(deliveryStatus != null){
|
|
|
+ if (deliveryStatus == 0 && StringUtils.isNotBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (deliveryStatus == 1 && StringUtils.isBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
isCalculatedOfAccessories = true;
|
|
|
accessoriesId = accessoriesId.append(subjectChange.getChangeAccessories()).append(",");
|
|
|
//accessoriesAmount = accessoriesAmount.add(subjectChange.getChangeAccessoriesPrice());
|
|
@@ -452,6 +481,15 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
|
|
|
|
if (orderDetailList.size() == 0) {
|
|
|
if (subjectChange != null) {
|
|
|
+ if(deliveryStatus != null){
|
|
|
+ if (deliveryStatus == 0 && StringUtils.isNotBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (deliveryStatus == 1 && StringUtils.isBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (subjectChange.getChangeMusical() != null) {
|
|
|
kitGroupPurchaseType = subjectChange.getKitGroupPurchaseType();
|
|
|
musicalId = subjectChange.getChangeMusical() + "";
|
|
@@ -466,6 +504,15 @@ public class StudentPaymentOrderDetailServiceImpl extends BaseServiceImpl<Long,
|
|
|
}
|
|
|
} else if (isChangeAccessories == false || isChangeMusical == false) {
|
|
|
if (subjectChange != null) {
|
|
|
+ if(deliveryStatus != null){
|
|
|
+ if (deliveryStatus == 0 && StringUtils.isNotBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+
|
|
|
+ if (deliveryStatus == 1 && StringUtils.isBlank(subjectChange.getDeliveryBatchNo())) {
|
|
|
+ continue;
|
|
|
+ }
|
|
|
+ }
|
|
|
if (subjectChange.getChangeMusical() != null && isChangeMusical == false) {
|
|
|
kitGroupPurchaseType = subjectChange.getKitGroupPurchaseType();
|
|
|
musicalId = subjectChange.getChangeMusical() + "";
|