SELECT top 1 @@type = fusertype FROM $tar.t_SEC_User@basedata WHERE fphone = @@tar.phone;
if(type == '1' ){
  tar.#_IGNORE_TAG = true
}

Reference: https://club.kdcloud.com/school/3470, https://club.kdcloud.com/school/2953