<?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="cn.com.countrygarden.bi.main.dao.insuranceOrder.InsuranceOrderAuthorityMapper">
    <resultMap id="BaseResultMap" type="cn.com.countrygarden.bi.main.model.insuranceOrder.InsuranceOrderAuthority">
        <id column="id" property="id" />
        <result column="org_code" property="orgCode" />
        <result column="comm_code" property="commCode" />
        <result column="organ_type" property="organType" />
        <result column="user_code" property="userCode" />
        <result column="enable" property="enable" />
        <result column="create_time" property="createTime" />
        <result column="create_by" property="createBy" />
        <result column="update_time" property="updateTime" />
        <result column="update_by" property="updateBy" />

    </resultMap>

    <delete id="deleteAuthority">
           DELETE FROM insurance_order_authority
           <where>
               id IN
               <foreach collection="ids" item="ids" index="index" open="(" close=")" separator=",">
                   #{ids}
               </foreach>
           </where>
    </delete>

    <insert id="insertStall">
        INSERT INTO insurance_order_authority (org_code,comm_code,organ_type,user_code,`enable`,create_time
) VALUES(#{orgCode},#{commCode}, #{organType}, #{userCode},#{enable},#{createTime});
    </insert>



</mapper>