@ 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 methodsCodePudding 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?