智能仲裁后端服务

ArbitratorMapper.xml 1.7KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <!DOCTYPE mapper
  3. PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
  4. "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
  5. <mapper namespace="com.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper">
  6. <resultMap type="Arbitrator" id="ArbitratorResult">
  7. <id property="id" column="id" />
  8. <result property="arbitratorName" column="arbitrator_name" />
  9. <result property="title" column="title" />
  10. <result property="career" column="career" />
  11. <result property="professiClassifi" column="professi_classifi" />
  12. <result property="education" column="education" />
  13. <result property="area" column="area" />
  14. <result property="telephone" column="telephone" />
  15. <result property="currentCaseNum" column="current_case_num" />
  16. <result property="closedCaseNum" column="closed_case_num" />
  17. </resultMap>
  18. <select id="selectArbitratorList" parameterType="Arbitrator" resultMap="ArbitratorResult">
  19. select a.id ,a.arbitrator_name ,a.title ,a.career ,a.professi_classifi ,
  20. a.education ,a.area ,a.telephone ,a.current_case_num ,a.closed_case_num
  21. from arbitrator a
  22. <where>
  23. <if test="arbitratorName != null and arbitratorName != ''">
  24. AND a.arbitrator_name like concat('%', #{arbitratorName}, '%')
  25. </if>
  26. <if test="idList != null and idList.size() > 0">
  27. AND a.id in
  28. <foreach item="id" collection="idList" open="(" separator="," close=")">
  29. #{id}
  30. </foreach>
  31. </if>
  32. </where>
  33. </select>
  34. </mapper>