From dd5c0e7704a9ed729492b328e42d22014067b0b4 Mon Sep 17 00:00:00 2001 From: wente <329538422@qq.com> Date: 星期二, 19 十二月 2023 14:29:12 +0800 Subject: [PATCH] 基线表 --- modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml index ddbcb48..c710225 100644 --- a/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml +++ b/modules/mainPart/src/main/resources/mapper/configItemWarehouse/WarehouseConfigItemDao.xml @@ -54,9 +54,10 @@ from config_item_warehouse_detail a WHERE a.is_delete = 0 and a.project_id = ${projectId} + and a.select_id is NULL <if test="ids!=null and ids!=''"> AND id not in (${ids}) + and a.id NOT IN (select select_id from config_item_warehouse_detail where select_id is not null) </if> - and a.id NOT IN (select select_id from config_item_warehouse_detail where select_id is not null) </select> </mapper> -- Gitblit v1.9.1