900字范文,内容丰富有趣,生活中的好帮手!
900字范文 > mybatis 大于等于小于等于

mybatis 大于等于小于等于

时间:2019-03-16 03:47:43

相关推荐

mybatis 大于等于小于等于

> 这个是 >=

&lt; 这个是 <=

参数是一个list:<if test="joinInformation.departIds != null and joinInformation.departIds.size() >0 ">and depart_id in<foreach collection="joinInformation.departIds" close=")" open="(" separator="," item="departId">#{joinInformation.departId}</foreach></if>

分页的limit

<if test="joinInformation.startRow != null and joinInformation.limit != null">limit #{joinInformation.startRow},#{joinInformation.limit}</if>

in条件

select id from tb_staff_base where user_name= #{userName} and phone= #{phone} and work_status in ('ALREADY_ENTRY','IMMINENT_ENTRY')

模糊匹配

<select id="selectByName" parameterType="java.lang.String" resultMap="BaseResultMap">select<include refid="Base_Column_List"/>from tb_staff_basewhere user_name like #{userName}"%"</select>

插入时候返回插入那条数据的id

<insert id="insertSelective" parameterType="com.bee.hrm.entity.staff.StaffEntity" useGeneratedKeys="true"keyProperty="id">

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。