update 优化 利用 resultMap 自动映射配置 简化 xml (非嵌套)

This commit is contained in:
疯狂的狮子Li
2023-01-14 01:01:13 +08:00
parent 8ae8c5498d
commit 5911e94b65
21 changed files with 19 additions and 265 deletions
@@ -4,9 +4,4 @@
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.system.mapper.SysUserPostMapper">
<resultMap type="SysUserPost" id="SysUserPostResult">
<result property="userId" column="user_id"/>
<result property="postId" column="post_id"/>
</resultMap>
</mapper>