Parcourir la source

Merge branch 'qtz' of SH-Arbitrate/Arbitrate-Backend into dev

qtz il y a 2 ans
Parent
révision
14075b3f3f

+ 40
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseLogRecordController.java Voir le fichier

1
+package com.ruoyi.web.controller.wisdomarbitrate;
2
+
3
+import com.ruoyi.common.core.controller.BaseController;
4
+import com.ruoyi.common.core.page.TableDataInfo;
5
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
7
+import com.ruoyi.wisdomarbitrate.service.ICaseLogRecordService;
8
+import org.springframework.beans.factory.annotation.Autowired;
9
+import org.springframework.security.access.prepost.PreAuthorize;
10
+import org.springframework.web.bind.annotation.GetMapping;
11
+import org.springframework.web.bind.annotation.RequestMapping;
12
+import org.springframework.web.bind.annotation.RestController;
13
+
14
+import java.util.List;
15
+
16
+@RestController
17
+@RequestMapping("/caseLogRecord")
18
+public class CaseLogRecordController   extends BaseController {
19
+    @Autowired
20
+    private ICaseLogRecordService caseLogRecordService;
21
+
22
+    /**
23
+     * 查询案件日志列表
24
+     */
25
+    @PreAuthorize("@ss.hasPermi('caseLogRecord:list')")
26
+    @GetMapping("/list")
27
+    public TableDataInfo list(CaseLogRecord caseLogRecord)
28
+    {
29
+        startPage();
30
+        List<CaseLogRecord> list = caseLogRecordService.selectCaseLogRecordList(caseLogRecord);
31
+        return getDataTable(list);
32
+    }
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+}

+ 35
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Voir le fichier

68
     /** 仲裁员名称 */
68
     /** 仲裁员名称 */
69
     private String arbitratorName;
69
     private String arbitratorName;
70
 
70
 
71
+    /** 案件名称 */
72
+    private String caseName;
73
+
74
+    /** 案件描述 */
75
+    private String caseDescribe;
76
+
77
+    public String getCaseName() {
78
+        return caseName;
79
+    }
80
+
81
+    public void setCaseName(String caseName) {
82
+        this.caseName = caseName;
83
+    }
84
+
85
+    public String getCaseDescribe() {
86
+        return caseDescribe;
87
+    }
88
+
89
+    public void setCaseDescribe(String caseDescribe) {
90
+        this.caseDescribe = caseDescribe;
91
+    }
92
+
93
+    public String getCaseResult() {
94
+        return caseResult;
95
+    }
96
+
97
+    public void setCaseResult(String caseResult) {
98
+        this.caseResult = caseResult;
99
+    }
100
+
101
+    /** 仲裁结果 */
102
+    private String caseResult;
103
+
104
+
105
+
71
     public String getArbitratorName() {
106
     public String getArbitratorName() {
72
         return arbitratorName;
107
         return arbitratorName;
73
     }
108
     }

+ 76
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseLogRecord.java Voir le fichier

1
+package com.ruoyi.wisdomarbitrate.domain;
2
+
3
+import com.fasterxml.jackson.annotation.JsonFormat;
4
+import com.ruoyi.common.annotation.Excel;
5
+import com.ruoyi.common.core.domain.BaseEntity;
6
+
7
+import java.util.Date;
8
+
9
+public class CaseLogRecord     extends BaseEntity {
10
+    private static final long serialVersionUID = 1L;
11
+
12
+    /** ID */
13
+    private Long id;
14
+    /** 案件申请id */
15
+    private Long caseAppliId;
16
+    /** 案件节点 */
17
+    private String caseNode;
18
+
19
+    /** 案件节点时间 */
20
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
21
+    private Date caseNodeTime;
22
+
23
+    /** 备注 */
24
+    private String notes;
25
+
26
+    /** 案件编号 */
27
+    private String caseNum;
28
+
29
+    public String getCaseNum() {
30
+        return caseNum;
31
+    }
32
+
33
+    public void setCaseNum(String caseNum) {
34
+        this.caseNum = caseNum;
35
+    }
36
+
37
+    public Long getId() {
38
+        return id;
39
+    }
40
+
41
+    public void setId(Long id) {
42
+        this.id = id;
43
+    }
44
+
45
+    public Long getCaseAppliId() {
46
+        return caseAppliId;
47
+    }
48
+
49
+    public void setCaseAppliId(Long caseAppliId) {
50
+        this.caseAppliId = caseAppliId;
51
+    }
52
+
53
+    public String getCaseNode() {
54
+        return caseNode;
55
+    }
56
+
57
+    public void setCaseNode(String caseNode) {
58
+        this.caseNode = caseNode;
59
+    }
60
+
61
+    public Date getCaseNodeTime() {
62
+        return caseNodeTime;
63
+    }
64
+
65
+    public void setCaseNodeTime(Date caseNodeTime) {
66
+        this.caseNodeTime = caseNodeTime;
67
+    }
68
+
69
+    public String getNotes() {
70
+        return notes;
71
+    }
72
+
73
+    public void setNotes(String notes) {
74
+        this.notes = notes;
75
+    }
76
+}

+ 14
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseLogRecordMapper.java Voir le fichier

1
+package com.ruoyi.wisdomarbitrate.mapper;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4
+import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
5
+
6
+import java.util.List;
7
+
8
+public interface CaseLogRecordMapper {
9
+
10
+
11
+    List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord);
12
+
13
+    int insertCaseLogRecord(CaseLogRecord caseLogRecord);
14
+}

+ 17
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICaseLogRecordService.java Voir le fichier

1
+package com.ruoyi.wisdomarbitrate.service;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4
+import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
5
+
6
+import java.util.List;
7
+
8
+public interface ICaseLogRecordService {
9
+
10
+
11
+    List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord);
12
+
13
+
14
+
15
+
16
+
17
+}

+ 27
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseLogRecordServiceImpl.java Voir le fichier

1
+package com.ruoyi.wisdomarbitrate.service.impl;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
4
+import com.ruoyi.wisdomarbitrate.mapper.CaseLogRecordMapper;
5
+import com.ruoyi.wisdomarbitrate.service.ICaseLogRecordService;
6
+import org.springframework.beans.factory.annotation.Autowired;
7
+import org.springframework.stereotype.Service;
8
+
9
+import java.util.List;
10
+
11
+@Service
12
+public class CaseLogRecordServiceImpl  implements ICaseLogRecordService {
13
+    @Autowired
14
+    private CaseLogRecordMapper caseLogRecordMapper;
15
+
16
+
17
+    @Override
18
+    public List<CaseLogRecord> selectCaseLogRecordList(CaseLogRecord caseLogRecord) {
19
+        return caseLogRecordMapper.selectCaseLogRecordList(caseLogRecord);
20
+
21
+    }
22
+
23
+
24
+
25
+
26
+
27
+}

+ 9
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Voir le fichier

126
             <if test="onlineVideoPerson != null  and onlineVideoPerson != ''">online_video_person = #{onlineVideoPerson},</if>
126
             <if test="onlineVideoPerson != null  and onlineVideoPerson != ''">online_video_person = #{onlineVideoPerson},</if>
127
 
127
 
128
             <if test="contractNumber != null  and contractNumber != ''">contract_number = #{contractNumber},</if>
128
             <if test="contractNumber != null  and contractNumber != ''">contract_number = #{contractNumber},</if>
129
+
130
+            <if test="caseName != null  and caseName != ''">case_name = #{caseName},</if>
131
+            <if test="caseDescribe != null  and caseDescribe != ''">case_describe = #{caseDescribe},</if>
132
+            <if test="caseResult != null  and caseResult != ''">case_result = #{caseResult},</if>
133
+            <if test="caseStatus != null">case_status = #{caseStatus},</if>
134
+
129
             <if test="updateBy != null  and updateBy != ''">update_by = #{updateBy},</if>
135
             <if test="updateBy != null  and updateBy != ''">update_by = #{updateBy},</if>
130
             update_time = sysdate()
136
             update_time = sysdate()
131
         </set>
137
         </set>
139
             <if test="arbitratorId != null and arbitratorId != ''">arbitrator_id = #{arbitratorId},</if>
145
             <if test="arbitratorId != null and arbitratorId != ''">arbitrator_id = #{arbitratorId},</if>
140
             <if test="arbitratorName != null and arbitratorName != ''">arbitrator_name = #{arbitratorName},</if>
146
             <if test="arbitratorName != null and arbitratorName != ''">arbitrator_name = #{arbitratorName},</if>
141
             <if test="pendingAppointArbotrar != null ">pending_appoint_arbotrar = #{pendingAppointArbotrar},</if>
147
             <if test="pendingAppointArbotrar != null ">pending_appoint_arbotrar = #{pendingAppointArbotrar},</if>
148
+            <if test="caseName != null  and caseName != ''">case_name = #{caseName},</if>
149
+            <if test="caseDescribe != null  and caseDescribe != ''">case_describe = #{caseDescribe},</if>
150
+            <if test="caseResult != null  and caseResult != ''">case_result = #{caseResult},</if>
142
         </set>
151
         </set>
143
         where id = #{id}
152
         where id = #{id}
144
     </update>
153
     </update>

+ 52
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseLogRecordMapper.xml Voir le fichier

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.CaseLogRecordMapper">
6
+    <resultMap type="CaseLogRecord" id="CaseLogRecordResult">
7
+        <id     property="id"       column="id"      />
8
+        <result property="caseAppliId"       column="case_appli_id"      />
9
+        <result property="caseNode"     column="case_node"    />
10
+        <result property="caseNodeTime"     column="case_node_time"    />
11
+        <result property="notes"        column="notes"        />
12
+        <result property="caseNum"        column="case_num"        />
13
+
14
+    </resultMap>
15
+
16
+    <insert id="insertCaseLogRecord">
17
+        insert into case_log_record(case_appli_id, case_node,case_node_time,notes,create_by,create_time ) values(
18
+            #{caseAppliId},#{caseNode},sysdate(),#{notes},#{createBy},sysdate()
19
+        )
20
+    </insert>
21
+
22
+    <select id="selectCaseLogRecordList" parameterType="CaseLogRecord" resultMap="CaseLogRecordResult">
23
+        select cl.case_node ,cl.case_node_time ,cl.notes ,c.case_num ,cl.id ,cl.case_appli_id
24
+        from case_log_record cl left join case_application c on cl.case_appli_id  = c.id
25
+        <where>
26
+            <if test="caseNum != null and caseNum != ''">
27
+                AND c.case_num = #{caseNum}
28
+            </if>
29
+        </where>
30
+    </select>
31
+
32
+
33
+
34
+
35
+
36
+
37
+
38
+
39
+
40
+
41
+
42
+
43
+
44
+
45
+
46
+
47
+
48
+
49
+
50
+
51
+
52
+</mapper>