|
@@ -548,7 +548,7 @@ public class AWImplClient implements AWClint {
|
|
|
Map<String, String> extra = (Map) tbClient.idMapQuery(executorId, "dingTalk-user", ddConf.getCorpId()).get(0).get("extra");
|
|
|
// ppExt: TB映射钉钉信息仅返回 userId, 人员组件返回前端展示需要 name. 通过页面公式临时自动加载, 可通过TB接口或钉钉用户接口查询
|
|
|
formData.putAll(UtilMap.map("textField_lrndwu09, textField_lrndwu0a, textField_lrndwu0b, employeeField_lrndwu0e, textField_lvbrueqs, textField_lvbrueqt, textField_m0yo7tsj", rTask.get("content"), taskData.get(AWServer.TASK_STAGE), taskData.get(AWServer.TASK_ROLE), Arrays.asList(UtilMap.map("value, name", extra.get("userId"), extra.get("userId"))), taskData.get(AWServer.TASK_PRODUCT), taskData.get(AWServer.TASK_PRODUCT_VERSION), taskData.get(AWServer.TASK_WAFER)));
|
|
|
- // prd 任务状态, 存量数据已更新, 新增数据自动带出任务状态 [ NA的任务也关联到, 新版本技术检查项查询全量数据, 已更新. fixme NA 任务也需要提交检查项, 否则不能关联 ]
|
|
|
+ // prd 9.12 任务状态, 存量数据已更新, 新增数据自动带出任务状态 [ NA的任务也关联到, 新版本技术检查项查询全量数据, 已更新. fixme NA 任务也需要提交检查项, 否则不能关联 ]
|
|
|
formData.put("textField_m0yo7tsk", _getWorkFlowStatusName(UtilMap.getString(rTask, "projectId"), UtilMap.getString(rTask, "tfsId")));
|
|
|
// 返回检查项
|
|
|
formData.put("tableField_lqxxgj4s", tList.stream().map(item -> {
|
|
@@ -557,9 +557,6 @@ public class AWImplClient implements AWClint {
|
|
|
}).collect(Collectors.toList()));
|
|
|
// prd 7.17 技术检查项需要匹配userId
|
|
|
formData.put("userId", extra.get("userId"));
|
|
|
- // prd 9.12 添加任务状态字段
|
|
|
- formData.put("textField_m0yo7tsj",taskData.get(AWServer.TASK_WAFER));
|
|
|
- formData.put("textField_m0yo7tsk",_getWorkFlowStatusName(UtilMap.getString(rTask,"projectId"),UtilMap.getString(rTask,"tfsId"))); // 任务状态
|
|
|
return formData;
|
|
|
}
|
|
|
|
|
@@ -1004,11 +1001,6 @@ public class AWImplClient implements AWClint {
|
|
|
});
|
|
|
}
|
|
|
|
|
|
- private String _getWorkFlowStatusName(String projectId,String tfsId) {
|
|
|
- List<Map> customFlowStatus = tbClient.queryProjectCustomFlowStatus(projectId, UtilMap.map("tfsIds",tfsId));
|
|
|
- return UtilMap.getString(customFlowStatus.get(0),"name");
|
|
|
- }
|
|
|
-
|
|
|
// TB与宜搭userId转换 fixme 提取 tbService [ ppExt: 若TB未启用人员返回为空 ]
|
|
|
private String _convertUserId(String userId, boolean isTBID) {
|
|
|
List<Map> tbMap = tbClient.idMapQuery(userId, isTBID);
|