|
@@ -8,6 +8,7 @@ import com.etotem.cfc.entity.AssessmentMaterial;
|
|
|
import com.etotem.cfc.entity.AssessmentPointsConfig;
|
|
import com.etotem.cfc.entity.AssessmentPointsConfig;
|
|
|
import com.etotem.cfc.entity.AssessmentRecord;
|
|
import com.etotem.cfc.entity.AssessmentRecord;
|
|
|
import com.etotem.cfc.entity.DanAssessmentResult;
|
|
import com.etotem.cfc.entity.DanAssessmentResult;
|
|
|
|
|
+import com.etotem.cfc.entity.DanReportUpload;
|
|
|
import com.etotem.cfc.entity.FamilyAssessmentConfig;
|
|
import com.etotem.cfc.entity.FamilyAssessmentConfig;
|
|
|
import com.etotem.cfc.entity.FamilyMember;
|
|
import com.etotem.cfc.entity.FamilyMember;
|
|
|
import com.etotem.cfc.mapper.AssessmentMaterialMapper;
|
|
import com.etotem.cfc.mapper.AssessmentMaterialMapper;
|
|
@@ -107,6 +108,26 @@ public class AssessmentService extends ServiceImpl<AssessmentMaterialMapper, Ass
|
|
|
return this.list(wrapper);
|
|
return this.list(wrapper);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
|
+ * 能力键 {@code assessment.type.browse}(SC-P-31 / TC-P-31):枚举测评类型浏览入口。
|
|
|
|
|
+ *
|
|
|
|
|
+ * <p>返回后端类型字典的完整 DAN 8 类(mind/wisdom/cognition/learning/behavior/career/campus/adolescent),
|
|
|
|
|
+ * 供测评页「列 8 类、类目来自后端字典」使用。字典基线复用 {@link DanReportUpload} 的 {@code DIM_*} 常量,
|
|
|
|
|
+ * 避免实现与字典分叉。</p>
|
|
|
|
|
+ */
|
|
|
|
|
+ public List<String> listAssessmentTypes() {
|
|
|
|
|
+ return Arrays.asList(
|
|
|
|
|
+ DanReportUpload.DIM_MIND,
|
|
|
|
|
+ DanReportUpload.DIM_WISDOM,
|
|
|
|
|
+ DanReportUpload.DIM_COGNITION,
|
|
|
|
|
+ DanReportUpload.DIM_LEARNING,
|
|
|
|
|
+ DanReportUpload.DIM_BEHAVIOR,
|
|
|
|
|
+ DanReportUpload.DIM_CAREER,
|
|
|
|
|
+ DanReportUpload.DIM_CAMPUS,
|
|
|
|
|
+ DanReportUpload.DIM_ADOLESCENT
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
public AssessmentMaterial createMaterial(String title, String content, String coverImage) {
|
|
public AssessmentMaterial createMaterial(String title, String content, String coverImage) {
|
|
|
AssessmentMaterial material = new AssessmentMaterial();
|
|
AssessmentMaterial material = new AssessmentMaterial();
|
|
|
material.setTitle(title);
|
|
material.setTitle(title);
|