|
@@ -3,6 +3,7 @@ package com.zxyj.service;
|
|
|
import com.zxyj.entity.TaskPlanInstance;
|
|
import com.zxyj.entity.TaskPlanInstance;
|
|
|
import com.zxyj.entity.TaskPlanItem;
|
|
import com.zxyj.entity.TaskPlanItem;
|
|
|
import com.zxyj.entity.TaskTemplateItem;
|
|
import com.zxyj.entity.TaskTemplateItem;
|
|
|
|
|
+import com.zxyj.entity.TaskTemplatePackage;
|
|
|
import com.zxyj.mapper.TaskPlanInstanceMapper;
|
|
import com.zxyj.mapper.TaskPlanInstanceMapper;
|
|
|
import com.zxyj.mapper.TaskPlanItemMapper;
|
|
import com.zxyj.mapper.TaskPlanItemMapper;
|
|
|
import com.zxyj.mapper.TaskTemplateItemMapper;
|
|
import com.zxyj.mapper.TaskTemplateItemMapper;
|
|
@@ -37,7 +38,7 @@ public class TaskPlanService {
|
|
|
@Transactional
|
|
@Transactional
|
|
|
public TaskPlanInstance applyPackage(ApplyPackageDTO dto, Long familyId) {
|
|
public TaskPlanInstance applyPackage(ApplyPackageDTO dto, Long familyId) {
|
|
|
// 获取套餐信息
|
|
// 获取套餐信息
|
|
|
- var pkg = packageService.getPackageById(dto.getPackageId());
|
|
|
|
|
|
|
+ TaskTemplatePackage pkg = packageService.getPackageById(dto.getPackageId());
|
|
|
if (pkg == null) {
|
|
if (pkg == null) {
|
|
|
throw new RuntimeException("套餐不存在");
|
|
throw new RuntimeException("套餐不存在");
|
|
|
}
|
|
}
|