2 Commits
Author SHA1 Message Date
guoqibingandClaude Fable 5 1c75f47657 fix: 迭代编辑补充负责人pm字段落库
editImplement 未持久化 pm,编辑弹窗「迭代负责人」修改后不生效

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-10-22 19:29:10 +08:00
guoqibingandClaude Fable 5 aa64c89a36 feat: AI建任务动态文案与校验提示改为贡献值口径(禅道需求9541)
- aiBatchAdd 动态文案「工时xx h」→「贡献值xx pv」
- 两处「请检查工时」校验提示→「请检查贡献值」
- ZtTaskAiBatchDTO 注释同步;接口协议与 aiEvaluationTime 字段名不变

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-10-22 19:29:10 +08:00
3 changed files with 5 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;
@@ -1453,6 +1453,7 @@ public class ZtProjectServiceImpl extends ServiceImpl<ZtProjectMapper, ZtProject
ztProject.setEnd(dto.getEnd());
ztProject.setDays(dto.getDays());
ztProject.setName(dto.getName());
ztProject.setPm(dto.getPm());
ztProject.setLastEditedDate(new Date());
ztProject.setLastEditedBy(RiskUserThreadLocal.get().getName());
this.baseMapper.updateById(ztProject);
@@ -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 + ")");
}