Merge pull request 'fix(软件工厂): 最多缺陷个人改为最多缺陷解决个人;测试用例执行数统计错误' (#852) from liuhuazhong/microservices:xjy_software_fact_statis into xjy_software_fact_statis
This commit is contained in:
commit
24b98366ab
|
@ -114,7 +114,8 @@ public class SoftwareFactStatisticsServiceImpl extends BaseController {
|
|||
Long bugMaxProjectId = statisForgeMapper.countForgeProjectByProject(f2);
|
||||
ZonePmsProject bugMaxProject = statisPmsMapper.selectPmsProjectById(bugMaxProjectId);
|
||||
res.put("bugMaxProject", bugMaxProject == null ?"": bugMaxProject.getProjectName());
|
||||
//缺陷最多个人
|
||||
//缺陷解决最多个人
|
||||
f2.setStatusIds(ISSUE_FINISHED);
|
||||
Long bugMaxAssignerId = statisForgeMapper.countForgeProjectByAssigner(f2);
|
||||
String bugMaxAssigner = statisPmsMapper.selectPmsUserByGitlinkId(bugMaxAssignerId);
|
||||
res.put("bugMaxAssigner", bugMaxAssigner);
|
||||
|
@ -162,9 +163,9 @@ public class SoftwareFactStatisticsServiceImpl extends BaseController {
|
|||
res.put("yesterdayFinishNeed", yesterdayFinishNeed);
|
||||
//昨日测试用例执行
|
||||
ForgeProject forgeProjectTest = new ForgeProject();
|
||||
forgeProjectFinish.setStatusIds(Arrays.asList(TASK_CASE_STATUS_PASS, TASK_CASE_STATUS_FAIL, TASK_CASE_STATUS_BLOCK, TASK_CASE_STATUS_SKIP));
|
||||
forgeProjectFinish.setUpdateTimeS(dayStartAndEnd[0]);
|
||||
forgeProjectFinish.setUpdateTimeE(dayStartAndEnd[1]);
|
||||
forgeProjectTest.setStatusIds(Arrays.asList(TASK_CASE_STATUS_PASS, TASK_CASE_STATUS_FAIL, TASK_CASE_STATUS_BLOCK, TASK_CASE_STATUS_SKIP));
|
||||
forgeProjectTest.setUpdateTimeS(dayStartAndEnd[0]);
|
||||
forgeProjectTest.setUpdateTimeE(dayStartAndEnd[1]);
|
||||
Long yesterdayTestCase = statisPmsMapper.countTestCaseInSheet(forgeProjectTest);
|
||||
res.put("yesterdayTestCase", yesterdayTestCase);
|
||||
|
||||
|
|
|
@ -93,6 +93,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="testStatus != null">test_status,</if>
|
||||
<if test="testerId != null">tester_id,</if>
|
||||
<if test="stepStatus != null">step_status,</if>
|
||||
<if test="createTime != null">create_time,</if>
|
||||
<if test="createBy != null">create_by,</if>
|
||||
</trim>
|
||||
<trim prefix="values (" suffix=")" suffixOverrides=",">
|
||||
<if test="projectTestsheetId != null">#{projectTestsheetId},</if>
|
||||
|
@ -100,6 +102,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="testStatus != null">#{testStatus},</if>
|
||||
<if test="testerId != null">#{testerId},</if>
|
||||
<if test="stepStatus != null">#{stepStatus},</if>
|
||||
<if test="createTime != null">#{createTime},</if>
|
||||
<if test="createBy != null">#{createBy},</if>
|
||||
</trim>
|
||||
</insert>
|
||||
|
||||
|
@ -110,6 +114,8 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||
<if test="projectTestcaseId != null">project_testcase_id = #{projectTestcaseId},</if>
|
||||
<if test="testStatus != null">test_status = #{testStatus},</if>
|
||||
<if test="stepStatus != null">step_status = #{stepStatus},</if>
|
||||
<if test="updateTime != null">update_time = #{updateTime},</if>
|
||||
<if test="updateBy != null">update_by = #{updateBy},</if>
|
||||
tester_id = #{testerId}
|
||||
</trim>
|
||||
where id = #{id}
|
||||
|
|
|
@ -46,10 +46,10 @@
|
|||
select id from pms_project_testsheet where pms_project_id = #{pmProjectId}
|
||||
)
|
||||
</if>
|
||||
<if test="createTimeS != null ">and created_on >= #{createTimeS}</if>
|
||||
<if test="createTimeE != null ">and created_on <= #{createTimeE}</if>
|
||||
<if test="updateTimeS != null ">and updated_on >= #{updateTimeS}</if>
|
||||
<if test="updateTimeE != null ">and updated_on <= #{updateTimeE}</if>
|
||||
<if test="createTimeS != null ">and create_time >= #{createTimeS}</if>
|
||||
<if test="createTimeE != null ">and create_time <= #{createTimeE}</if>
|
||||
<if test="updateTimeS != null ">and update_time >= #{updateTimeS}</if>
|
||||
<if test="updateTimeE != null ">and update_time <= #{updateTimeE}</if>
|
||||
</where>
|
||||
</select>
|
||||
|
||||
|
|
Loading…
Reference in New Issue