Files
Arbitrate-Backend/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/ArbitratorMapper.xml
T
2023-09-14 18:40:44 +08:00

49 lines
1.5 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>
</where>
</select>
</mapper>