截止9.14开发
This commit is contained in:
@@ -3,8 +3,21 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseAttachMapper">
|
||||
<resultMap type="CaseAttach" id="CaseAttachResult">
|
||||
<id property="annexId" column="annex_id" />
|
||||
<result property="caseAppliId" column="case_appli_id" />
|
||||
<result property="annexName" column="annex_name" />
|
||||
<result property="annexPath" column="annex_path" />
|
||||
<result property="annexPath" column="annex_type" />
|
||||
<result property="note" column="note" />
|
||||
</resultMap>
|
||||
<insert id="save">
|
||||
INSERT INTO case_attach (case_appli_id, annex_name, annex_path , annex_type,note)
|
||||
VALUES (#{caseAppliId}, #{annexName}, #{annexPath},#{annexType},#{note})
|
||||
</insert>
|
||||
<select id="queryAnnexPathByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
|
||||
select annex_id,case_appli_id,annex_name,annex_path,annex_type,note
|
||||
from case_attach
|
||||
where
|
||||
</select>
|
||||
</mapper>
|
||||
@@ -3,10 +3,26 @@
|
||||
PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
||||
"http://mybatis.org/dtd/mybatis-3-mapper.dtd">
|
||||
<mapper namespace="com.ruoyi.wisdomarbitrate.mapper.CaseEvidenceMapper">
|
||||
<select id="getCaseListByRespondent" resultType="CaseEvidenceVO">
|
||||
select c.id, c.case_num as caseNum ,c.case_status as caseStatus,d.name as respondentName
|
||||
<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 and d.identity_num = #{identityNum} and identity_type = #{identityType}
|
||||
and c.case_status = #{caseStatus}
|
||||
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>
|
||||
Reference in New Issue
Block a user