|
@@ -1,11 +1,11 @@
|
|
package com.ym.mec.biz.service.impl;
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
-import java.io.Serializable;
|
|
|
|
-import java.util.*;
|
|
|
|
|
|
+import java.util.Arrays;
|
|
|
|
+import java.util.Collections;
|
|
|
|
+import java.util.Date;
|
|
|
|
+import java.util.List;
|
|
import java.util.stream.Collectors;
|
|
import java.util.stream.Collectors;
|
|
|
|
|
|
-import com.ym.mec.biz.dal.entity.MusicGroupStudentFee;
|
|
|
|
-import io.swagger.models.auth.In;
|
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -13,6 +13,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
|
|
import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
|
|
import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
|
|
import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
|
|
|
|
+import com.ym.mec.biz.dal.entity.MusicGroupStudentFee;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
@@ -47,8 +48,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
String paymentPeriodList = fee.getPaymentPeriodList();
|
|
String paymentPeriodList = fee.getPaymentPeriodList();
|
|
if(StringUtils.isEmpty(paymentPeriodList)){
|
|
if(StringUtils.isEmpty(paymentPeriodList)){
|
|
return null;
|
|
return null;
|
|
- }else {
|
|
|
|
- months = new ArrayList(Arrays.asList(paymentPeriodList.split(",")));
|
|
|
|
|
|
+ } else {
|
|
|
|
+ months = Arrays.asList(paymentPeriodList.split(",")).stream().map(x -> Integer.parseInt(x)).collect(Collectors.toList());
|
|
Collections.sort(months);
|
|
Collections.sort(months);
|
|
}
|
|
}
|
|
}else {
|
|
}else {
|