下拉填充
This commit is contained in:
+55
@@ -159,6 +159,31 @@
|
||||
|
||||
limit ${(page-1)*size},${page*size}
|
||||
</select>
|
||||
|
||||
<select id="selectPagessolostar" resultType="java.lang.String">
|
||||
SELECT
|
||||
<if test="type == 'ProjectClassification' ">
|
||||
distinct library.project_classification
|
||||
</if>
|
||||
<if test="type == 'ProjectStatus' ">
|
||||
distinct library.project_status
|
||||
</if>
|
||||
FROM
|
||||
sar_stand_project_library as library
|
||||
LEFT JOIN sar_stand_project_team as team
|
||||
ON team.project_code = library.project_number
|
||||
WHERE
|
||||
<if test="flag == 1">
|
||||
library.id NOT IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 2">
|
||||
library.id IN ( SELECT project_id FROM sar_stand_project_relation )
|
||||
</if>
|
||||
<if test="flag == 4">
|
||||
1=1
|
||||
</if>
|
||||
</select>
|
||||
|
||||
<select id="selectPagesWorkFlow"
|
||||
resultType="com.adc.da.slrs.sarStandProjectLibrary.entity.SarStandProjectLibrary">
|
||||
SELECT
|
||||
@@ -223,6 +248,36 @@
|
||||
limit ${(page-1)*size},${page*size}
|
||||
|
||||
</select>
|
||||
|
||||
<select id="selectPagesWorkFlowsolostar"
|
||||
resultType="java.lang.String">
|
||||
SELECT
|
||||
<if test="type == 'ProjectClassification' ">
|
||||
distinct library.project_classification
|
||||
</if>
|
||||
<if test="type == 'ProjectStatus' ">
|
||||
distinct library.project_status
|
||||
</if>
|
||||
FROM
|
||||
sar_stand_project_library as library
|
||||
LEFT JOIN sar_stand_project_team as team ON team.project_code = library.project_number
|
||||
WHERE
|
||||
(
|
||||
library.id IN (
|
||||
SELECT DISTINCT
|
||||
project_id
|
||||
FROM
|
||||
sar_stand_project_relation
|
||||
WHERE
|
||||
project_id NOT IN (
|
||||
SELECT DISTINCT
|
||||
STAND_ID
|
||||
FROM
|
||||
sar_stand_items
|
||||
)
|
||||
)
|
||||
)
|
||||
</select>
|
||||
<select id="selectCountWorkFlow" resultType="java.lang.Integer">
|
||||
SELECT
|
||||
count(
|
||||
|
||||
Reference in New Issue
Block a user