You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

64 lines
2.2 KiB

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.api.mapper.ZhyPointMapper">
<select id="selectPointByName" resultType="map">
select * from zhy_point where point_name=#{name}
</select>
<select id="selectPointByUUID" resultType="map">
select * from zhy_point where uuid=#{uuid}
</select>
<select id="selectPointByType1" resultType="map">
select * from zhy_point where type1=#{type1}
</select>
<select id="selectPointResByNeo4jId" resultType="map">
select * from zhy_point_relationship where relationship_id=#{neo4jId}
</select>
<select id="selectPointResById" resultType="map">
select * from zhy_point_relationship where id=#{id}
</select>
<select id="selectPointRelationshipByRids" resultType="map">
select * from zhy_point_relationship where relationship_id in
<foreach collection="ids" item="item" separator="," open="(" close=")">
#{item}
</foreach>
</select>
<select id="selectPointRelationshipByName" resultType="map">
SELECT *
FROM zhy_point_relationship
<where>
<if test="author != null and author != ''">
AND author = #{author}
</if>
<if test="keyword != null and keyword != ''">
AND keyword = #{keyword}
</if>
<if test="agency != null and agency != ''">
AND agency = #{agency}
</if>
<if test="title != null and title != ''">
AND title = #{title}
</if>
</where>
</select>
<insert id="insertPoint">
insert into zhy_point (point_name,uuid,type1) values (#{name},#{uuid},#{type1})
</insert>
<insert id="insertPointReship">
INSERT INTO zhy_point_relationship
(author, keyword, agency, relationship_id, title, url)
VALUES
(#{author}, #{keyword}, #{agency}, #{relationship_id}, #{title}, #{url})
</insert>
</mapper>