fix(测试计划): 修复批量编辑标签问题

--bug=1041279 --user=王旭 【测试计划】计划列表-批量编辑标签-开启追加标签-原标签被覆盖了 https://www.tapd.cn/55049933/s/1521807
This commit is contained in:
WangXu10 2024-05-28 10:20:51 +08:00 committed by Craftsman
parent c792eb55e2
commit 8e9c8d9411
1 changed files with 6 additions and 1 deletions

View File

@ -18,6 +18,11 @@
<result column="tags" jdbcType="VARCHAR" property="tags" typeHandler="io.metersphere.handler.ListTypeHandler" /> <result column="tags" jdbcType="VARCHAR" property="tags" typeHandler="io.metersphere.handler.ListTypeHandler" />
</resultMap> </resultMap>
<resultMap id="BaseResultMap" type="io.metersphere.plan.domain.TestPlan">
<result column="tags" jdbcType="VARCHAR" property="tags" typeHandler="io.metersphere.handler.ListTypeHandler" />
</resultMap>
<update id="updateDefaultGroupId"> <update id="updateDefaultGroupId">
UPDATE test_plan UPDATE test_plan
SET group_id = 'NONE' SET group_id = 'NONE'
@ -385,7 +390,7 @@
</foreach> </foreach>
</update> </update>
<select id="getTagsByIds" resultType="io.metersphere.plan.domain.TestPlan"> <select id="getTagsByIds" resultMap="BaseResultMap">
select id, tags from test_plan select id, tags from test_plan
where id in where id in
<foreach collection="ids" item="id" open="(" separator="," close=")"> <foreach collection="ids" item="id" open="(" separator="," close=")">