1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <?xml version="1.0" encoding="UTF-8" ?>
- <!DOCTYPE mapper
- PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
- "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
- <mapper namespace="com.juxiao.xchat.module.xbd.mapper.log.AdminLogMapper">
- <insert id="insertSelective" parameterType="com.juxiao.xchat.module.xbd.domain.log.AdminLog" >
- <selectKey resultType="java.lang.Long" keyProperty="id" order="AFTER" >
- SELECT LAST_INSERT_ID()
- </selectKey>
- insert into admin_log
- <trim prefix="(" suffix=")" suffixOverrides="," >
- <if test="optUid != null" >
- opt_uid,
- </if>
- <if test="optClass != null" >
- opt_class,
- </if>
- <if test="optMethod != null" >
- opt_method,
- </if>
- <if test="optMess != null" >
- opt_mess,
- </if>
- <if test="createTime != null" >
- create_time,
- </if>
- <if test="tmpint != null" >
- tmpint,
- </if>
- <if test="tmpstr != null" >
- tmpstr,
- </if>
- </trim>
- <trim prefix="values (" suffix=")" suffixOverrides="," >
- <if test="optUid != null" >
- #{optUid,jdbcType=INTEGER},
- </if>
- <if test="optClass != null" >
- #{optClass,jdbcType=VARCHAR},
- </if>
- <if test="optMethod != null" >
- #{optMethod,jdbcType=VARCHAR},
- </if>
- <if test="optMess != null" >
- #{optMess,jdbcType=VARCHAR},
- </if>
- <if test="createTime != null" >
- #{createTime,jdbcType=TIMESTAMP},
- </if>
- <if test="tmpint != null" >
- #{tmpint,jdbcType=INTEGER},
- </if>
- <if test="tmpstr != null" >
- #{tmpstr,jdbcType=VARCHAR},
- </if>
- </trim>
- </insert>
- </mapper>
|