@Select({
“select”,
“inst_id, start_dt, last_access_dt, inst_pass, account_type”,
“from account_mst”,
“where inst_id = #{instId,jdbcType=VARCHAR}”,
" and inst_pass = #{instPass,jdbcType=VARCHAR}"
})
@Results({
@Result(column=“inst_id”, property=“instId”, jdbcType=JdbcType.VARCHAR, id=true),
@Result(column=“start_dt”, property=“startDt”, jdbcType=JdbcType.TIMESTAMP),
@Result(column=“last_access_dt”, property=“lastAccessDt”, jdbcType=JdbcType.TIMESTAMP),
@Result(column=“inst_pass”, property=“instPass”, jdbcType=JdbcType.VARCHAR),
@Result(column=“account_type”, property=“accountType”, jdbcType=JdbcType.INTEGER)
})
AccountMst selectByUserPw(@Param(“instId”)String instId, @Param(“instPass”) String instPass);
【无标题】
最新推荐文章于 2024-09-30 10:36:33 发布
文章描述了如何通过Java的JDBC接口执行SQL查询,从account_mst表中获取指定用户标识和密码对应的账户信息,包括开始日期、最后访问日期、密码和账户类型。
摘要由CSDN通过智能技术生成