|
@@ -0,0 +1,67 @@
|
|
|
+<?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.EvaluationPortalMapper">
|
|
|
+
|
|
|
+
|
|
|
+ <resultMap id="BaseResultMap" type="com.ims.eval.entity.EvaluationPortal">
|
|
|
+ <id column="id" property="id" />
|
|
|
+ <result column="bin_section" property="binSection" />
|
|
|
+ <result column="company" property="company" />
|
|
|
+ <result column="grade" property="grade" />
|
|
|
+ <result column="score" property="score" />
|
|
|
+ <result column="base_score" property="baseScore" />
|
|
|
+ <result column="year" property="year" />
|
|
|
+ <result column="season" property="season" />
|
|
|
+ <result column="matter_heigh" property="matterHeigh" />
|
|
|
+ <result column="matter_low" property="matterLow" />
|
|
|
+ <result column="manage_heigh" property="manageHeigh" />
|
|
|
+ <result column="manage_low" property="manageLow" />
|
|
|
+ <result column="standard_heigh" property="standardHeigh" />
|
|
|
+ <result column="standard_low" property="standardLow" />
|
|
|
+ <result column="dept_id" property="deptId" />
|
|
|
+ <result column="create_time" property="createTime" />
|
|
|
+ </resultMap>
|
|
|
+
|
|
|
+
|
|
|
+ <sql id="Base_Column_List">
|
|
|
+ id, bin_section, company, grade, score, base_score, year, season, matter_heigh, matter_low, manage_heigh, manage_low, standard_heigh, standard_low, dept_id, create_time
|
|
|
+ </sql>
|
|
|
+
|
|
|
+ <select id="selectPortalList" resultType="java.util.Map">
|
|
|
+ SELECT
|
|
|
+ ep.*,
|
|
|
+ ea.portal_id,
|
|
|
+ ea.matter_heigh_note,
|
|
|
+ ea.matter_low_note,
|
|
|
+ ea.manage_height_note,
|
|
|
+ ea.manage_low_note,
|
|
|
+ ea.standard_heigh_note,
|
|
|
+ ea.standard_low_note
|
|
|
+ FROM
|
|
|
+ evaluation_portal ep
|
|
|
+ LEFT JOIN evaluation_portal_attach ea ON ep.id = ea.portal_id
|
|
|
+ <where>
|
|
|
+
|
|
|
+ <if test="binSection !=null and binSection !=''">
|
|
|
+ AND ep.bin_section = #{binSection}
|
|
|
+ </if>
|
|
|
+ <if test="year !=null and year !=''">
|
|
|
+ AND ep.year = #{year}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="season !=null and season !=''">
|
|
|
+ AND ep.season = #{season}
|
|
|
+ </if>
|
|
|
+
|
|
|
+ <if test="season ==null">
|
|
|
+ AND ep.season is null
|
|
|
+ </if>
|
|
|
+
|
|
|
+ </where>
|
|
|
+
|
|
|
+ ORDER BY SCORE DESC
|
|
|
+
|
|
|
+ </select>
|
|
|
+
|
|
|
+
|
|
|
+</mapper>
|