Yes they are Sanwu lenses. The thread pitch is the same between them like all the other lens we use in every day pointers (2 element, 3 element, DTR and SL G2). The OD and ID are identical as well (talking about Sanwu lenses). The diff (9mm vs 7mm) is the length of the barrel as shown in the pics. As far as i know there isnt a 7mm length G2 lens from Sanwu, only the G7 lens has the 2 barrel length options. The 3 element lens that Sanwu sells is just like the ones you get from DTR as far as looks and dimensions. The actual glass lens in the G7 is the same between the two available barrel lengths from Sanwu. The 7mm barrel has the lens positioned in the middle of the barrel and the only feature showing proper orientation are the two cuts on the barrel (same flat head screwdriver cuts seen on all the hobby lenses currently) and the side without the cuts is the diode side.
The reason I cant use the 7mm barrel G7 lens on non Sanwu made lasers is that the thread depth is too shallow for our 12mm diode modules. Even though the pitch and OD are the same the threads arent cut as deep and they bind in the 12mm module threaded lens cavity.