下拉填充

This commit is contained in:
yuezhihang
2021-11-08 13:55:35 +08:00
parent 82de89f8c2
commit b38cfc2a01
5 changed files with 111 additions and 0 deletions
@@ -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(