Explorar el Código

王耀栋--工作台模块代码,修改工作详情饼状图显示bug,添加任务列表按照开始时间排序

wangyaodong hace 3 años
padre
commit
06f9019587

+ 2 - 1
simulation-resource-server/src/main/resources/mapper/project/SimulationProjectTaskMapper.xml

@@ -25,6 +25,7 @@
         select *
         from simulation_manual_project_task
         where is_deleted = '0' and p_id = #{pId,jdbcType=VARCHAR}
+        order by run_start_time desc
     </select>
 
     <!--根据项目id查询任务列表总数-->
@@ -46,7 +47,7 @@
     <select id="selectRunResultCount" parameterType="string" resultType="api.common.pojo.vo.project.ProjectRunResultRatioNumVo">
         select run_result as resultName, count(*) as num
         from simulation_manual_project_task
-        where p_id = #{id,jdbcType=VARCHAR} and is_deleted = '0' and run_result != null and run_result != ""
+        where p_id = #{id,jdbcType=VARCHAR} and is_deleted = '0' and run_result is not null and run_result != ""
         group by run_result
     </select>