feat: AI建任务动态文案与校验提示改为贡献值口径(禅道需求9541)

- aiBatchAdd 动态文案「工时xx h」→「贡献值xx pv」
- 两处「请检查工时」校验提示→「请检查贡献值」
- ZtTaskAiBatchDTO 注释同步;接口协议与 aiEvaluationTime 字段名不变

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
2026-10-22 19:29:10 +08:00
co-authored by Claude Fable 5
parent 461f17713f
commit aa64c89a36
2 changed files with 4 additions and 4 deletions
@@ -29,7 +29,7 @@ public class ZtTaskAiBatchDTO implements Serializable {
private String assignedTo;
//任务描述,可选,写入 zt_task.desc
private String desc;
//AI评估工时,写入 zt_task.estimate
//AI评估贡献值,写入 zt_task.estimate
private Float aiEvaluationTime;
//预计开始,格式 yyyy-MM-dd,写入 zt_task.estStarted
private String planStartDate;
@@ -1288,7 +1288,7 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
}
for (ZtTaskDTO d : list) {
if (d.getEstimate() == null) {
throw new BusinessException("请检查工时");
throw new BusinessException("请检查贡献值");
}
ZtTask ztTask = new ZtTask();
@@ -1438,7 +1438,7 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
}
//对齐老接口规则:工时必须录入
if (item.getAiEvaluationTime() == null) {
throw new BusinessException("请检查工时:" + item.getName());
throw new BusinessException("请检查贡献值:" + item.getName());
}
//CHG-076:assignedTo 支持中文姓名——不是既有账号时按昵称查库映射账号(AI 框架传中文名场景)
String assignedTo = item.getAssignedTo();
@@ -1477,7 +1477,7 @@ public class ZtTaskServiceImpl extends ServiceImpl<ZtTaskMapper, ZtTask> impleme
}
//CHG-081:类型中文名按 TaskType 枚举取值(原写死 test→测试/其他→开发,design 放行后会被误记为「开发」)
createdDescs.add(item.getName() + "(" + TaskType.transferType(item.getType()).getValue()
+ ",工时" + item.getAiEvaluationTime() + "h"
+ ",贡献值" + item.getAiEvaluationTime() + "pv"
+ "," + assigneeSeg + ")");
}