40 lines
1.7 KiB
XML
40 lines
1.7 KiB
XML
<?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.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper">
|
|
<resultMap type="Arbitrator" id="ArbitratorResult">
|
|
<id property="id" column="id" />
|
|
<result property="arbitratorName" column="arbitrator_name" />
|
|
<result property="title" column="title" />
|
|
<result property="career" column="career" />
|
|
<result property="professiClassifi" column="professi_classifi" />
|
|
<result property="education" column="education" />
|
|
<result property="area" column="area" />
|
|
<result property="telephone" column="telephone" />
|
|
<result property="currentCaseNum" column="current_case_num" />
|
|
<result property="closedCaseNum" column="closed_case_num" />
|
|
|
|
</resultMap>
|
|
|
|
|
|
<select id="selectArbitratorList" parameterType="Arbitrator" resultMap="ArbitratorResult">
|
|
select a.id ,a.arbitrator_name ,a.title ,a.career ,a.professi_classifi ,
|
|
a.education ,a.area ,a.telephone ,a.current_case_num ,a.closed_case_num
|
|
from arbitrator a
|
|
<where>
|
|
<if test="arbitratorName != null and arbitratorName != ''">
|
|
AND a.arbitrator_name like concat('%', #{arbitratorName}, '%')
|
|
</if>
|
|
|
|
<if test="idList != null and idList.size() > 0">
|
|
AND a.id in
|
|
<foreach item="id" collection="idList" open="(" separator="," close=")">
|
|
#{id}
|
|
</foreach>
|
|
</if>
|
|
|
|
</where>
|
|
</select>
|
|
|
|
</mapper> |