The present invention relates to the technical field of medicine, and specifically relates to the carboxylic acid compound represented by the chemical formula I or chemical formula II, and a pharmaceutically acceptable salt, a prodrug, and a solvate thereof, and a method for preparation thereof, as well as a pharmaceutical composition containing the described substances, and a use thereof.