#
Junjie
2024-07-03 acebf48e2e139f6f298cfbba829cc3c29db3c891
zy-asrs-wms/src/main/resources/mapper/system/MenuMapper.xml
@@ -2,4 +2,25 @@
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.zy.asrs.wms.system.mapper.MenuMapper">
    <select id="selectByPathName" resultType="com.zy.asrs.wms.system.entity.Menu">
        select * from sys_menu
        where path_name like #{pathName}
        and type = #{type}
        and host_id = 1
        and deleted = 0
        order by id
    </select>
    <select id="selectByHostId" resultType="com.zy.asrs.wms.system.entity.Menu">
        select * from sys_menu
        where host_id = #{hostId}
          and deleted = 0
        order by id
    </select>
    <delete id="removeByHostId">
        delete from sys_menu
        where host_id = #{hostId}
    </delete>
</mapper>