From b85a7f932b9d789a2e9bdb36e366c36c2e1eb3cc Mon Sep 17 00:00:00 2001 From: zxl <763096477@qq.com> Date: 星期四, 17 四月 2025 11:31:53 +0800 Subject: [PATCH] 查询考核成绩为null,为前端添加数据默认为0 --- 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..3a5bce8 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 + INNER 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