Home > Back-end >  Mybatisplus: int updateById (@ Param (the ENTITY) T ENTITY); Why the incoming entity..
Mybatisplus: int updateById (@ Param (the ENTITY) T ENTITY); Why the incoming entity..

Time:04-14

 @ Override 
Public void update (the Employee the Employee) {
EmployeeMapper. UpdateById (employee);
}



/* ** ID according to modify 
*
* @ param entity entity object
*/
Int updateById (@ Param (the ENTITY) T ENTITY);

According to the Id, the incoming is an entity, however, that how to understand, sprout new cellar,

CodePudding user response:

Modified by id, yeah, want to modify information shall not be passed to methods

CodePudding user response:

Because the other need to modify the id and the value of the object,,,

CodePudding user response:

Suggest you write an update statement will know that the update table set filed where id==XXX XXX, your XXX, are they not coming?
  • Related