CompareMessageMapper.xml 1.4 KB

1234567891011121314151617181920212223242526272829303132333435
  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="cn.cslg.report.mapper.CompareMessageMapper">
  4. <select id="getCompareMessage" resultType="cn.cslg.report.common.model.vo.CompareMessageVO">
  5. select a.* ,b.TARGET_DESCRIPTION,b.COMPARE_DESCRIPTION,b.COMPARE_RESULT from FEATURES a left join COMPARE_MESSAGE b on a.id =b.FEATURE_ID
  6. where a.SIGN_PATENT_NO=#{patentNo} and a.TASK_ID=#{taskId};
  7. </select>
  8. <select id="getComparedMessage" resultType="java.lang.String">
  9. select DISTINCT f.SIGN_PATENT_NO from RMS_TEST.FEATURES f left join RMS_TEST.COMPARE_MESSAGE cm on f.ID =cm.FEATURE_ID
  10. <where>
  11. and f.REPORT_ID=#{params.reportId}
  12. and cm.ID is not null
  13. <if test="params.compareResult !=null">
  14. and cm.COMPARE_RESULT=#{params.compareResult}
  15. </if>
  16. </where>
  17. </select>
  18. <select id="getComparedMessageAll" resultType="java.lang.String">
  19. select DISTINCT f.SIGN_PATENT_NO from RMS_TEST.FEATURES f left join RMS_TEST.COMPARE_MESSAGE cm on f.ID =cm.FEATURE_ID
  20. <where>
  21. and f.REPORT_ID=#{params.reportId}
  22. and cm.ID is not null
  23. <if test="params.compareResult !=null">
  24. and cm.COMPARE_RESULT=#{params.compareResult}
  25. </if>
  26. </where>
  27. </select>
  28. </mapper>