From e5c29d6ac2b210a9385723598d79a42ae5a9679e Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期三, 23 四月 2025 15:20:13 +0800 Subject: [PATCH] Merge branch 'master' of http://8.140.179.55:20000/r/pipIrr-SV --- pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeMapper.xml | 28 ++++++++++++++++++++++++++++ 1 files changed, 28 insertions(+), 0 deletions(-) diff --git a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeMapper.xml b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeMapper.xml index af44947..e580bd8 100644 --- a/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeMapper.xml +++ b/pipIrr-platform/pipIrr-global/src/main/resources/mapper/PrIntakeMapper.xml @@ -737,4 +737,32 @@ </set> where id = #{id,jdbcType=BIGINT} </update> + + <!--鑾峰彇鏈粦瀹氬埌杞亴缁勭殑鍙栨按鍙e垪琛�--> + <select id="getFreeIntakes" resultType="com.dy.pipIrrGlobal.voPr.VoIntakeSimple"> + SELECT + id AS intakeId, + name AS intakeName + FROM pr_intake inta + <where> + AND inta.deleted = 0 + AND NOT EXISTS (SELECT 1 FROM ir_group_intake gi WHERE gi.intake_id = inta.id) + <if test="intakeName != null and intakeName != ''"> + AND LOWER(inta.name) LIKE CONCAT('%', #{intakeName}, '%') + </if> + </where> + </select> + + <!--鑾峰彇鏈粦瀹氳櫄鎷熷崱鐨勫彇姘村彛鍒楄〃锛岀粰鍙栨按鍙g粦铏氭嫙鍗′娇鐢�--> + <select id="getNotLinkVcIntakes" resultType="com.dy.pipIrrGlobal.voPr.VoIntakeSimple"> + SELECT + id AS intakeId, + name AS intakeName + FROM pr_intake inta + WHERE NOT EXISTS ( + SELECT 1 + FROM pr_intake_vc iv + WHERE iv.intake_id = inta.id + ) AND inta.deleted = 0 + </select> </mapper> \ No newline at end of file -- Gitblit v1.8.0