id,category_id,data_id,data_no,data_name,data_type,file_type,version,content, implant_json,data_status,note,creator,creator_name,gmt_create,modifier,modifier_name, gmt_modified,effect_flag SELECT LAST_INSERT_ID() insert into ed_data_info (id, category_id, data_id, data_no, data_name, data_type, file_type, version, content, implant_json, data_status, note, editor, gmt_batch_upload, creator, creator_name, gmt_create, modifier, modifier_name, gmt_modified, effect_flag ) values (#{id,jdbcType=VARCHAR}, #{categoryId,jdbcType=VARCHAR}, #{dataId,jdbcType=VARCHAR}, #{dataNo,jdbcType=VARCHAR}, #{dataName,jdbcType=VARCHAR}, #{dataType,jdbcType=VARCHAR}, #{fileType,jdbcType=VARCHAR},#{version,jdbcType=VARCHAR}, #{content,jdbcType=VARCHAR}, #{implantJson,jdbcType=VARCHAR}, #{dataStatus,jdbcType=VARCHAR}, #{note,jdbcType=VARCHAR}, #{editor,jdbcType=VARCHAR}, #{gmtBatchUpload,jdbcType=TIMESTAMP}, #{creator,jdbcType=VARCHAR}, #{creatorName,jdbcType=VARCHAR}, now(), #{modifier,jdbcType=VARCHAR}, #{modifierName,jdbcType=VARCHAR},now(),1 ) update ed_data_info data_name = #{name,jdbcType=VARCHAR}, data_status = #{dataStatus,jdbcType=VARCHAR}, note = #{note,jdbcType=VARCHAR}, effect_flag = #{effectFlag,jdbcType=VARCHAR}, gmt_modified = now() where data_id = #{dataId,jdbcType=VARCHAR} and effect_flag = 1