kongzy
2024-07-01 47a751cb301d05276ae5d75145d57b2d090fe4e1
src/main/java/com/nanometer/smartlab/dao/EncodeReplaceDictMapper.xml
@@ -44,10 +44,14 @@
        and number = #{p_number}
      </if>
      <if test="type != null">
        and type = #{type,}
        and type = #{type}
      </if>
    </where>
      order by update_time desc
    <if test="first != null and pageSize != null">
      limit #{first},#{pageSize}
    </if>
  </select>
  <select id="countAll" resultType="java.lang.Integer">
    select count(1)
@@ -87,12 +91,12 @@
    update  sys_encode_replace_dict set  valid_flag = 0
    where id = #{id,jdbcType=BIGINT}
  </update>
  <insert id="insert" parameterType="com.nanometer.smartlab.entity.EncodeReplaceDict" >
  <insert id="insert" parameterType="com.nanometer.smartlab.entity.EncodeReplaceDict" useGeneratedKeys = "true" keyProperty = "id">
    <!--          -->
    insert into sys_encode_replace_dict (id, type, number,
    insert into sys_encode_replace_dict (type, number,
      info, abbreviation, creator, 
      update_time, valid_flag)
    values (#{id,jdbcType=BIGINT}, #{type}, #{number,jdbcType=VARCHAR},
    values (#{type}, #{number,jdbcType=VARCHAR},
      #{info,jdbcType=VARCHAR}, #{abbreviation,jdbcType=VARCHAR}, #{creator,jdbcType=VARCHAR}, 
      #{updateTime,jdbcType=TIMESTAMP}, 1)
  </insert>
@@ -100,9 +104,6 @@
    <!--          -->
    insert into sys_encode_replace_dict
    <trim prefix="(" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        id,
      </if>
      <if test="type != null" >
        type,
      </if>
@@ -126,9 +127,6 @@
      </if>
    </trim>
    <trim prefix="values (" suffix=")" suffixOverrides="," >
      <if test="id != null" >
        #{id,jdbcType=BIGINT},
      </if>
      <if test="type != null" >
        #{type},
      </if>