|
@@ -171,9 +171,6 @@ class ApplyService extends CrudService {
|
|
|
await trainplan.save();
|
|
|
}
|
|
|
|
|
|
- arrangeLesson() {
|
|
|
-
|
|
|
- }
|
|
|
|
|
|
/**
|
|
|
* 拍平了的课表=>termnum
|
|
@@ -282,7 +279,12 @@ class ApplyService extends CrudService {
|
|
|
return arr;
|
|
|
}
|
|
|
|
|
|
- async arrangeSendMsg({ planid, ids }) {
|
|
|
+
|
|
|
+ /**
|
|
|
+ * 发送消息
|
|
|
+ * @param {Object} param planid:年度计划id,ids,发送的期列表;classtype:发送班级类型 undefined 都发,有的话就找指定班级类型发
|
|
|
+ */
|
|
|
+ async arrangeSendMsg({ planid, ids, classtype }) {
|
|
|
const trainplan = await this.trainmodel.findById(planid);
|
|
|
if (!trainplan) {
|
|
|
throw new BusinessError(ErrorCode.DATA_EXISTED, '年度计划不存在');
|