mybates 参数和处理
来源:互联网 发布:拓扑康102n 导入数据 编辑:程序博客网 时间:2024/06/07 12:03
1.图片前面的服务器地址
CONCAT(#{imageServer},i.imagePosition )
2.参数map
#{imageServer}
3.存储过程参数和调取
<select id="listTree_fy" statementType="CALLABLE" parameterType="map" resultMap="treeInfoChildren">
{call units_syscode_tree_fy(#{name},#{icon_units},#{icon_user},#{serchValue})}
</select>
4.timestamp转成long型
CONCAT( UNIX_TIMESTAMP(p.createtime), '000' ) AS praiseTime
5.like
<if test="unitsId!=null"> AND uu.unitsId = #{unitsId}</if>
<if test="content!=null"> AND (m.messageContent LIKE CONCAT('%',#{content},'%') OR
m.userName LIKE CONCAT('%',#{content},'%') )</if>
6.处理关键字
<![CDATA[ ]]> - - - - - - 规避与XML规范冲突的字符
7、In
<if test="exprise!=null"> AND s.exprise IN <foreach item="item" index="index" collection="exprise" open="(" separator="," close=")"> #{item} </foreach></if>
8、xxMapper.java
int countUnreadComms(@Param(value = "activityId") Integer activityId,@Param(value = "replyUid") Long replyUid);
0 0
- mybates 参数和处理
- Mybates中使用定时器
- spring mybates 自增字段返回id
- Spring代理处理参数和方法
- Shell 参数的读取和处理
- python添加命令行参数和异常处理
- ibatis 参数和结果的映射处理
- restful springmvc 参数验证和异常处理
- Shell 处理命令行参数 getopts 和 getopt
- BadBoy参数化和乱码处理
- mybatis穿对象和参数 的处理
- mybatis详解-(14)参数处理#和$
- 参数处理
- 备忘:JavaScript和ASP.NET中处理url中文参数
- mencoder和ffmpeg参数详解 (Java处理视频)
- Yii: 参数检查和错误的集中处理技巧
- Struts1.x和Struts2在处理请求参数上区别
- Shell中命令行选项和参数的处理
- Java SE 02 流程控制和数组
- 【最小生成树】洛谷 P1547 Out of Hay
- hadoop2.7.2学习笔记08-代理用户(超级用户以其他用户的名义执行操作)
- 信息安全工程师 学习笔记(十五)
- ARP地址解析原理
- mybates 参数和处理
- Arrays.sort()总结
- Spring Cache
- 12个非常有用的JavaScript技巧
- 从源码安装apache2,遇到错误:cannot install `libaprutil-1.la'
- java
- 信息安全工程师 学习笔记(十六)
- MYSQL免安装版配置
- Android之配置方法数超过64K的应用