java mapper 批量处理

1.批量删除

String imagePropertyIdListStr = "(" + Joiner.on(",").join(imagePropertyIdList) + ")";

int deleteByRecordIdAndPropertyIds(@Param("recordId") Long recordId ,
                                   @Param("imagePropertyIdListStr") String imagePropertyIdListStr);

    delete
    from patient_record_files
    where record_id = #{recordId}
      and property_id in ${imagePropertyIdListStr}

你可能感兴趣的:(python,java,前端)