| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <?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.OrganizationRatingMapper">
- <select id="selectList" resultType="com.ims.eval.entity.OrganizationRating">
- select
- r.id,r.organization_year_rating_id,r.organization_short_name,r.organization_id,r.year,r.bin_section,TRIM('"' FROM r.scjy_rate) AS scjy_rate,
- TRIM('"' FROM r.qq_rate) AS qq_rate,TRIM('"' FROM r.jj_rate) AS jj_rate,TRIM('"' FROM r.year_rate) AS year_rate,r.create_by,r.update_by,r.create_time,r.update_time,
- r.remark,r.safety_env_protection,r.veto,r.net_profit,r.composite_score,r.annual_target,r.bonus_point,r.composite_score_raking,r.project_level,
- bs.section_name binsectionname
- from
- organization_rating r
- left join bin_section bs on bs.section_code = r.bin_section
- <where>
- <if test="id !=null and id !=''">
- and r.id=#{id}
- </if>
- <if test="organizationYearRatingId !=null and organizationYearRatingId !=''">
- and r.organization_year_rating_id=#{organizationYearRatingId}
- </if>
- <if test="binSection !=null and binSection !=''">
- and r.bin_section=#{binSection}
- </if>
- <if test="year !=null and year !=''">
- and r.year=#{year}
- </if>
- <if test="organizationShortName !=null and organizationShortName !=''">
- AND r.organization_short_name like CONCAT('%',#{organizationShortName},'%')
- </if>
- <if test="organizationId !=null and organizationId !=''">
- and r.organization_id=#{organizationId}
- </if>
- <if test="safetyEnvProtection !=null and safetyEnvProtection !=''">
- and r.safety_env_protection=#{safetyEnvProtection}
- </if>
- <if test="veto !=null and veto !=''">
- and r.veto=#{veto}
- </if>
- <if test="netProfit !=null and netProfit !=''">
- and r.net_profit=#{netProfit}
- </if>
- <if test="compositeScore !=null and compositeScore !=''">
- and r.composite_score=#{compositeScore}
- </if>
- <if test="annualTarget !=null and annualTarget !=''">
- and r.annual_target=#{annualTarget}
- </if>
- <if test="bonusPoint !=null and compositeScore !=''">
- and r.bonus_point=#{bonusPoint}
- </if>
- <if test="compositeScoreRaking !=null and compositeScoreRaking !=''">
- and r.composite_score_raking=#{compositeScoreRaking}
- </if>
- <if test="projectLevel !=null and projectLevel !=''">
- and r.project_level=#{projectLevel}
- </if>
- </where>
- order by r.organization_short_name
- </select>
- <select id="selectListSating" resultType="com.ims.eval.entity.OrganizationRating">
- select
- *
- from
- organization_rating r
- <where>
- <if test="organizationYearRatingId !=null and organizationYearRatingId !=''">
- and r.organization_year_rating_id=#{organizationYearRatingId}
- </if>
- <if test="year !=null and year !=''">
- and r.year=#{year}
- </if>
- <if test="organizationId !=null and organizationId !=''">
- and r.organization_id=#{organizationId}
- </if>
- </where>
- </select>
- </mapper>
|