If a criminal suspect or defendant enters the criminal proceedings and is not recognized as a crime or acquitted after the trial, there will be no criminal record, let alone a criminal record.
Generally speaking, if a criminal suspect or defendant has criminal facts, even if the procuratorial organ finally decides not to prosecute conditionally or cautiously, or the court makes a guilty verdict but does not execute the penalty, it will leave a criminal record. If you are detained in administrative detention (public security detention) or judicial custody, although you have not violated the criminal law, your personal freedom is restricted because you have violated the law. These illegal "traces" also remain in the relevant decision-making organs.