|
@@ -60,16 +60,19 @@
|
|
|
|
|
|
|
|
|
|
<select id="scheduleProjectAll" resultType="com.jeeplus.modules.sg.scheduleView.entity.ScheduleView">
|
|
<select id="scheduleProjectAll" resultType="com.jeeplus.modules.sg.scheduleView.entity.ScheduleView">
|
|
- select reserveProjectName,
|
|
|
|
- projectId,
|
|
|
|
- projectName,
|
|
|
|
- status,
|
|
|
|
- acquisitionStatus,
|
|
|
|
- advanceStatus,
|
|
|
|
- constructionStatus,
|
|
|
|
- whetherCloseStatus,
|
|
|
|
- settStatus
|
|
|
|
- from xm_material_project
|
|
|
|
|
|
+ select
|
|
|
|
+ xmp.reserveProjectName,
|
|
|
|
+ xmp.projectId,
|
|
|
|
+ xmp.projectName,
|
|
|
|
+ xmp.status,
|
|
|
|
+ xmp.acquisitionStatus,
|
|
|
|
+ xmp.advanceStatus,
|
|
|
|
+ xmp.constructionStatus,
|
|
|
|
+ xmp.whetherCloseStatus,
|
|
|
|
+ xmp.settStatus
|
|
|
|
+ from xm_material_project xmp
|
|
|
|
+ left join xm_project_assignment xpa
|
|
|
|
+ on xmp.reserveProjectName = xpa.reserveProjectName
|
|
<where>
|
|
<where>
|
|
1 = 1
|
|
1 = 1
|
|
and
|
|
and
|
|
@@ -81,23 +84,28 @@
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dataScope != null and dataScope != ''">
|
|
|
|
+ ${dataScope}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
<select id="disAll" resultType="com.jeeplus.modules.sg.scheduleView.entity.ScheduleView">
|
|
<select id="disAll" resultType="com.jeeplus.modules.sg.scheduleView.entity.ScheduleView">
|
|
select a.projectName,
|
|
select a.projectName,
|
|
- a.reserveProjectName,
|
|
|
|
- a.projectId,
|
|
|
|
- a.projectType,
|
|
|
|
- a.status,
|
|
|
|
- a.acquisitionStatus,
|
|
|
|
- a.advanceStatus,
|
|
|
|
- a.constructionStatus,
|
|
|
|
- a.settStatus,
|
|
|
|
- b.proc_ins_id
|
|
|
|
- from xm_material_project a
|
|
|
|
- LEFT JOIN xm_construction_clarificaiton b
|
|
|
|
- on a.reserveProjectName = b.reserveProjectName
|
|
|
|
|
|
+ a.reserveProjectName,
|
|
|
|
+ a.projectId,
|
|
|
|
+ a.projectType,
|
|
|
|
+ a.status,
|
|
|
|
+ a.acquisitionStatus,
|
|
|
|
+ a.advanceStatus,
|
|
|
|
+ a.constructionStatus,
|
|
|
|
+ a.settStatus,
|
|
|
|
+ b.proc_ins_id
|
|
|
|
+ from xm_material_project a
|
|
|
|
+ LEFT JOIN xm_construction_clarificaiton b
|
|
|
|
+ on a.reserveProjectName = b.reserveProjectName
|
|
|
|
+ left join xm_project_assignment xpa
|
|
|
|
+ on a.reserveProjectName = xpa.reserveProjectName
|
|
<where>
|
|
<where>
|
|
1 = 1
|
|
1 = 1
|
|
and
|
|
and
|
|
@@ -109,6 +117,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dataScope != null and dataScope != ''">
|
|
|
|
+ ${dataScope}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -124,7 +135,11 @@
|
|
a.settStatus,
|
|
a.settStatus,
|
|
b.proc_ins_id,
|
|
b.proc_ins_id,
|
|
b.the_number as 'receiveView.theNumber'
|
|
b.the_number as 'receiveView.theNumber'
|
|
- from xm_material_project a left join md_acquisition_process b on a.reserveProjectName = b.reserveProjectName
|
|
|
|
|
|
+ from xm_material_project a
|
|
|
|
+ left join md_acquisition_process b
|
|
|
|
+ on a.reserveProjectName = b.reserveProjectName
|
|
|
|
+ left join xm_project_assignment xpa
|
|
|
|
+ on a.reserveProjectName = xpa.reserveProjectName
|
|
<where>
|
|
<where>
|
|
1 = 1
|
|
1 = 1
|
|
and
|
|
and
|
|
@@ -136,6 +151,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dataScope != null and dataScope != ''">
|
|
|
|
+ ${dataScope}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -150,7 +168,11 @@
|
|
a.constructionStatus,
|
|
a.constructionStatus,
|
|
a.settStatus,
|
|
a.settStatus,
|
|
b.proc_ins_id
|
|
b.proc_ins_id
|
|
- from xm_material_project a left join xm_settlement_process b on a.reserveProjectName = b.reserveProjectName
|
|
|
|
|
|
+ from xm_material_project a
|
|
|
|
+ left join xm_settlement_process b
|
|
|
|
+ on a.reserveProjectName = b.reserveProjectName
|
|
|
|
+ left join xm_project_assignment xpa
|
|
|
|
+ on a.reserveProjectName = xpa.reserveProjectName
|
|
<where>
|
|
<where>
|
|
1 = 1
|
|
1 = 1
|
|
and
|
|
and
|
|
@@ -162,6 +184,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dataScope != null and dataScope != ''">
|
|
|
|
+ ${dataScope}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -176,7 +201,11 @@
|
|
a.constructionStatus,
|
|
a.constructionStatus,
|
|
a.settStatus,
|
|
a.settStatus,
|
|
b.proc_ins_id
|
|
b.proc_ins_id
|
|
- from xm_material_project a left join xm_nonpower_process b on a.reserveProjectName = b.reserveProjectName
|
|
|
|
|
|
+ from xm_material_project a
|
|
|
|
+ left join xm_nonpower_process b
|
|
|
|
+ on a.reserveProjectName = b.reserveProjectName
|
|
|
|
+ left join xm_project_assignment xpa
|
|
|
|
+ on a.reserveProjectName = xpa.reserveProjectName
|
|
<where>
|
|
<where>
|
|
1 = 1
|
|
1 = 1
|
|
and
|
|
and
|
|
@@ -188,6 +217,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dataScope != null and dataScope != ''">
|
|
|
|
+ ${dataScope}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
|
|
|
|
@@ -202,7 +234,11 @@
|
|
a.constructionStatus,
|
|
a.constructionStatus,
|
|
a.settStatus,
|
|
a.settStatus,
|
|
b.proc_ins_id
|
|
b.proc_ins_id
|
|
- from xm_material_project a left join sg_construction_process b on a.reserveProjectName = b.reserveProjectName
|
|
|
|
|
|
+ from xm_material_project a
|
|
|
|
+ left join sg_construction_process b
|
|
|
|
+ on a.reserveProjectName = b.reserveProjectName
|
|
|
|
+ left join xm_project_assignment xpa
|
|
|
|
+ on a.reserveProjectName = xpa.reserveProjectName
|
|
<where>
|
|
<where>
|
|
1 = 1
|
|
1 = 1
|
|
and
|
|
and
|
|
@@ -214,6 +250,9 @@
|
|
</foreach>
|
|
</foreach>
|
|
)
|
|
)
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="dataScope != null and dataScope != ''">
|
|
|
|
+ ${dataScope}
|
|
|
|
+ </if>
|
|
</where>
|
|
</where>
|
|
</select>
|
|
</select>
|
|
</mapper>
|
|
</mapper>
|