|
@@ -0,0 +1,50 @@
|
|
|
+<?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.ims.eval.dao.PerformanceBenchmarkInfoMapper">
|
|
|
+
|
|
|
+ <!-- 通用查询映射结果 -->
|
|
|
+ <resultMap id="BaseResultMap" type="com.ims.eval.entity.PerformanceBenchmarkInfo">
|
|
|
+ <id column="id" property="id"/>
|
|
|
+ <result column="year" property="year"/>
|
|
|
+ <result column="quarter" property="quarter"/>
|
|
|
+ <result column="monthly" property="monthly"/>
|
|
|
+ <result column="manage_category" property="manageCategory"/>
|
|
|
+ <result column="serial_number" property="serialNumber"/>
|
|
|
+ <result column="company_id" property="companyId"/>
|
|
|
+ <result column="company_name" property="companyName"/>
|
|
|
+ <result column="install_capacity" property="installCapacity"/>
|
|
|
+ <result column="index_name" property="indexName"/>
|
|
|
+ <result column="planned_value" property="plannedValue"/>
|
|
|
+ <result column="complete_value" property="completeValue"/>
|
|
|
+ <result column="recommended_value" property="recommendedValue"/>
|
|
|
+ <result column="scaling_value" property="scalingValue"/>
|
|
|
+ <result column="is_pole" property="isPole"/>
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+ <!-- 通用查询结果列 -->
|
|
|
+ <sql id="selectPerformanceBenchmarkInfoVo">
|
|
|
+ select id, `year`, quarter, monthly, manage_category, serial_number, company_id, company_name, install_capacity, index_name, planned_value, complete_value, recommended_value, scaling_value, is_pole
|
|
|
+ from performance_benchmark_info
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectListPage" resultType="com.ims.eval.entity.PerformanceBenchmarkInfo">
|
|
|
+ select * from performance_benchmark_info
|
|
|
+ <where>
|
|
|
+ <if test="year != null and year != ''">
|
|
|
+ AND year = #{year}
|
|
|
+ </if>
|
|
|
+ <if test="quarter != null and quarter != ''">
|
|
|
+ AND quarter = #{quarter}
|
|
|
+ </if>
|
|
|
+ <if test="monthly != null and monthly != ''">
|
|
|
+ AND monthly = #{monthly}
|
|
|
+ </if>
|
|
|
+ <if test="manageCategory != null and manageCategory != ''">
|
|
|
+ AND manage_category = #{manageCategory}
|
|
|
+ </if>
|
|
|
+ </where>
|
|
|
+ order by serial_number asc
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|