|
|
@@ -29,6 +29,7 @@ import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
+
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
@@ -416,6 +417,25 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
|
return musicGroupPaymentCalender.getId();
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public boolean makesureSchoolePaid(Long id, String memo) {
|
|
|
+ MusicGroupPaymentCalender musicGroupPaymentCalender = musicGroupPaymentCalenderDao.get(id);
|
|
|
+ if(musicGroupPaymentCalender == null){
|
|
|
+ throw new BizException("查询缴费信息失败");
|
|
|
+ }
|
|
|
+
|
|
|
+ if(musicGroupPaymentCalender.getPayUserType() != PayUserType.SCHOOL){
|
|
|
+ throw new BizException("只有学校缴费才能确认缴费状态");
|
|
|
+ }
|
|
|
+
|
|
|
+ musicGroupPaymentCalender.setStatus(PaymentCalenderStatusEnum.PAID);
|
|
|
+ musicGroupPaymentCalender.setMemo(memo);
|
|
|
+ musicGroupPaymentCalender.setUpdateTime(new Date());
|
|
|
+ musicGroupPaymentCalenderDao.update(musicGroupPaymentCalender);
|
|
|
+
|
|
|
+ return true;
|
|
|
+ }
|
|
|
+
|
|
|
public void addStudent(MusicGroupPaymentCalender musicGroupPaymentCalender,List<MusicGroupPaymentCalenderCourseSettings> musicGroupPaymentCalenderCourseSettingsList){
|
|
|
//如果是进行中加学生
|
|
|
Date date = new Date();
|