From 87a7362709ac249c3965a392842cf24bc402b6c1 Mon Sep 17 00:00:00 2001 From: fuliqi <fuliqi@qq.com> Date: 星期一, 28 十月 2024 11:49:09 +0800 Subject: [PATCH] 档案考核比、一机一档合格、注册率。数据中心视频类优化完 --- ycl-server/src/main/resources/mapper/zgyw/DynamicColumnMapper.xml | 19 +++++++++++++++++++ 1 files changed, 19 insertions(+), 0 deletions(-) diff --git a/ycl-server/src/main/resources/mapper/zgyw/DynamicColumnMapper.xml b/ycl-server/src/main/resources/mapper/zgyw/DynamicColumnMapper.xml index d1e7e33..c640b36 100644 --- a/ycl-server/src/main/resources/mapper/zgyw/DynamicColumnMapper.xml +++ b/ycl-server/src/main/resources/mapper/zgyw/DynamicColumnMapper.xml @@ -72,4 +72,23 @@ WHERE id = #{item.id} </foreach> </update> + <delete id="deleteBatch"> + delete from t_dynamic_column_value where id in + <foreach collection="deleteList" open="(" close=")" separator="," item="id"> + #{id} + </foreach> + </delete> + + <select id="getDynamicsByIds" resultType="com.ycl.platform.domain.vo.DynamicColumnVO"> + SELECT + * + FROM + t_dynamic_column_value dcv + LEFT JOIN t_dynamic_column dc ON dc.id = dcv.dynamic_column_id AND dc.table_name = #{tableName} + WHERE + dcv.ref_id in + <foreach collection="ids" item="id" separator="," open="(" close=")"> + #{id} + </foreach> + </select> </mapper> -- Gitblit v1.8.0