fix(接口测试): 接口定义-API列表/CASE列表-单独/批量删除报错-不可删除

--user=郭雨琦
--bug=1015014
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001015014
This commit is contained in:
guoyuqi 2022-07-19 15:23:51 +08:00 committed by xiaomeinvG
parent 14c21e4896
commit fe40978db0
2 changed files with 2 additions and 2 deletions

View File

@ -355,7 +355,7 @@
<update id="removeToGcByExample" parameterType="io.metersphere.base.domain.ApiDefinitionExampleWithOperation">
update api_definition
set original_state=status,
status = 'Trash', delete_user_id = #{operator},delete_time = #{operationTime}, to_be_updated = 'false'
status = 'Trash', delete_user_id = #{operator},delete_time = #{operationTime}, to_be_updated = 0
<if test="_parameter != null">
<include refid="Example_Where_Clause"/>
</if>

View File

@ -861,7 +861,7 @@
<update id="deleteToGc" parameterType="io.metersphere.api.dto.definition.ApiTestCaseRequest">
update api_test_case
set original_status=status,
status = 'Trash',delete_time = #{deleteTime},delete_user_id = #{deleteUserId}, to_be_updated = 'false'
status = 'Trash',delete_time = #{deleteTime},delete_user_id = #{deleteUserId}, to_be_updated = 0
where id IN
<foreach collection="ids" item="v" separator="," open="(" close=")">
#{v}