public interface SystemParameterMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SystemParameterDO record);

    SystemParameterDO selectByPrimaryKey(Integer id);//不使用注解

    List<SystemParameterDO> selectAll();

    int updateByPrimaryKey(SystemParameterDO record);

    SystemParameterDO getByParamID(@Param("paramID") String paramID);//使用注解
}

跟映射的xml

<select >
    select id, paramID, paramContent, paramType, memo
    from wh_system_parameter
    where id = #{id,jdbcType=INTEGER}
  </select>

<select >
    select id, paramID, paramContent, paramType, memo
    from wh_system_parameter
    where paramID = #{paramID}
  </select>

区别是:使用注解可以不用加parameterType

相关文章:

  • 2021-09-07
  • 2021-10-12
  • 2022-12-23
  • 2021-08-25
  • 2022-12-23
  • 2021-08-06
  • 2022-12-23
猜你喜欢
  • 2021-08-28
  • 2022-12-23
  • 2022-12-23
  • 2022-02-22
  • 2021-07-02
相关资源
相似解决方案