28 lines
1.2 KiB
XML
28 lines
1.2 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.CaseEvidenceMapper">
|
|
<resultMap type="CaseEvidenceVO" id="CaseEvidenceVOResult">
|
|
<id property="id" column="id" />
|
|
<result property="caseNum" column="case_num" />
|
|
<result property="caseStatus" column="case_status" />
|
|
</resultMap>
|
|
<select id="getCaseListByRespondent" resultType="CaseEvidenceVO" resultMap="CaseEvidenceVOResult">
|
|
select c.id, c.case_num,c.case_status
|
|
from case_application as c ,case_affiliate as d
|
|
where c.id = d.case_appli_id
|
|
<if test="identityNum != null and identityNum != ''">
|
|
and d.identity_num = #{identityNum}
|
|
</if>
|
|
<if test="identityType != null ">
|
|
and identity_type = #{identityType}
|
|
</if>
|
|
<if test="caseStatusList != null and caseStatusList.size() > 0">
|
|
and c.case_status in
|
|
<foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
|
|
#{caseStatus}
|
|
</foreach>
|
|
</if>
|
|
</select>
|
|
</mapper> |