Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - Springboard Raider XI. Customize ISqlInjector and add the general method updateAllColumnById.
Springboard Raider XI. Customize ISqlInjector and add the general method updateAllColumnById.
Refer to Springboard Raiders VII. Integrate mybatisplus into actual combat and make the following modifications:

1, a custom sql injector, GeneralMybatisPlusSqlInjector.

2. the implementation class UpdateAllColumnById corresponding to this method.

Refer to the source code of other basic methods, such as: UpdateById and so on.

3.MybatisPlus custom SQL method enumeration class GeneralMybatisPlusSqlMethod

4.MybatisPlus configures the class and loads the customized sql injector.

5. Custom basemap inherits the basemap.

6. Customize the basic service to inherit IService and its implementation class.

Implementation class

Then all mappers and services inherit the basic mappers and services of our custom extension.

Ok, let's start the test, refer to the original Springbok Cheat VII. Put mybatisplus into actual combat.