EvaluationWarningRuleMapper.xml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  3. <mapper namespace="com.ims.eval.dao.OrganizationRatingRuleMapper">
  4. <select id="selectList" resultType="com.ims.eval.entity.OrganizationRatingRule">
  5. select
  6. r.*,
  7. bs.section_name binsectionname,
  8. be.stage_name binstagename
  9. from
  10. organization_rating_rule r
  11. left join bin_section bs on bs.id = r.bin_stage
  12. left join bin_stage be on be.id = r.bin_stage
  13. <where>
  14. <if test="id !=null and id !=''">
  15. and r.id=#{id}
  16. </if>
  17. <if test="binSection !=null and binSection !=''">
  18. and r.bin_section=#{binSection}
  19. </if>
  20. <if test="binStage !=null and binStage !=''">
  21. and r.bin_stage=#{binStage}
  22. </if>
  23. <if test="ruleName !=null and ruleName !=''">
  24. and r.rule_name=#{ruleName}
  25. </if>
  26. <if test="checkCycle !=null and checkCycle !=''">
  27. and r.check_cycle=#{checkCycle}
  28. </if>
  29. </where>
  30. </select>
  31. </mapper>