1234567891011121314151617181920212223242526 |
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.bosshand.virgo.api.dao.ProjectBindDao">
- <resultMap type="com.bosshand.virgo.api.model.ProjectBind" id="ProjectBindResult" >
- <id column="id" property="id"/>
- <result column="organizationId" property="organizationId"/>
- <result column="projectId" property="projectId"/>
- <result column="userId" property="userId"/>
- </resultMap>
- <select id="get" resultMap="ProjectBindResult">
- select * from project_bind where organizationId = #{organizationId} and userId = #{userId}
- </select>
- <insert id="insert">
- insert into project_bind (organizationId, projectId, userId) value (#{organizationId}, #{projectId}, #{userId})
- </insert>
- <delete id="delete">
- delete from project_bind where projectId = #{projectId}
- </delete>
- </mapper>
|