mybatis+oracle实现批量更新

public interface ProMapper {

    int  batchUpdateDbInfo(@Param(value = "list") List<MobileApprovalDoUpdateDetailDTO> list);

mybatis 对应的xml配置文件


<update id="batchUpdateDbInfo">
        <foreach collection="list" item="item" index="index" separator=";"  open="begin" close=";end;">
            UPDATE AS_DETAILED_FORM SET equ_Place = #{item.equPlace},USE_DEP_ID = #{item.useDepId} ,equ_Persion_id= #{item.equPersionId}
            WHERE ID = #{item.id}
        </foreach>
    </update>

你可能感兴趣的:(Mybatis)