liurunyu
7 天以前 a54ebef2950cd0b708ab703bfc551119fa135fec
pms-parent/pms-global/src/main/resources/mapper/BaLogMapper.xml
@@ -26,10 +26,15 @@
  </select>
  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoBa.BaLog" useGeneratedKeys="true">
    <!--@mbg.generated-->
    insert into ba_log (user_id,user_name, content, ip,code,msg
    insert into ba_log (id, user_id,user_name, content, ip,code,msg
      )
    values (#{userId,jdbcType=BIGINT},#{userName,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{ip,jdbcType=VARCHAR},
    #{code,jdbcType=VARCHAR},#{msg,jdbcType=VARCHAR}
    values (#{id,jdbcType=BIGINT},
    #{userId,jdbcType=BIGINT},
    #{userName,jdbcType=VARCHAR},
    #{content,jdbcType=VARCHAR},
    #{ip,jdbcType=VARCHAR},
    #{code,jdbcType=VARCHAR},
    #{msg,jdbcType=VARCHAR}
      )
  </insert>
  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoBa.BaLog" useGeneratedKeys="true">
@@ -91,7 +96,7 @@
      <if test="content != null  and content != '' ">
        content like concat('%', #{content}, '%') and
      </if>
      <if test="dt != null and dt != '' ">
      <if test="dt != null">
        DATE_FORMAT(dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} and
      </if>
      <if test="ip != null and ip != '' ">
@@ -119,7 +124,7 @@
      <if test="content != null  and content != '' ">
        content like concat('%', #{content}, '%') and
      </if>
      <if test="dt != null and dt != '' ">
      <if test="dt != null">
        DATE_FORMAT(dt, '%Y-%m-%d') = #{dt,jdbcType=TIMESTAMP} and
      </if>
      <if test="ip != null and ip != '' ">