<?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.casic.missiles.mapper.quality.BizQualityInternalAuditFileMapper"> <!-- 通用查询映射结果 --> <resultMap id="BaseResultMap" type="com.casic.missiles.model.quality.BizQualityInternalAuditFile"> <result column="id" property="id"/> <result column="create_time" property="createTime"/> <result column="update_time" property="updateTime"/> <result column="file_type" property="fileType"/> <result column="target_id" property="targetId"/> <result column="management_id" property="managementId"/> <result column="file_name" property="fileName"/> <result column="file_path" property="filePath"/> </resultMap> <!-- 通用查询结果列 --> <sql id="Base_Column_List"> id , create_time as createTime , update_time as updateTime , file_type as fileType , target_id as targetId , management_id as managementId , file_name as fileName , file_path as filePath </sql> <select id="selectBizQualityInternalAuditFilePage" resultType="com.casic.missiles.model.quality.BizQualityInternalAuditFile"> select a.id , a.create_time as createTime , a.update_time as updateTime , a.file_type as fileType , a.target_id as targetId , a.management_id as managementId , a.file_name as fileName , a.file_path as filePath from biz_quality_internal_audit_file a <where> <if test="ew != null"> ${ew.sqlSegment} </if> </where> </select> <sql id="Base_Column_Query"> <if test="request!=null"> </if> </sql> </mapper>