<?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="com.newfiber.modules.inspection.dao.FileUploadDao"> <!-- 可根据自己的需求,是否要使用 --> <resultMap type="com.newfiber.modules.inspection.entity.FileUploadEntity" id="fileUploadMap"> <result property="id" column="id"/> <result property="relationId" column="relation_id"/> <result property="fileNo" column="file_no"/> <result property="fileName" column="file_name"/> <result property="filePath" column="file_path"/> <result property="fileType" column="file_type"/> <result property="updatedTime" column="updated_time"/> </resultMap> </mapper>