111,119
社区成员
发帖
与我相关
我的任务
分享

不知昨天为什么这样写不行
if (!string.IsNullOrEmpty(mnemonicCode))
{
hql += "and p.MnemonicCode like :mnemonicCode ";
}
if (!string.IsNullOrEmpty(mnemonicCode))
{
query.SetParameter("mnemonicCode","%"+ mnemonicCode +"%");
}