| | |
| | | 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> |
| | |
| | | <!-- --> |
| | | insert into sys_encode_replace_dict |
| | | <trim prefix="(" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | id, |
| | | </if> |
| | | <if test="type != null" > |
| | | type, |
| | | </if> |
| | |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides="," > |
| | | <if test="id != null" > |
| | | #{id,jdbcType=BIGINT}, |
| | | </if> |
| | | <if test="type != null" > |
| | | #{type}, |
| | | </if> |