Do Bafang BBS02 and Tongsheng (TSDZ8) use the same systems?

I'm thinking of switching from cadence to torque. But I have already gotten a bike came in with BBS02 and relative gears (breaks, light, speed sensor etc). Can I just remove the BBBS02 and install TSDZ8 and reconnect all the cables? Or those two motors use different cable layouts?