项目评估流程
This commit is contained in:
+115
-4
@@ -27,7 +27,7 @@
|
||||
|
||||
</delete>
|
||||
|
||||
<select id="selectCount" resultType="java.lang.Integer" >
|
||||
<select id="selectCount" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
count(sar_stand_project_library.id ) as total
|
||||
FROM
|
||||
@@ -82,7 +82,7 @@
|
||||
)
|
||||
</select>
|
||||
|
||||
<select id="selectPages" resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary" >
|
||||
<select id="selectPages" resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
SELECT
|
||||
sar_stand_project_library.*,
|
||||
tu.UNAME as uName
|
||||
@@ -92,10 +92,10 @@
|
||||
WHERE
|
||||
(
|
||||
<if test="flag == 1">
|
||||
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 2">
|
||||
id IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
id IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
@@ -138,4 +138,115 @@
|
||||
)
|
||||
limit ${(page-1)*size},${page*size}
|
||||
</select>
|
||||
<select id="selectPagesWorkFlow"
|
||||
resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
SELECT
|
||||
sar_stand_project_library.*,
|
||||
tu.UNAME as uName
|
||||
FROM
|
||||
sar_stand_project_library
|
||||
LEFT JOIN ts_user tu ON project_manager = tu.USID
|
||||
WHERE
|
||||
(
|
||||
id IN ( SELECT DISTINCT project_id FROM sar_stand_project_relation WHERE project_id NOT in (
|
||||
SELECT DISTINCT project_id FROM sar_stand_project_relation WHERE stand_id NOT in (SELECT DISTINCT STAND_ID FROM
|
||||
sar_stand_items)
|
||||
) )
|
||||
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')
|
||||
</if>
|
||||
<if test="qu.projectName != null">
|
||||
AND project_name LIKE concat(concat('%',#{qu.projectName}),'%')
|
||||
</if>
|
||||
<if test="qu.projectClassification != null">
|
||||
AND project_classification LIKE concat(concat('%',#{qu.projectClassification}),'%')
|
||||
</if>
|
||||
<if test="qu.projectPlatfor != null">
|
||||
AND project_platfor LIKE concat(concat('%',#{qu.projectPlatfor}),'%')
|
||||
</if>
|
||||
<if test="qu.projectGroup != null">
|
||||
AND project_group LIKE concat(concat('%',#{qu.projectGroup}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStatus != null">
|
||||
AND project_status LIKE concat(concat('%',#{qu.projectStatus}),'%')
|
||||
</if>
|
||||
<if test="qu.currentNode != null">
|
||||
AND current_node LIKE concat(concat('%',#{qu.currentNode}),'%')
|
||||
</if>
|
||||
<if test="qu.projectLevel != null">
|
||||
AND project_level LIKE concat(concat('%',#{qu.projectLevel}),'%')
|
||||
</if>
|
||||
<if test="qu.projectManager != null">
|
||||
AND project_manager LIKE concat(concat('%',#{qu.projectManager}),'%')
|
||||
</if>
|
||||
<if test="qu.productLine != null">
|
||||
AND product_line LIKE concat(concat('%',#{qu.productLine}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStartDate != null">
|
||||
AND project_start_date >= #{qu.projectStartDate}
|
||||
</if>
|
||||
<if test="qu.projectEndDate != null">
|
||||
AND project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
limit ${(page-1)*size},${page*size}
|
||||
|
||||
</select>
|
||||
<select id="selectCountWorkFlow" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
count(sar_stand_project_library.id ) as total
|
||||
FROM
|
||||
sar_stand_project_library
|
||||
LEFT JOIN ts_user tu ON project_manager = tu.USID
|
||||
WHERE
|
||||
(
|
||||
id IN ( SELECT DISTINCT project_id FROM sar_stand_project_relation WHERE project_id NOT in (
|
||||
SELECT DISTINCT project_id FROM sar_stand_project_relation WHERE stand_id NOT in (SELECT DISTINCT STAND_ID FROM
|
||||
sar_stand_items)
|
||||
))
|
||||
|
||||
<if test="qu != null">
|
||||
<if test="qu.projectNumber != null">
|
||||
AND project_number LIKE concat(concat('%',#{qu.projectNumber}),'%')
|
||||
</if>
|
||||
<if test="qu.projectName != null">
|
||||
AND project_name LIKE concat(concat('%',#{qu.projectName}),'%')
|
||||
</if>
|
||||
<if test="qu.projectClassification != null">
|
||||
AND project_classification LIKE concat(concat('%',#{qu.projectClassification}),'%')
|
||||
</if>
|
||||
<if test="qu.projectPlatfor != null">
|
||||
AND project_platfor LIKE concat(concat('%',#{qu.projectPlatfor}),'%')
|
||||
</if>
|
||||
<if test="qu.projectGroup != null">
|
||||
AND project_group LIKE concat(concat('%',#{qu.projectGroup}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStatus != null">
|
||||
AND project_status LIKE concat(concat('%',#{qu.projectStatus}),'%')
|
||||
</if>
|
||||
<if test="qu.currentNode != null">
|
||||
AND current_node LIKE concat(concat('%',#{qu.currentNode}),'%')
|
||||
</if>
|
||||
<if test="qu.projectLevel != null">
|
||||
AND project_level LIKE concat(concat('%',#{qu.projectLevel}),'%')
|
||||
</if>
|
||||
<if test="qu.projectManager != null">
|
||||
AND project_manager LIKE concat(concat('%',#{qu.projectManager}),'%')
|
||||
</if>
|
||||
<if test="qu.productLine != null">
|
||||
AND product_line LIKE concat(concat('%',#{qu.productLine}),'%')
|
||||
</if>
|
||||
<if test="qu.projectStartDate != null">
|
||||
AND project_start_date >= #{qu.projectStartDate}
|
||||
</if>
|
||||
<if test="qu.projectEndDate != null">
|
||||
AND project_end_date <= #{qu.projectEndDate}
|
||||
</if>
|
||||
</if>
|
||||
)
|
||||
limit ${(page-1)*size},${page*size}
|
||||
</select>
|
||||
</mapper>
|
||||
|
||||
Reference in New Issue
Block a user