mapper 多参数(参数列表)+单只参数 查询

List<PatientRecordForm> selectPatientRecordFormByRecords(@Param("ids")Long[] ids,@Param("recordId")Long recordId);

<select id="selectPatientRecordFormByRecords" parameterType="String" resultMap="PatientRecordFormResult">
    select record_id,form_id,edc_follow_status ,save_type from patient_record_form where form_id in
    <foreach item="id" collection="ids" open="(" separator="," close=")">
        #{id}
    </foreach>
    and record_id =#{recordId}
</select>

相关推荐

  1. AJAX-查询参数

    2024-06-07 18:56:05       36 阅读
  2. scala可变参数列表使用

    2024-06-07 18:56:05       65 阅读
  3. MyBatis在Mapper中传递参数的四种方法详解

    2024-06-07 18:56:05       46 阅读
  4. PHP进阶-默认参数值和可变参数列表

    2024-06-07 18:56:05       56 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-06-07 18:56:05       94 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-06-07 18:56:05       101 阅读
  3. 在Django里面运行非项目文件

    2024-06-07 18:56:05       82 阅读
  4. Python语言-面向对象

    2024-06-07 18:56:05       91 阅读

热门阅读

  1. MTK默认开启Modem Log

    2024-06-07 18:56:05       32 阅读
  2. 在Linux环境中通过Docker运行swift

    2024-06-07 18:56:05       31 阅读
  3. 记录使用pytorch训练crnn

    2024-06-07 18:56:05       25 阅读
  4. Docker 教程-介绍-2

    2024-06-07 18:56:05       26 阅读
  5. elementary OS 8的新消息

    2024-06-07 18:56:05       33 阅读
  6. Spark任务调度

    2024-06-07 18:56:05       29 阅读
  7. SparkStreaming编程-DStream创建

    2024-06-07 18:56:05       26 阅读
  8. 【AIGC调研系列】chatTTS与GPT-SoVITS的对比优劣势

    2024-06-07 18:56:05       26 阅读
  9. Advantages of high pressure cleaners

    2024-06-07 18:56:05       30 阅读