Parcourir la source

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into hjb

hejinbo il y a 2 ans
Parent
révision
8766ec4639

+ 12
- 1
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CaseApplicationController.java Voir le fichier

@@ -141,13 +141,24 @@ public class CaseApplicationController  extends BaseController {
141 141
      * 组庭审核
142 142
      */
143 143
     @PreAuthorize("@ss.hasPermi('caseApplication:pendTralCheck')")
144
-    @Log(title = "组庭", businessType = BusinessType.UPDATE)
144
+    @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
145 145
     @PostMapping("/pendTralCheck")
146 146
     public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication)
147 147
     {
148 148
         return toAjax(caseApplicationService.pendTralCheck(caseApplication));
149 149
     }
150 150
 
151
+    /**
152
+     * 组庭确认
153
+     */
154
+    @PreAuthorize("@ss.hasPermi('caseApplication:pendTralSure')")
155
+    @Log(title = "组庭确认", businessType = BusinessType.UPDATE)
156
+    @PostMapping("/pendTralSure")
157
+    public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication)
158
+    {
159
+        return toAjax(caseApplicationService.pendTralSure(caseApplication));
160
+    }
161
+
151 162
 
152 163
 
153 164
     /**

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

@@ -0,0 +1,32 @@
1
+package com.ruoyi.wisdomarbitrate.domain;
2
+
3
+import com.ruoyi.common.core.domain.BaseEntity;
4
+import lombok.Data;
5
+
6
+@Data
7
+public class ArbitrateRecord     extends BaseEntity {
8
+    private static final long serialVersionUID = 1L;
9
+
10
+    /** ID */
11
+    private Long id;
12
+    /** 案件申请id */
13
+    private Long caseAppliId;
14
+    /** 证据认定 */
15
+    private String evidenDetermi;
16
+    /** 认定事实 */
17
+    private String factDetermi;
18
+    /** 综上所述 */
19
+    private String caseSketch;
20
+    /** 本庭认为 */
21
+    private String arbitrateThink;
22
+    /** 裁决如下 */
23
+    private String rulingFollows;
24
+    /** 核验裁决书意见 */
25
+    private String verificaOpinion;
26
+    /** 审核裁决书意见 */
27
+    private String checkOpinion;
28
+
29
+
30
+
31
+
32
+}

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

@@ -2,6 +2,8 @@ package com.ruoyi.wisdomarbitrate.domain;
2 2
 
3 3
 import com.ruoyi.common.core.domain.BaseEntity;
4 4
 
5
+import java.util.List;
6
+
5 7
 public class Arbitrator    extends BaseEntity {
6 8
     private static final long serialVersionUID = 1L;
7 9
 
@@ -22,6 +24,16 @@ public class Arbitrator    extends BaseEntity {
22 24
     /** 联系电话 */
23 25
     private String telephone;
24 26
 
27
+    List<Long> idList;
28
+
29
+    public List<Long> getIdList() {
30
+        return idList;
31
+    }
32
+
33
+    public void setIdList(List<Long> idList) {
34
+        this.idList = idList;
35
+    }
36
+
25 37
     public String getArbitratorName() {
26 38
         return arbitratorName;
27 39
     }

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

@@ -54,8 +54,7 @@ public class CaseApplication  extends BaseEntity {
54 54
     private BigDecimal claimLiquidDamag;
55 55
     /** 仲裁应缴费用 */
56 56
     private BigDecimal feePayable;
57
-    /** 仲裁实缴费用 */
58
-    private BigDecimal paidExpenses;
57
+
59 58
     /** 开始在线视频时间 */
60 59
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
61 60
     private Date beginVideoDate;
@@ -80,6 +79,37 @@ public class CaseApplication  extends BaseEntity {
80 79
     private int objectionAddEviden;
81 80
     /** 是否需要开庭审理 */
82 81
     private int openCourtHear;
82
+    /** 案件状态名称 */
83
+    private String caseStatusName;
84
+
85
+    public String getCaseStatusName() {
86
+        return caseStatusName;
87
+    }
88
+
89
+    public void setCaseStatusName(String caseStatusName) {
90
+        this.caseStatusName = caseStatusName;
91
+    }
92
+
93
+    /** 申请人名称 */
94
+    private String applicantName;
95
+    /** 被申请人名称 */
96
+    private String respondentName;
97
+
98
+    public String getApplicantName() {
99
+        return applicantName;
100
+    }
101
+
102
+    public void setApplicantName(String applicantName) {
103
+        this.applicantName = applicantName;
104
+    }
105
+
106
+    public String getRespondentName() {
107
+        return respondentName;
108
+    }
109
+
110
+    public void setRespondentName(String respondentName) {
111
+        this.respondentName = respondentName;
112
+    }
83 113
 
84 114
     public int getObjectionAddEviden() {
85 115
         return objectionAddEviden;
@@ -169,6 +199,17 @@ public class CaseApplication  extends BaseEntity {
169 199
     /** 案件仲裁员 */
170 200
     private List<Arbitrator> arbitrators;
171 201
 
202
+    /** 仲裁记录 */
203
+    private ArbitrateRecord arbitrateRecord;
204
+
205
+    public ArbitrateRecord getArbitrateRecord() {
206
+        return arbitrateRecord;
207
+    }
208
+
209
+    public void setArbitrateRecord(ArbitrateRecord arbitrateRecord) {
210
+        this.arbitrateRecord = arbitrateRecord;
211
+    }
212
+
172 213
     public List<Arbitrator> getArbitrators() {
173 214
         return arbitrators;
174 215
     }
@@ -424,13 +465,7 @@ public class CaseApplication  extends BaseEntity {
424 465
         this.feePayable = feePayable;
425 466
     }
426 467
 
427
-    public BigDecimal getPaidExpenses() {
428
-        return paidExpenses;
429
-    }
430 468
 
431
-    public void setPaidExpenses(BigDecimal paidExpenses) {
432
-        this.paidExpenses = paidExpenses;
433
-    }
434 469
 
435 470
     public Date getBeginVideoDate() {
436 471
         return beginVideoDate;

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

@@ -0,0 +1,17 @@
1
+package com.ruoyi.wisdomarbitrate.mapper;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
4
+import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
5
+import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+
7
+import java.util.List;
8
+
9
+public interface ArbitrateRecordMapper {
10
+    int insertArbitrateRecord(ArbitrateRecord arbitrateRecord);
11
+
12
+    int updataArbitrateRecord(ArbitrateRecord arbitrateRecord);
13
+
14
+    ArbitrateRecord  selectArbitrateRecord(ArbitrateRecord arbitrateRecord);
15
+
16
+
17
+}

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

@@ -27,4 +27,6 @@ public interface ICaseApplicationService {
27 27
     int pendingAppointArbotrar(CaseApplication caseApplication);
28 28
 
29 29
     int pendTralCheck(CaseApplication caseApplication);
30
+
31
+    int pendTralSure(CaseApplication caseApplication);
30 32
 }

+ 92
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Voir le fichier

@@ -2,11 +2,16 @@ package com.ruoyi.wisdomarbitrate.service.impl;
2 2
 
3 3
 import com.ruoyi.common.constant.CaseApplicationConstants;
4 4
 import com.ruoyi.common.exception.ServiceException;
5
+import com.ruoyi.common.utils.DateUtils;
6
+import com.ruoyi.common.utils.SmsUtils;
5 7
 import com.ruoyi.common.utils.StringUtils;
6 8
 import com.ruoyi.common.utils.bean.BeanUtils;
9
+import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
7 10
 import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
8 11
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
9 12
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
13
+import com.ruoyi.wisdomarbitrate.mapper.ArbitrateRecordMapper;
14
+import com.ruoyi.wisdomarbitrate.mapper.ArbitratorMapper;
10 15
 import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
11 16
 import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
12 17
 import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
@@ -15,10 +20,8 @@ import org.springframework.stereotype.Service;
15 20
 import org.springframework.transaction.annotation.Transactional;
16 21
 
17 22
 import java.lang.reflect.Field;
18
-import java.util.ArrayList;
19
-import java.util.Comparator;
20
-import java.util.List;
21
-import java.util.TreeSet;
23
+import java.text.SimpleDateFormat;
24
+import java.util.*;
22 25
 import java.util.stream.Collectors;
23 26
 
24 27
 import static com.ruoyi.common.core.domain.AjaxResult.error;
@@ -33,6 +36,11 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
33 36
     @Autowired
34 37
     private CaseAffiliateMapper caseAffiliateMapper;
35 38
 
39
+    @Autowired
40
+    private ArbitratorMapper arbitratorMapper;
41
+    @Autowired
42
+    private ArbitrateRecordMapper arbitrateRecordMapper;
43
+
36 44
 
37 45
     @Override
38 46
     public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
@@ -98,9 +106,28 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
98 106
         CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
99 107
         CaseAffiliate caseAffiliate = new CaseAffiliate();
100 108
         caseAffiliate.setCaseAppliId(caseApplication.getId());
109
+
110
+        ArbitrateRecord arbitrateRecord = new ArbitrateRecord();
111
+        arbitrateRecord.setCaseAppliId(caseApplication.getId());
112
+        ArbitrateRecord arbitrateRecordselect = arbitrateRecordMapper.selectArbitrateRecord(arbitrateRecord);
113
+
101 114
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
102
-        if(caseApplicationselect!=null){
115
+        if(caseAffiliatListeselect!=null){
116
+            StringBuffer applicantName = new StringBuffer();
117
+            StringBuffer respondentName = new StringBuffer();
118
+            for (int i = 0; i < caseAffiliatListeselect.size(); i++){
119
+                CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(i);
120
+                int identityType = caseAffiliateselect.getIdentityType();
121
+                if(identityType==1){
122
+                    applicantName.append(caseAffiliateselect.getName()).append(",");;
123
+                }else if(identityType==2){
124
+                    respondentName.append(caseAffiliateselect.getName()).append(",");;
125
+                }
126
+            }
127
+            caseApplicationselect.setApplicantName(applicantName.toString());
128
+            caseApplicationselect.setRespondentName(respondentName.toString());
103 129
             caseApplicationselect.setCaseAffiliates(caseAffiliatListeselect);
130
+            caseApplicationselect.setArbitrateRecord(arbitrateRecordselect);
104 131
         }
105 132
         return caseApplicationselect;
106 133
     }
@@ -231,6 +258,66 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
231 258
         return rows;
232 259
     }
233 260
 
261
+    @Override
262
+    @Transactional
263
+    public int pendTralSure(CaseApplication caseApplication) {
264
+        caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
265
+        int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
266
+
267
+        //发送短信通知
268
+        SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
269
+        request.setTemplateId("1931000");
270
+
271
+        CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
272
+        String caseNum = caseApplicationselect.getCaseNum();
273
+        Date hearDate = caseApplicationselect.getHearDate();
274
+        SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
275
+        String hearDatestr = dateFormat.format(hearDate);
276
+
277
+        String arbitratorId = caseApplicationselect.getArbitratorId();
278
+        List<Arbitrator> arbitratorList = new ArrayList<>();
279
+        if(StringUtils.isNotEmpty(arbitratorId)){
280
+            String[] idStrList  = arbitratorId.split(",");
281
+            List<Long> idList = new ArrayList<>();
282
+            for(int i = 0;i < idStrList.length;i ++ ){
283
+                idList.add(Long.parseLong(idStrList[i]));
284
+            }
285
+            Arbitrator arbitrator = new Arbitrator();
286
+            arbitrator.setIdList(idList);
287
+            arbitratorList = arbitratorMapper.selectArbitratorList(arbitrator);
288
+            if(arbitratorList!=null) {
289
+                for (int i = 0; i < arbitratorList.size(); i++) {
290
+                    Arbitrator arbitratorselect = arbitratorList.get(i);
291
+                    //给仲裁员发送短信通知
292
+                    request.setPhone(arbitratorselect.getTelephone());
293
+                    // 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
294
+                    String name = arbitratorselect.getArbitratorName();
295
+                    request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
296
+                    SmsUtils.sendSms(request);
297
+                }
298
+            }
299
+        }
300
+
301
+        CaseAffiliate caseAffiliate = new CaseAffiliate();
302
+        caseAffiliate.setCaseAppliId(caseApplication.getId());
303
+        List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
304
+        if(caseAffiliatListeselect!=null) {
305
+            for (int j = 0; j < caseAffiliatListeselect.size(); j++) {
306
+                CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(j);
307
+                int identityType = caseAffiliateselect.getIdentityType();
308
+                //给申请人、被申请人发送短信通知
309
+                request.setPhone(caseAffiliateselect.getContactTelphone());
310
+                // 1931000 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
311
+                String name = caseAffiliateselect.getName();
312
+                request.setTemplateParamSet(new String[]{name, caseNum, hearDatestr});
313
+                SmsUtils.sendSms(request);
314
+            }
315
+        }
316
+
317
+        return rows;
318
+
319
+    }
320
+
234 321
     @Override
235 322
     @Transactional
236 323
     public int pendingAppointArbotrar(CaseApplication caseApplication) {

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

@@ -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>

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

@@ -26,6 +26,14 @@
26 26
             <if test="arbitratorName != null and arbitratorName != ''">
27 27
                 AND a.arbitrator_name like concat('%', #{arbitratorName}, '%')
28 28
             </if>
29
+
30
+            <if test="idList != null and idList.size() > 0">
31
+                AND a.id in
32
+                <foreach item="id" collection="idList" open="(" separator="," close=")">
33
+                    #{id}
34
+                </foreach>
35
+            </if>
36
+
29 37
         </where>
30 38
     </select>
31 39
 

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

@@ -20,11 +20,10 @@
20 20
         <result property="claimLiquidDamag"    column="claim_liquid_damag"   />
21 21
 
22 22
         <result property="feePayable"          column="fee_payable"          />
23
-        <result property="paidExpenses"       column="paid_expenses"       />
24 23
         <result property="beginVideoDate"     column="begin_video_date"     />
25 24
         <result property="onlineVideoPerson"       column="online_video_person"       />
26 25
         <result property="contractNumber"      column="contract_number"     />
27
-
26
+        <result property="caseStatusName"      column="caseStatusName"     />
28 27
         <result property="createBy"     column="create_by"    />
29 28
         <result property="createTime"   column="create_time"  />
30 29
         <result property="updateBy"     column="update_by"    />
@@ -34,9 +33,18 @@
34 33
 
35 34
 
36 35
     <select id="selectCaseApplicationList" parameterType="CaseApplication" resultMap="CaseApplicationResult">
37
-        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,c.hear_date ,c.arbitrat_claims ,
36
+        select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,
37
+        CASE c.case_status when 0 then '立案申请' when 1 then '待立案审查' when 2 then '待缴费'
38
+                            when 3 then '待缴费确认' when 4 then '待案件质证' when 5 then '待组庭审核'
39
+                            when 6 then '待组庭确定' when 7 then '待审核仲裁方式' when 8 then '待开庭审理'
40
+                            when 9 then '待书面审理' when 10 then '待生成仲裁文书' when 11 then '待核验仲裁文书'
41
+                            when 12 then '待审核仲裁文书' when 13 then '待仲裁文书签名' when 14 then '待仲裁文书用印'
42
+                            when 15 then '待仲裁文书送达' when 16 then '待案件归档'
43
+                            ELSE '无案件状态'
44
+                            END caseStatusName,
45
+        c.hear_date ,c.arbitrat_claims ,
38 46
         c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
39
-        c.paid_expenses ,c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
47
+        c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
40 48
         c.update_by ,c.update_time
41 49
         from case_application c
42 50
         <where>
@@ -75,7 +83,6 @@
75 83
         <if test="claimInterestOwed != null ">claim_interest_owed,</if>
76 84
         <if test="claimLiquidDamag != null ">claim_liquid_damag,</if>
77 85
         <if test="feePayable != null ">fee_payable,</if>
78
-        <if test="paidExpenses != null ">paid_expenses,</if>
79 86
         <if test="beginVideoDate != null ">begin_video_date,</if>
80 87
         <if test="onlineVideoPerson != null  and onlineVideoPerson != ''">online_video_person,</if>
81 88
 
@@ -121,7 +128,6 @@
121 128
             <if test="claimInterestOwed != null ">claim_interest_owed = #{claimInterestOwed},</if>
122 129
             <if test="claimLiquidDamag != null ">claim_liquid_damag = #{claimLiquidDamag},</if>
123 130
             <if test="feePayable != null ">fee_payable = #{feePayable},</if>
124
-            <if test="paidExpenses != null ">paid_expenses = #{paidExpenses},</if>
125 131
             <if test="beginVideoDate != null ">begin_video_date = #{beginVideoDate},</if>
126 132
             <if test="onlineVideoPerson != null  and onlineVideoPerson != ''">online_video_person = #{onlineVideoPerson},</if>
127 133
 
@@ -152,6 +158,7 @@
152 158
             <if test="isAgreePendTral != null">is_agree_pend_tral = #{isAgreePendTral},</if>
153 159
             <if test="objectionAddEviden != null">objection_add_eviden = #{objectionAddEviden},</if>
154 160
             <if test="openCourtHear != null">open_court_hear = #{openCourtHear},</if>
161
+            <if test="hearDate != null">hear_date = #{hearDate},</if>
155 162
         </set>
156 163
         where id = #{id}
157 164
     </update>
@@ -163,7 +170,7 @@
163 170
     <select id="selectCaseApplication" parameterType="CaseApplication" resultMap="CaseApplicationResult">
164 171
         select c.id ,c.case_num ,c.case_subject_amount ,c.register_date ,c.arbitrat_method ,c.case_status ,c.hear_date ,c.arbitrat_claims ,
165 172
         c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
166
-        c.paid_expenses ,c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
173
+        c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,
167 174
         c.update_by ,c.update_time
168 175
         from case_application c
169 176
         <where>