springboot xml 映射继承

it2023-02-12  56

<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> <mapper namespace="org.springblade.modules.task.mapper.TaskMapper"> <!-- 通用查询映射结果 --> <resultMap id="taskResultMap" type="org.springblade.modules.task.entity.Task"> <result column="id" property="id"/> <result column="create_user" property="createUser"/> <result column="create_time" property="createTime"/> <result column="update_user" property="updateUser"/> <result column="update_time" property="updateTime"/> <result column="status" property="status"/> <result column="is_deleted" property="isDeleted"/> <result column="home_page" property="homePage"/> <result column="url" property="url"/> <result column="account" property="account"/> <result column="password" property="password"/> <result column="article_all_count" property="articleAllCount"/> <result column="remark" property="remark"/> <result column="task_status" property="taskStatus"/> <result column="demander_id" property="demanderId"/> <result column="demander_name" property="demanderName"/> <result column="editor_id" property="editorId"/> <result column="editor_name" property="editorName"/> <result column="receive_time" property="receiveTime"/> </resultMap> <resultMap id="VOResultMap" extends="taskResultMap" type="org.springblade.modules.task.vo.TaskVO"> </resultMap> </mapper>
最新回复(0)