|  |  | 
 |  |  |         <result property="processId" column="process_id" jdbcType="BIGINT"/> | 
 |  |  |         <result property="sort" column="sort" jdbcType="INTEGER"/> | 
 |  |  |         <result property="content" column="content" jdbcType="VARCHAR"/> | 
 |  |  |         <result property="nodeType" column="node_type" jdbcType="INTEGER"/> | 
 |  |  |         <result property="isStart" column="is_start" jdbcType="TINYINT"/> | 
 |  |  |         <result property="isEnd" column="is_end" jdbcType="TINYINT"/> | 
 |  |  |         <result property="isRecord" column="is_record" jdbcType="TINYINT"/> | 
 |  |  | 
 |  |  |         <result property="deleted" column="deleted" jdbcType="TINYINT"/> | 
 |  |  |         <result property="remark" column="remark" jdbcType="VARCHAR"/> | 
 |  |  |         <association property="instruction" | 
 |  |  |             column="id" javaType="java.lang.Long" select="selectProNameById" fetchType="eager" /> | 
 |  |  |             column="id" javaType="java.lang.Long" select="com.dy.pmsGlobal.daoPr.PrWorkingInstructionMapper.selectByNodeId" fetchType="eager" /> | 
 |  |  |     </resultMap> | 
 |  |  |  | 
 |  |  |     <sql id="Base_Column_List"> | 
 |  |  |         id,process_id,sort, | 
 |  |  |         content,is_start,is_end, | 
 |  |  |         content,node_type,is_start,is_end, | 
 |  |  |         is_record,equip_cycle_content,deleted, | 
 |  |  |         remark | 
 |  |  |     </sql> | 
 |  |  |  | 
 |  |  |     <select id="selectProNameById" resultMap="com.dy.pmsGlobal.daoPr.PrWorkingInstructionMapper.BaseResultMap"> | 
 |  |  |         select * | 
 |  |  |         from pr_working_instruction | 
 |  |  |         where node_id = #{id,jdbcType=BIGINT} | 
 |  |  |     </select> | 
 |  |  | <!--    <select id="selectProNameById" resultMap="com.dy.pmsGlobal.daoPr.PrWorkingInstructionMapper.BaseResultMap">--> | 
 |  |  | <!--        select *--> | 
 |  |  | <!--        from pr_working_instruction--> | 
 |  |  | <!--        where node_id = #{id,jdbcType=BIGINT}--> | 
 |  |  | <!--    </select>--> | 
 |  |  |     <select id="selectByPrimaryKey" parameterType="java.lang.Long" resultMap="BaseResultMap"> | 
 |  |  |         select | 
 |  |  |         <include refid="Base_Column_List" /> | 
 |  |  | 
 |  |  |                 <if test="processId != null">process_id,</if> | 
 |  |  |                 <if test="sort != null">sort,</if> | 
 |  |  |                 <if test="content != null">content,</if> | 
 |  |  |                 <if test="nodeType != null">node_type,</if> | 
 |  |  |                 <if test="isStart != null">is_start,</if> | 
 |  |  |                 <if test="isEnd != null">is_end,</if> | 
 |  |  |                 <if test="isRecord != null">is_record,</if> | 
 |  |  | 
 |  |  |                 <if test="processId != null">#{processId,jdbcType=BIGINT},</if> | 
 |  |  |                 <if test="sort != null">#{sort,jdbcType=INTEGER},</if> | 
 |  |  |                 <if test="content != null">#{content,jdbcType=VARCHAR},</if> | 
 |  |  |                 <if test="nodeType != null">#{nodeType,jdbcType=INTEGER},</if> | 
 |  |  |                 <if test="isStart != null">#{isStart,jdbcType=TINYINT},</if> | 
 |  |  |                 <if test="isEnd != null">#{isEnd,jdbcType=TINYINT},</if> | 
 |  |  |                 <if test="isRecord != null">#{isRecord,jdbcType=TINYINT},</if> | 
 |  |  | 
 |  |  |  | 
 |  |  |     <insert id="insertMany" parameterType="java.util.List"> | 
 |  |  |        INSERT INTO pr_production_node (id,process_id,sort, | 
 |  |  |         content,is_start,is_end, | 
 |  |  |         content,node_type,is_start,is_end, | 
 |  |  |         is_record,equip_cycle_content,deleted, | 
 |  |  |         remark) VALUES | 
 |  |  |        <foreach item="item" index="index" collection="list" open="(" separator="),(" close=")"> | 
 |  |  | 
 |  |  |            #{item.processId}, | 
 |  |  |            #{item.sort}, | 
 |  |  |            #{item.content}, | 
 |  |  |            #{item.nodeType}, | 
 |  |  |            #{item.isStart}, | 
 |  |  |            #{item.isEnd}, | 
 |  |  |            #{item.isRecord}, | 
 |  |  | 
 |  |  |                 <if test="content != null"> | 
 |  |  |                     content = #{content,jdbcType=VARCHAR}, | 
 |  |  |                 </if> | 
 |  |  |                 <if test="nodeType != null"> | 
 |  |  |                     node_type = #{nodeType,jdbcType=INTEGER}, | 
 |  |  |                 </if> | 
 |  |  |                 <if test="isStart != null"> | 
 |  |  |                     is_start = #{isStart,jdbcType=TINYINT}, | 
 |  |  |                 </if> |