groovy中使用注解实现动态SQL功能
时间: 2015-07-23来源:开源中国
前景提要
HDC调试需求开发(15万预算),能者速来!>>>
在.java 中,使用@Update注解 可实现动态修改SQL的功能,如下所示: @Update("""<script> update package <set> <if test="version != null">version = @{version},</if> <if test="description != null">description = @{description},</if> <if test="project_id != null">project_id = @{project_id}</if> </set> where id = @{id} </script> """) public void updatePackage(HashMap packageMap)
在.groovy中,应该怎么写才能实现同样的功能。
求帮助。

科技资讯:

科技学院:

科技百科:

科技书籍:

网站大全:

软件大全:

热门排行