update tb_custom set custom_name = #{customName}, custom_type = #{customType}, custom_user = #{customUser}, custom_phone = #{customPhone}, custom_status = #{customStatus}, update_time = now() where id = #{customId} insert into tb_custom(custom_name,custom_type,custom_user,custom_phone,custom_status,create_time,del_flag )values ( #{customName},#{customType},#{customUser},#{customPhone},#{customStatus},now(),0 ) update tb_custom set del_flag = 1 where id = #{customId} update tb_custom set custom_status=#{customStatus} where id=#{customId}