|
@@ -204,6 +204,9 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
private SysUserCashAccountDao sysUserCashAccountDao;
|
|
|
@Autowired
|
|
|
private StudentDao studentDao;
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private MusicGroupPaymentCalenderRepairDao musicGroupPaymentCalenderRepairDao;
|
|
|
|
|
|
private SimpleDateFormat sdf_ymd = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
|
|
@@ -3898,6 +3901,8 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
List<Long> instrumentIdList = maintenanceList.stream().map(t -> t.getStudentInstrumentId()).collect(Collectors.toList());
|
|
|
|
|
|
List<StudentInstrument> studentInstrumentList = studentInstrumentDao.queryById(instrumentIdList);
|
|
|
+
|
|
|
+ MusicGroupPaymentCalenderRepair musicGroupPaymentCalenderRepair = musicGroupPaymentCalenderRepairDao.findByCalenderId(maintenanceList.get(0).getMusicGroupPaymentCalenderId());
|
|
|
|
|
|
List<StudentInstrument> updateList = new ArrayList<StudentInstrument>();
|
|
|
|
|
@@ -3908,7 +3913,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
if (si.getStatus() == 0 && si.getStartTime() == null) {
|
|
|
si.setStatus(1);
|
|
|
si.setStartTime(date);
|
|
|
- si.setEndTime(DateUtil.addYears(date, 1));
|
|
|
+ si.setEndTime(DateUtil.addYears(date, musicGroupPaymentCalenderRepair.getNum().intValue()));
|
|
|
si.setUpdateTime(date);
|
|
|
|
|
|
updateList.add(si);
|