Commit 63f759e2 authored by wangxl's avatar wangxl

1

parent 099c264d
...@@ -9,7 +9,8 @@ ...@@ -9,7 +9,8 @@
</sql> </sql>
<select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComProjectTaskDTO"> <select id="getListByPage" resultType="com.yiboshi.science.param.dto.ComProjectTaskDTO">
select b.id,b.test_state,b.start_date,b.end_date,c.id as proj_id,c.proj_name,c.proj_no,c.version_no,c.proj_class,c.report_year,c.start_date proj_start,c.end_date proj_end,c.proj_state,d.unit_name app_unit_name,e.person_name app_person_name select b.id,b.test_state,b.start_date,b.end_date,c.id as proj_id,c.proj_name,c.proj_no,c.version_no,c.proj_class,c.report_year,c.start_date proj_start,c.end_date proj_end,c.proj_state,d.unit_name app_unit_name,e.person_name app_person_name
from com_project c left join com_project_task b on b.proj_id=c.id from com_project c
left join com_project_task b on b.proj_id=c.id
left join com_unit d on c.app_unit_id=d.id left join com_unit d on c.app_unit_id=d.id
left join com_person e on c.app_person_id=e.id left join com_person e on c.app_person_id=e.id
<where> <where>
...@@ -22,7 +23,7 @@ ...@@ -22,7 +23,7 @@
ifnull(sum(case when c.proj_state=50 and b.test_state in(1,10,20) then 1 else 0 end),0) count3, ifnull(sum(case when c.proj_state=50 and b.test_state in(1,10,20) then 1 else 0 end),0) count3,
ifnull(sum(case when c.proj_state=50 then 1 else 0 end),0) count4 ifnull(sum(case when c.proj_state=50 then 1 else 0 end),0) count4
from com_project c from com_project c
left join com_project_test b on b.proj_id=c.id left join com_project_task b on b.proj_id=c.id
<where> <where>
${ew.sqlSegment} ${ew.sqlSegment}
</where> </where>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment