mybatis简单案例源码详细【注释全面】——Dao层映射文件(UserMapper.xml)【重要】
发布日期:2021-05-14 13:10:01 浏览次数:18 分类:精选文章

本文共 5551 字,大约阅读时间需要 18 分钟。

            
insert into user
(userCode, userName, userPassword, gender, birthday, phone, address, userRole, createdBy, creationDate, modifyBy, modifyDate)
values #{userCode}, #{userName}, #{userPassword}, #{gender}, #{birthday}, #{phone}, #{address}, #{userrole}, #{createBy}, #{creationDate}, #{modifyBy}, #{modifyDate}
update user
set userCode=#{userCode}, userName=#{userName}, userPassword=#{userPassword},
gender=#{gender}, birthday=#{birthday}, phone=#{phone}, address=#{address}, userRole=#{userrole},
createdBy=#{createBy}, creationDate=#{creationDate}, modifyBy=#{modifyBy}, modifyDate=#{modifyDate}
where id=#{id}
delete from user where id=#{id}
update user
userCode=#{userCode}
userName=#{userName}
userPassword=#{userPassword}
gender=#{gender}
birthday=#{birthday}
phone=#{phone}
address=#{address}
userrole=#{userrole}
createdBy=#{createBy}
creationDate=#{creationDate}
modifyBy=#{modifyBy}
modifyDate=#{modifyDate}
where id=#{id}
update user
userCode=#{userCode}
userName=#{userName}
userPassword=#{userPassword}
gender=#{gender}
birthday=#{birthday}
phone=#{phone}
address=#{address}
userrole=#{userrole}
createdBy=#{createBy}
creationDate=#{creationDate}
modifyBy=#{modifyBy}
modifyDate=#{modifyDate}
上一篇:mybatis简单案例源码详细【注释全面】——测试层(UserMapperTest.java)
下一篇:mybatis简单案例源码详细【注释全面】——Dao层接口(UserMapper.java)

发表评论

最新留言

留言是一种美德,欢迎回访!
[***.207.175.100]2025年04月28日 02时44分46秒