| 123456789101112131415161718192021222324252627282930313233343536373839404142 |
- <?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.OrganizationRatingRuleMapper">
- <select id="selectList" resultType="com.ims.eval.entity.OrganizationRatingRule">
- select
- r.*,
- bs.section_name binsectionname,
- be.stage_name binstagename
- from
- organization_rating_rule r
- left join bin_section bs on bs.id = r.bin_stage
- left join bin_stage be on be.id = r.bin_stage
- <where>
- <if test="id !=null and id !=''">
- and r.id=#{id}
- </if>
- <if test="binSection !=null and binSection !=''">
- and r.bin_section=#{binSection}
- </if>
- <if test="binStage !=null and binStage !=''">
- and r.bin_stage=#{binStage}
- </if>
- <if test="ruleName !=null and ruleName !=''">
- and r.rule_name=#{ruleName}
- </if>
- <if test="checkCycle !=null and checkCycle !=''">
- and r.check_cycle=#{checkCycle}
- </if>
- </where>
- </select>
- </mapper>
|