iBatis配置文件SQL语句的配置求教!

名字要很长很长 2012-05-12 12:23:15

<select id="getLdTxzDeptSelf" resultMap="exposition" parameterClass="expositionModel">
select e.*,d.name from Exposition e,Department d where e.reportUint=d.deptId
and e.reportUint in (select deptId from Department where fdeptId in
(select fdeptid from Department where d.deptId=$deptId$) and departType=2)
</select>

这样在iBatis配置文件貌似不行,不能直接放到iBatis配置里,Service方法里取不到值。求解!
...全文
81 回复 打赏 收藏 转发到动态 举报
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,094

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧