mybatis+oracle实现批量更新


    
        
          UPDATE T_CHANNEL_TRADE_ORDER SET ID = #{item.id,jdbcType=DECIMAL}
            
                ,PARTNER_ID = #{order.partnerId}
            
            
                ,DECLARE_BATCH_NO = #{order.declareBatchNo}
            
            
                ,ORDER_NO = #{order.orderNo}
            
            
                ,SUB_MEMBERCODE = #{order.subMemberCode}
            
            
                ,SUPPLY_NAME = #{order.supplyName}
            
            
                ,ORDER_DATE = #{order.orderDate}
            
            
                ,GOODS_NAME = #{order.goodsName}
            
            
                ,GOODS_CATEGROY = #{order.goodsCategroy}
            
            
                ,GOODS_QUANTITY = #{order.goodsQuantity}
            
            
                ,GOODS_PRICE = #{order.goodsPrice}
            
            
                ,AMOUNT = #{order.amount}
            
            
                ,CURRENCY = #{order.currency}
            
            
                ,LOGISTICS_COMPANY = #{order.logisticsCompany}
            
            
                ,LOGISTICS_ORDERNO = #{order.logisticsOrderNo}
            
            
                ,RESULT_CODE = #{order.resultCode}
            
            
                ,USED_FLAG = #{order.usedFlag}
            
            WHERE 1 = 1
            
                AND ID = #{item.id,jdbcType=DECIMAL}
            
            
                AND DECLARE_BATCH_NO = #{item.declareBatchNo,jdbcType=VARCHAR}
            
            
                AND ORDER_NO = #{item.orderNo,jdbcType=VARCHAR}
            
            
                AND SUB_MEMBERCODE = #{item.subMemberCode}
            
        
    

 

你可能感兴趣的:(Java)