Fairy-KunKun 2022-05-14 14:37:57 阅读数:169
There are two input parameters ,prameterType and prameterMap( Abandoned , In the early ibatis How to do it )
Use only prameterType
situation
(1) The parameter is a simple type ( Single value )
Such as : Search the Department information according to the number , The input parameter is a number ,int type , Simple type
Place holder #{ Write at will }
(2) When the parameter is an entity type
Such as : Add a department , The input parameters are Dept object , Placeholders must be written as #{ Property name of entity class }
(3) Parameter is Map type
requirement : Placeholder must be map Medium key
demand : Paging search Department
版权声明:本文为[Fairy-KunKun]所创,转载请带上原文链接,感谢。 https://javamana.com/2022/134/202205141429154244.html