---
title: "hibernate like in 多表 查询"
author: "zwhc"
date: "2012-09-07T12:24:42Z"
tags: ["Hibernate", "Java", "in", "like"]
categories: ["编程语言"]
slug: "hibernate-like-in"
draft: false
lastmod: "2012-09-07T12:24:42Z"
id: 1673444
url: "https://zwhc.iteye.com/blog/1673444"
---

\[code="java"] public List getMaintainList(String persId, String status) { String\[] aStat = status.split(","); String param = "?"; for(int i=1; isysdate" + " and m.persIds like ? and m.status in ( " + param + ") "; String pPersId = "%;" + persId + ";%"; Object\[] oParam = new Object\[aStat.length+1]; oParam\[0] = pPersId; for(int i=1; i