fix: repair brand filter task item creation

This commit is contained in:
Your Name 2026-03-30 14:38:12 +08:00
parent ef15e00889
commit 68e17b0a83

View File

@ -4455,7 +4455,7 @@ public class TaskService {
}
// 获取当前任务类型在当前品牌下的接单部门配置
String currentDeptKey = resolveEffectiveDeptKey(demandType, itemDto.getSelectedDeptId(), mainTask.getBrandId());
String currentDeptKey = resolveEffectiveDeptKey(demandType, itemDto.getSelectedDeptId(), task.getBrandId());
// 🔥 构建分组键:部门 + 设计师(如果指定了设计师)
String currentGroupKey;
@ -4507,7 +4507,7 @@ public class TaskService {
// 获取部门键
var demandType = configService.getDemandTypeById(itemDto.getTaskTypeId());
String deptKey = resolveEffectiveDeptKey(demandType, itemDto.getSelectedDeptId(), mainTask.getBrandId());
String deptKey = resolveEffectiveDeptKey(demandType, itemDto.getSelectedDeptId(), task.getBrandId());
if (deptKey == null) deptKey = "null";
// 记录分组到部门的映射