liurunyu
8 天以前 c488d63b58458ea0dee56ffbb4c5b66b2141d4f1
pms-parent/pms-global/src/main/resources/mapper/OthFileManageMapper.xml
@@ -28,16 +28,19 @@
    delete from oth_file_manage
    where id = #{id,jdbcType=BIGINT}
  </delete>
  <insert id="insert" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage" useGeneratedKeys="true">
  <insert id="insert" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage">
    <!--@mbg.generated-->
    insert into oth_file_manage (user_id, file_id, deleted, dt)
    values (#{userId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT}, #{deleted,jdbcType=TINYINT},
    insert into oth_file_manage (id, user_id, file_id, deleted, dt)
    values (#{id,jdbcType=BIGINT},#{userId,jdbcType=BIGINT}, #{fileId,jdbcType=BIGINT}, #{deleted,jdbcType=TINYINT},
      #{dt,jdbcType=TIMESTAMP})
  </insert>
  <insert id="insertSelective" keyColumn="id" keyProperty="id" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage" useGeneratedKeys="true">
  <insert id="insertSelective" parameterType="com.dy.pmsGlobal.pojoOth.OthFileManage">
    <!--@mbg.generated-->
    insert into oth_file_manage
    <trim prefix="(" suffix=")" suffixOverrides=",">
      <if test="id != null">
        id,
      </if>
      <if test="userId != null">
        user_id,
      </if>
@@ -52,6 +55,9 @@
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides=",">
      <if test="id != null">
        #{id,jdbcType=BIGINT},
      </if>
      <if test="userId != null">
        #{userId,jdbcType=BIGINT},
      </if>