|  |  | 
 |  |  |   </resultMap> | 
 |  |  |   <sql id="Base_Column_List"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     id, block_id, graph_type | 
 |  |  |         id, | 
 |  |  |         block_id, | 
 |  |  |         graph_type | 
 |  |  |   </sql> | 
 |  |  |   <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  | 
 |  |  |   </select> | 
 |  |  |   <delete id="deleteByPrimaryKey" parameterType="java.lang.Long"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     delete from ba_map_graph | 
 |  |  |         delete | 
 |  |  |         from ba_map_graph | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </delete> | 
 |  |  |   <insert id="insert" parameterType="com.dy.pipIrrGlobal.pojoBa.BaMapGraph"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  |     insert into ba_map_graph (id, block_id, graph_type | 
 |  |  |       ) | 
 |  |  |     values (#{id,jdbcType=BIGINT}, #{blockId,jdbcType=BIGINT}, #{graphType,jdbcType=TINYINT} | 
 |  |  |       ) | 
 |  |  |         insert into ba_map_graph (id, block_id, graph_type) | 
 |  |  |         values (#{id,jdbcType=BIGINT}, #{blockId,jdbcType=BIGINT}, #{graphType,jdbcType=TINYINT}) | 
 |  |  |   </insert> | 
 |  |  |   <insert id="insertSelective" parameterType="com.dy.pipIrrGlobal.pojoBa.BaMapGraph"> | 
 |  |  |     <!--@mbg.generated--> | 
 |  |  | 
 |  |  |       graph_type = #{graphType,jdbcType=TINYINT} | 
 |  |  |     where id = #{id,jdbcType=BIGINT} | 
 |  |  |   </update> | 
 |  |  |  | 
 |  |  |     <!--根据片区ID删除地图图形--> | 
 |  |  |     <delete id="deleteByBlockId" parameterType="java.lang.Long"> | 
 |  |  |         DELETE | 
 |  |  |         FROM ba_map_graph | 
 |  |  |         WHERE block_id = #{blockId} | 
 |  |  |     </delete> | 
 |  |  | </mapper> |