In the ssm framework of java, in the mapper interface, if the interface name is the same and the parameters are different, how to distinguish it in xml?

    int updateDepartmentManagerState(@Param("id")String id,@Param("code")String code,@Param("time")String time);
    int updateDepartmentManagerState(@Param("id")String id,@Param("code")String code,@Param("time")String time,@Param("reason")String reason);
Mar.03,2021

cannot be overloaded, because


you can use if in xml to determine whether the parameter exists, and concatenate different sql,


can not be overloaded. XML has no overloaded statement

.
Menu