优化了死亡模块,修改状态在群不在群

This commit is contained in:
zyk
2025-08-24 12:17:22 +08:00
parent 357595b6f4
commit d9d489c1a0
3 changed files with 52 additions and 6 deletions

View File

@@ -52,7 +52,7 @@
where id = #{id}
</select>
<!-- 根据管理耳号查询sheep_file视图信息 - 修复删除不存在的status字段 -->
<!-- 根据管理耳号查询sheep_file视图信息 -->
<select id="selectSheepFileByManageTags" parameterType="String" resultType="java.util.Map">
select
id as sheepId,
@@ -145,7 +145,7 @@
</foreach>
</delete>
<!-- 更新羊只状态 - 根据实际的sheep_file表结构调整字段名 -->
<!-- 更新羊只繁育状态 - 保留原有功能 -->
<update id="updateSheepFileStatus">
UPDATE sheep_file
SET breed = #{status},
@@ -154,4 +154,13 @@
AND is_delete = 0
</update>
<!-- 新增:更新羊只在群状态 -->
<update id="updateSheepStatus">
UPDATE sheep_file
SET status = #{status},
update_time = NOW()
WHERE id = #{sheepId}
AND is_delete = 0
</update>
</mapper>