修改分组页面,新增名称重复校验以及查询的bug

This commit is contained in:
wyt
2025-09-03 10:35:09 +08:00
parent 02634eb7b6
commit e78e0c039b
3 changed files with 24 additions and 0 deletions

View File

@@ -126,5 +126,11 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
</foreach>
</delete>
<select id="selectByParentIdAndGroupName" resultMap="BasSheepGroupResult">
SELECT * FROM bas_sheep_group
WHERE parent_id = #{parentId} AND group_name = #{groupName}
LIMIT 1
</select>
</mapper>