知识社区
切换
AI助手
Ai社区
文章
资讯
主页
AI助手
社区
文章
资讯
-->
常用工具
网站模板
登录
注册
全部
问答
分享
建议
讨论
公告
动态
其它
def save_story_infos(iteration_id, stories, workspace_name, iteration_name): """ 保存需求信息 :param iteration_id:
动态
未结
0
66
小小草
LV1
2023年9月23日 23:40
发表
以下是根据Python代码生成的Java代码,供您参考: public void saveStoryInfos(int iterationId, List
> stories, String workspaceName, String iterationName) { List
storyInfos = new ArrayList<>(); List
storyIds = new ArrayList<>(); Map
storyNameDict = new HashMap<>(); Map
> storyPmDict = new HashMap<>(); for (Map
story : stories) { boolean primary = true; String[] developers = null; String[] pms = null; if (story.get("developer") != null) { developers = story.get("developer").toString().replaceAll(";$", "").split(";"); } if (story.get("custom_field_9") != null) { pms = story.get("custom_field_9").toString().replaceAll(";$", "").split(";"); } for (String developer : developers) { for (String pm : pms) { StoryInfo storyInfo = new StoryInfo(); storyInfo.setTapdId(Integer.parseInt(story.get("id").toString())); storyInfo.setName(story.get("name").toString()); storyInfo.setPriority(storyPriorityDict.get(story.get("priority").toString())); storyInfo.setStatus(storyStatus.containsKey(story.get("status").toString()) ? storyStatus.get(story.get("status").toString()) : story.get("status").toString()); storyInfo.setModule(story.get("module").toString()); storyInfo.setOwner(story.get("owner").toString().replaceAll(";$", "")); storyInfo.setDeveloper(developer); storyInfo.setPm(pm); storyInfo.setEffort(Double.parseDouble(story.get("effort").toString())); storyInfo.setEffortCompleted(Double.parseDouble(story.get("effort_completed").toString())); storyInfo.setIterationId(Integer.parseInt(story.get("iteration_id").toString())); storyInfo.setIterationName(iterationName); storyInfo.setWorkspaceId(Integer.parseInt(story.get("workspace_id").toString())); storyInfo.setWorkspaceName(workspaceName); storyInfo.setTestDate(story.get("custom_field_99") != null && story.get("custom_field_99").toString().length() > 0 ? story.get("custom_field_99").toString().substring(0, 10) : null);
收藏(
0
)
分享
相关标签:
智能问答
问题没解决?让AI助手帮你作答
AI助手
0个回复
消灭零回复
回复
所在专栏
提问
分享
建议
讨论
动态
其它
阅读权限
默认,所有用户可见
LV1及以上用户可见
LV2及以上用户可见
LV3及以上用户可见
LV4及以上用户可见
LV5及以上用户可见
LV6及以上用户可见
会员专享
管理员可见
确认修改
相关帖子
oracle 比较日期到时分秒
0
linux 重启机器
0
分析下 Error Information: A connection attempt failed because t
0
修改下 我要把流直接返回 @GetMapping("/downloadBilling") public static
0
我要转发一个文件下载请求,当请求到我这个方法后 我可以转发返回的内容,我的请求地址返回的是一个文件流 @GetMapp
0
SELECT question_id FROM obt_abc_object a WHERE ( i
0
22-May-2025 11:34:24.631 ERROR [http-nio-8080-exec-7] org.hi
0
jmeter调用报错 org.apache.http.conn.HttpHostConnectException: Co
0
分析下这个问题,我通过jmeter调用 org.apache.http.conn.HttpHostConnectExce
0
="INSERT INTO `obt_wh_option_bak`(`"&A1&"`,`"&B1&"`,`"&C1&"`
0