批量操作list对象

阅读更多

         insert into mb_member_devinfo (id, member_id, name, 
         phone, org_id, org_name, 
         stage, state, sort, 
         createtime, tenant_code)
     	values 
        
        (#{item.id,jdbcType=VARCHAR}, #{item.memberId,jdbcType=VARCHAR}, #	

{item.name,jdbcType=VARCHAR}, 
          #{item.phone,jdbcType=VARCHAR}, #{item.orgId,jdbcType=VARCHAR}, #	

{item.orgName,jdbcType=VARCHAR}, 
          #{item.stage,jdbcType=VARCHAR},#{item.state,jdbcType=VARCHAR}, #	

{item.sort,jdbcType=VARCHAR}, 
          #{item.createtime,jdbcType=BIGINT}, #	

{item.tenantCode,jdbcType=VARCHAR})
      

 


        update mb_member_login
        
            
                 
                         when member_id=#{item.memberId} then #		

			{item.password}
                 
            
        
        where member_id in
        
            #{item.memberId,jdbcType=BIGINT} 
        
            and  state='1'

 

你可能感兴趣的:(mybatis)