<?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.EquInfoDao"> <!-- 可根据自己的需求,是否要使用 --> <resultMap type="com.newfiber.modules.inspection.entity.EquInfoEntity" id="equInfoMap"> <result property="id" column="id"/> <result property="equNo" column="equ_no"/> <result property="equName" column="equ_name"/> <result property="pumpNo" column="pump_no"/> <result property="brandModel" column="brand_model"/> <result property="price" column="price"/> <result property="position" column="position"/> <result property="purchasingTime" column="purchasing_time"/> <result property="maintainPersonnel" column="maintain_personnel"/> <result property="fullname" column="fullname"/> <result property="maintainCycle" column="maintain_cycle"/> <result property="maintainTime" column="maintain_time"/> <result property="scanFlag" column="scan_flag"/> <result property="templateNo" column="template_no"/> <result property="templateName" column="template_name"/> <result property="remark" column="remark"/> </resultMap> <select id="getByEquNo" resultMap="equInfoMap"> select * from equ_info where equ_no = #{equNo} </select> </mapper>