<?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="cn.flightfeather.supervision.domain.mapper.EvaluationMapper" >
|
<resultMap id="BaseResultMap" type="cn.flightfeather.supervision.domain.entity.Evaluation" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
<id column="E_GUID" property="eGuid" jdbcType="VARCHAR" />
|
<result column="I_GUID" property="iGuid" jdbcType="VARCHAR" />
|
<result column="ST_GUID" property="stGuid" jdbcType="VARCHAR" />
|
<result column="S_GUID" property="sGuid" jdbcType="VARCHAR" />
|
<result column="E_ScenseTypeID" property="eScensetypeid" jdbcType="TINYINT" />
|
<result column="E_ScenseType" property="eScensetype" jdbcType="VARCHAR" />
|
<result column="E_SubScenseTypeID" property="eSubscensetypeid" jdbcType="TINYINT" />
|
<result column="E_SubScenseType" property="eSubscensetype" jdbcType="VARCHAR" />
|
<result column="E_ERType" property="eErtype" jdbcType="TINYINT" />
|
<result column="E_ProvinceCode" property="eProvincecode" jdbcType="VARCHAR" />
|
<result column="E_ProvinceName" property="eProvincename" jdbcType="VARCHAR" />
|
<result column="E_CityCode" property="eCitycode" jdbcType="VARCHAR" />
|
<result column="E_CityName" property="eCityname" jdbcType="VARCHAR" />
|
<result column="E_DistrictCode" property="eDistrictcode" jdbcType="VARCHAR" />
|
<result column="E_DistrictName" property="eDistrictname" jdbcType="VARCHAR" />
|
<result column="E_TownCode" property="eTowncode" jdbcType="VARCHAR" />
|
<result column="E_TownName" property="eTownname" jdbcType="VARCHAR" />
|
<result column="E_ScenseName" property="eScensename" jdbcType="VARCHAR" />
|
<result column="E_ScenseAddress" property="eScenseaddress" jdbcType="VARCHAR" />
|
<result column="E_EvaluateTime" property="eEvaluatetime" jdbcType="TIMESTAMP" />
|
<result column="E_EvaluatorGUID" property="eEvaluatorguid" jdbcType="VARCHAR" />
|
<result column="E_EvaluatoruserName" property="eEvaluatorusername" jdbcType="VARCHAR" />
|
<result column="E_EvaluatorRealName" property="eEvaluatorrealname" jdbcType="VARCHAR" />
|
<result column="E_ResultStandardBef" property="eResultstandardbef" jdbcType="VARCHAR" />
|
<result column="E_ResultScoreBef" property="eResultscorebef" jdbcType="VARCHAR" />
|
<result column="E_PromissedNum" property="ePromissednum" jdbcType="INTEGER" />
|
<result column="E_ChangedNum" property="eChangednum" jdbcType="INTEGER" />
|
<result column="ResultStandardAft" property="resultstandardaft" jdbcType="VARCHAR" />
|
<result column="E_ResultScoreAft" property="eResultscoreaft" jdbcType="VARCHAR" />
|
<result column="E_CreateDate" property="eCreatedate" jdbcType="TIMESTAMP" />
|
<result column="E_UpdateDate" property="eUpdatedate" jdbcType="TIMESTAMP" />
|
<result column="E_Extension1" property="eExtension1" jdbcType="VARCHAR" />
|
<result column="E_Extension2" property="eExtension2" jdbcType="VARCHAR" />
|
<result column="E_Extension3" property="eExtension3" jdbcType="VARCHAR" />
|
<result column="E_Remark" property="eRemark" jdbcType="VARCHAR" />
|
</resultMap>
|
<sql id="Base_Column_List" >
|
<!--
|
WARNING - @mbg.generated
|
-->
|
E_GUID, I_GUID, ST_GUID, S_GUID, E_ScenseTypeID, E_ScenseType, E_SubScenseTypeID,
|
E_SubScenseType, E_ERType, E_ProvinceCode, E_ProvinceName, E_CityCode, E_CityName,
|
E_DistrictCode, E_DistrictName, E_TownCode, E_TownName, E_ScenseName, E_ScenseAddress,
|
E_EvaluateTime, E_EvaluatorGUID, E_EvaluatoruserName, E_EvaluatorRealName, E_ResultStandardBef,
|
E_ResultScoreBef, E_PromissedNum, E_ChangedNum, ResultStandardAft, E_ResultScoreAft,
|
E_CreateDate, E_UpdateDate, E_Extension1, E_Extension2, E_Extension3, E_Remark
|
</sql>
|
|
<select id="getAssessments" resultType="map">
|
select
|
b.UI_GUID as userId,
|
b.UI_RealName as userRealName,
|
b.UI_Extension2 as sceneType,
|
a.E_GUID as tPGuid,
|
a.ST_GUID as tPRuleGuid,
|
a.E_ResultScoreBef as totalPoint,
|
a.E_PromissedNum as rank,
|
a.E_UpdateDate as updateDate
|
from ea_t_evaluation as a right join sm_t_userinfo as b on a.I_GUID = b.UI_GUID where a.E_ERType = 0 and
|
b.UI_Extension1 = #{param1} and (isnull(a.E_EvaluatorRealName) or a.E_EvaluatorRealName = 0)
|
<if test="param2 != '' ">
|
and b.UI_RealName like '%${param2}%'
|
</if>
|
<if test="sceneTypes.size() != 0">
|
and b.UI_Extension2 in
|
<foreach collection="sceneTypes" item="item" index="" separator="," open="(" close=")">
|
#{item}
|
</foreach>
|
</if>
|
order by a.E_UpdateDate desc
|
</select>
|
</mapper>
|