物种分类优化

This commit is contained in:
顾君禹
2025-09-07 15:12:46 +08:00
parent 931c37dfbf
commit af3929c091
8 changed files with 267 additions and 107 deletions

View File

@@ -2,6 +2,7 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="cn.iocoder.yudao.module.farm.dal.mysql.specieslibrary.SpeciesLibraryMapper">
<!--
一般情况下,尽可能使用 Mapper 进行 CRUD 增删改查即可。
无法满足的场景,例如说多表关联查询,才使用 XML 编写 SQL。
@@ -18,5 +19,9 @@
<if test="baseId != null and baseId !=''">AND base_id = #{baseId}</if>
</where>
</select>
<delete id="deleteBySpeciesLibraryId" parameterType="String">
DELETE
FROM farm_species_library
WHERE id = #{id}
</delete>
</mapper>

View File

@@ -9,4 +9,9 @@
文档可见:https://www.iocoder.cn/MyBatis/x-plugins/
-->
<delete id="deleteByTreeId" parameterType="String">
delete
from farm_two_dict
where id = #{id}
</delete>
</mapper>