| | |
| | | <insert id="insertAndUpdate"> |
| | | insert into t_su_material_warehouse_record |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="nameOfOrigin != null"> |
| | | name_of_origin, |
| | | </if> |
| | | <if test="id != null"> |
| | | id, |
| | | </if> |
| | | <if test="nameOfOrigin != null"> |
| | | name_of_origin, |
| | | </if> |
| | | <if test="tableNum != null"> |
| | | table_num, |
| | | </if> |
| | |
| | | </if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="nameOfOrigin != null"> |
| | | #{nameOfOrigin,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="id != null"> |
| | | #{id,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="nameOfOrigin != null"> |
| | | #{nameOfOrigin,jdbcType=VARCHAR}, |
| | | </if> |
| | | <if test="tableNum != null"> |
| | | #{tableNum,jdbcType=INTEGER}, |
| | | </if> |
| | |
| | | </trim> |
| | | on duplicate key update |
| | | <trim suffixOverrides=","> |
| | | <if test="nameOfOrigin != null"> |
| | | <if test="nameOfOrigin != null"> |
| | | name_of_origin = #{nameOfOrigin,jdbcType=VARCHAR}, |
| | | </if> |
| | | </if> |
| | | <if test="tableNum != null"> |
| | | table_num = #{tableNum,jdbcType=INTEGER}, |
| | | </if> |