首页>代码>jsp+servlet+jdbc纯原生实现的案件报批后台管理系统>/报批管理系统/01-项目源码/approvalmanagement/src/main/java/com/cxs/dao/ChangePasswordDao.java
package com.cxs.dao; import com.cxs.model.User; import com.cxs.utils.DBUtils; import org.apache.commons.dbutils.QueryRunner; import org.apache.commons.dbutils.handlers.BeanHandler; import java.sql.SQLException; public class ChangePasswordDao { QueryRunner queryRunner = new QueryRunner(DBUtils.getDs()); public User getUserByUsername(String username) throws SQLException { return queryRunner.query("select * from loginuser where username = ?", new BeanHandler<>(User.class), username); } public Integer updatePassword(String username,String newPassword) throws SQLException { return queryRunner.update("update loginuser set password = ? where username = ?",newPassword,username); } }

xuweiwowzy LV5
2023年8月10日
泓鼎168 LV20
2023年6月30日
全栈小白 LV35
2023年4月25日
想飞的大肥猪 LV9
2023年4月7日
1778319936 LV2
2023年3月30日
dmyafda LV5
2023年3月26日
最代码官方 LV168
2023年3月25日

微信网友_7371218154688512 LV4
2月5日
lujinchao1111 LV4
1月13日
2024YFH LV2
2024年12月29日
ma406805131 LV19
2024年12月18日
蛋蛋蛋蛋的糕糕
2024年12月17日
暂无贡献等级
sjwc88 LV3
2024年12月16日
yimaoermao LV1
2024年11月28日
zolscy LV24
2024年11月26日
shunlun8855 LV1
2024年10月25日
liuyutong LV3
2024年9月25日