|
|
@@ -0,0 +1,79 @@
|
|
|
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.ArbitrateRecordMapper">
|
|
|
6
|
+ <resultMap type="ArbitrateRecord" id="ArbitrateRecordResult">
|
|
|
7
|
+ <id property="id" column="id" />
|
|
|
8
|
+ <result property="caseAppliId" column="case_appli_id" />
|
|
|
9
|
+ <result property="evidenDetermi" column="eviden_determi" />
|
|
|
10
|
+ <result property="factDetermi" column="fact_determi" />
|
|
|
11
|
+ <result property="caseSketch" column="case_sketch" />
|
|
|
12
|
+ <result property="arbitrateThink" column="arbitrate_think" />
|
|
|
13
|
+ <result property="rulingFollows" column="ruling_follows" />
|
|
|
14
|
+ <result property="verificaOpinion" column="verifica_opinion" />
|
|
|
15
|
+ <result property="checkOpinion" column="check_opinion" />
|
|
|
16
|
+
|
|
|
17
|
+ </resultMap>
|
|
|
18
|
+
|
|
|
19
|
+ <insert id="insertArbitrateRecord" parameterType="ArbitrateRecord" useGeneratedKeys="true" keyProperty="id">
|
|
|
20
|
+ insert into arbitrate_record(
|
|
|
21
|
+ <if test="caseAppliId != null">case_appli_id,</if>
|
|
|
22
|
+ <if test="evidenDetermi != null and evidenDetermi != ''">eviden_determi,</if>
|
|
|
23
|
+ <if test="factDetermi != null and factDetermi != ''">fact_determi,</if>
|
|
|
24
|
+ <if test="caseSketch != null and caseSketch != ''">case_sketch,</if>
|
|
|
25
|
+ <if test="rulingFollows != null and rulingFollows != ''">ruling_follows,</if>
|
|
|
26
|
+ <if test="verifica_opinion != null and verifica_opinion != ''">verificaOpinion,</if>
|
|
|
27
|
+ <if test="check_opinion != null and check_opinion != ''">checkOpinion,</if>
|
|
|
28
|
+ <if test="createBy != null and createBy != ''">create_by,</if>
|
|
|
29
|
+ create_time
|
|
|
30
|
+ )values(
|
|
|
31
|
+ <if test="caseAppliId != null ">#{caseAppliId},</if>
|
|
|
32
|
+ <if test="evidenDetermi != null and evidenDetermi != ''">#{evidenDetermi},</if>
|
|
|
33
|
+ <if test="factDetermi != null and factDetermi != ''">#{factDetermi},</if>
|
|
|
34
|
+ <if test="caseSketch != null and caseSketch != ''">#{caseSketch},</if>
|
|
|
35
|
+ <if test="rulingFollows != null and rulingFollows != ''">#{rulingFollows},</if>
|
|
|
36
|
+ <if test="verifica_opinion != null and verifica_opinion != ''">#{verifica_opinion},</if>
|
|
|
37
|
+ <if test="check_opinion != null and check_opinion != ''">#{check_opinion},</if>
|
|
|
38
|
+ <if test="createBy != null and createBy != ''">#{createBy},</if>
|
|
|
39
|
+ sysdate()
|
|
|
40
|
+ )
|
|
|
41
|
+ </insert>
|
|
|
42
|
+
|
|
|
43
|
+
|
|
|
44
|
+ <update id="updataArbitrateRecord" parameterType="ArbitrateRecord">
|
|
|
45
|
+ update arbitrate_record
|
|
|
46
|
+ <set>
|
|
|
47
|
+ <if test="evidenDetermi != null and evidenDetermi != ''">eviden_determi = #{evidenDetermi},</if>
|
|
|
48
|
+ <if test="factDetermi != null and factDetermi != ''">fact_determi = #{factDetermi},</if>
|
|
|
49
|
+ <if test="caseSketch != null and caseSketch != ''">case_sketch = #{caseSketch},</if>
|
|
|
50
|
+ <if test="arbitrateThink != null and arbitrateThink != ''">arbitrate_think = #{arbitrateThink},</if>
|
|
|
51
|
+ <if test="rulingFollows != null and rulingFollows != ''">ruling_follows = #{rulingFollows},</if>
|
|
|
52
|
+ <if test="verificaOpinion != null and verificaOpinion != ''">verifica_opinion = #{verificaOpinion},</if>
|
|
|
53
|
+ <if test="checkOpinion != null and checkOpinion != ''">check_opinion = #{checkOpinion},</if>
|
|
|
54
|
+ <if test="updateBy != null and updateBy != ''">update_by = #{updateBy},</if>
|
|
|
55
|
+ update_time = sysdate()
|
|
|
56
|
+ </set>
|
|
|
57
|
+ where id = #{id}
|
|
|
58
|
+ </update>
|
|
|
59
|
+
|
|
|
60
|
+
|
|
|
61
|
+ <select id="selectArbitrateRecord" parameterType="ArbitrateRecord" resultMap="ArbitrateRecordResult">
|
|
|
62
|
+ SELECT a.id ,a.case_appli_id ,a.eviden_determi ,a.fact_determi ,a.case_sketch ,a.arbitrate_think ,a.ruling_follows ,
|
|
|
63
|
+ a.verifica_opinion ,a.check_opinion
|
|
|
64
|
+ from arbitrate_record a
|
|
|
65
|
+ <where>
|
|
|
66
|
+ <if test="caseAppliId != null ">
|
|
|
67
|
+ AND a.case_appli_id = #{caseAppliId}
|
|
|
68
|
+ </if>
|
|
|
69
|
+ </where>
|
|
|
70
|
+ </select>
|
|
|
71
|
+
|
|
|
72
|
+
|
|
|
73
|
+
|
|
|
74
|
+
|
|
|
75
|
+
|
|
|
76
|
+
|
|
|
77
|
+
|
|
|
78
|
+
|
|
|
79
|
+</mapper>
|