Mapper接口文件中定義方法:
List<DoctorInfoDTO> findDoctorInfoList(@Param("paramMap") Map<String,Object> paramMap);
其中paramMap可傳遞各種類型參數,具體使用請看下方xml文件的查詢條件部分
<if test="@org.apache.commons.collections4.CollectionUtils@isNotEmpty(paramMap.doctorIdList)">
and finfo.f_source in
<foreach item="curDocId" collection="paramMap.doctorIdList" open="(" separator="," close=")">
#{curDocId}
</foreach>
</if>