18792927508 2 anos atrás
pai
commit
b3b6d25d91
20 arquivos alterados com 319 adições e 68 exclusões
  1. 11
    0
      ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CasePaymentController.java
  2. 14
    0
      ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java
  3. 2
    10
      ruoyi-common/src/main/java/com/ruoyi/common/utils/WxAppletNotifyUtils.java
  4. 2
    0
      ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java
  5. 24
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java
  6. 69
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java
  7. 1
    1
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAttach.java
  8. 4
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CasePaymentRecord.java
  9. 28
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CaseConfirmPayDTO.java
  10. 12
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CasePayDTO.java
  11. 14
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java
  12. 2
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CasePaymentRecordMapper.java
  13. 8
    0
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICasePaymentService.java
  14. 67
    38
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java
  15. 33
    7
      ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CasePaymentServiceImpl.java
  16. 6
    2
      ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml
  17. 11
    6
      ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml
  18. 8
    4
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml
  19. 1
    0
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml
  20. 2
    0
      ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CasePaymentRecordMapper.xml

+ 11
- 0
ruoyi-admin/src/main/java/com/ruoyi/web/controller/wisdomarbitrate/CasePaymentController.java Ver arquivo

@@ -2,6 +2,7 @@ package com.ruoyi.web.controller.wisdomarbitrate;
2 2
 
3 3
 import com.ruoyi.common.core.domain.AjaxResult;
4 4
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
5 6
 import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
6 7
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7 8
 import org.springframework.beans.factory.annotation.Autowired;
@@ -30,6 +31,16 @@ public class CasePaymentController {
30 31
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
31 32
         return paymentService.casePay(casePayDTO);
32 33
     }
34
+    /**
35
+     * 确认缴费
36
+     * @param payDTO 缴费传入参数
37
+     * @return 统一响应结果
38
+     */
39
+//    @PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
40
+    @PostMapping("/confirmPay")
41
+    public AjaxResult confirmPay(@Validated @RequestBody CaseConfirmPayDTO payDTO) {
42
+        return paymentService.confirmPay(payDTO);
43
+    }
33 44
 
34 45
     /**
35 46
      * 缴费确认

+ 14
- 0
ruoyi-common/src/main/java/com/ruoyi/common/core/domain/entity/SysUser.java Ver arquivo

@@ -33,9 +33,14 @@ public class SysUser extends BaseEntity
33 33
     @Excel(name = "登录名称")
34 34
     private String userName;
35 35
 
36
+
37
+
36 38
     /** 用户昵称 */
37 39
     @Excel(name = "用户名称")
38 40
     private String nickName;
41
+    /** 用户身份证号 */
42
+    @Excel(name = "身份证号")
43
+    private String idCard;
39 44
 
40 45
     /** 用户邮箱 */
41 46
     @Excel(name = "用户邮箱")
@@ -297,12 +302,21 @@ public class SysUser extends BaseEntity
297 302
         this.roleId = roleId;
298 303
     }
299 304
 
305
+    public String getIdCard() {
306
+        return idCard;
307
+    }
308
+
309
+    public void setIdCard(String idCard) {
310
+        this.idCard = idCard;
311
+    }
312
+
300 313
     @Override
301 314
     public String toString() {
302 315
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
303 316
             .append("userId", getUserId())
304 317
             .append("deptId", getDeptId())
305 318
             .append("userName", getUserName())
319
+            .append("idCard", getIdCard())
306 320
             .append("nickName", getNickName())
307 321
             .append("email", getEmail())
308 322
             .append("phonenumber", getPhonenumber())

+ 2
- 10
ruoyi-common/src/main/java/com/ruoyi/common/utils/WxAppletNotifyUtils.java Ver arquivo

@@ -2,22 +2,14 @@ package com.ruoyi.common.utils;
2 2
 
3 3
 /**
4 4
  * @author wangqiong
5
- * @description
5
+ * @description 获取微信小程序url scheme
6 6
  * @date 2023-10-13 10:16
7 7
  */
8
-import cn.hutool.core.util.StrUtil;
8
+
9 9
 import cn.hutool.http.HttpUtil;
10 10
 import cn.hutool.json.JSONObject;
11 11
 import cn.hutool.json.JSONUtil;
12
-import lombok.RequiredArgsConstructor;
13
-import org.springframework.stereotype.Component;
14
-
15 12
 
16
-/**
17
- * @Author: Tenk
18
- */
19
-@RequiredArgsConstructor
20
-@Component
21 13
 public class WxAppletNotifyUtils {
22 14
 
23 15
     /**

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java Ver arquivo

@@ -115,4 +115,6 @@ public interface SysDeptMapper
115 115
      * @return 结果
116 116
      */
117 117
     public int deleteDeptById(Long deptId);
118
+
119
+    List<Long> selectUserDeptListByRoleId(@Param("roleId")Long roleId);
118 120
 }

+ 24
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java Ver arquivo

@@ -15,6 +15,14 @@ public class CaseAffiliate   extends BaseEntity {
15 15
     /** 姓名 */
16 16
     @Excel(name = "姓名")
17 17
     private String name;
18
+    /**
19
+     * 申请机构id
20
+     */
21
+    private String applicationOrganId;
22
+    /**
23
+     * 申请机构名称
24
+     */
25
+    private String applicationOrganName;
18 26
     /** 身份证号 */
19 27
     @Excel(name = "身份证号")
20 28
     private String identityNum;
@@ -49,6 +57,22 @@ public class CaseAffiliate   extends BaseEntity {
49 57
     /** 快递单号 */
50 58
     private String trackNum;
51 59
 
60
+    public String getApplicationOrganId() {
61
+        return applicationOrganId;
62
+    }
63
+
64
+    public void setApplicationOrganId(String applicationOrganId) {
65
+        this.applicationOrganId = applicationOrganId;
66
+    }
67
+
68
+    public String getApplicationOrganName() {
69
+        return applicationOrganName;
70
+    }
71
+
72
+    public void setApplicationOrganName(String applicationOrganName) {
73
+        this.applicationOrganName = applicationOrganName;
74
+    }
75
+
52 76
     public String getSendEmail() {
53 77
         return sendEmail;
54 78
     }

+ 69
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Ver arquivo

@@ -124,9 +124,45 @@ public class CaseApplication  extends BaseEntity {
124 124
     private Integer paymentStatus;
125 125
     /** 支付状态描述 */
126 126
     private String paymentStatusName;
127
+    /**
128
+     * 支付方式code,0线上支付,1线下支付
129
+     */
130
+    private Integer payTypeCode;
131
+    /**
132
+     * 支付方式name,0线上支付,1线下支付
133
+     */
134
+    private String payTypeName;
135
+    /**
136
+     * 缴费凭证
137
+     */
138
+    private List<CaseAttach> payOrderList;
127 139
     // 导入校验失败信息
128 140
     private StringBuilder errorMsg;
129 141
 
142
+    public Integer getPayTypeCode() {
143
+        return payTypeCode;
144
+    }
145
+
146
+    public void setPayTypeCode(Integer payTypeCode) {
147
+        this.payTypeCode = payTypeCode;
148
+    }
149
+
150
+    public String getPayTypeName() {
151
+        return payTypeName;
152
+    }
153
+
154
+    public void setPayTypeName(String payTypeName) {
155
+        this.payTypeName = payTypeName;
156
+    }
157
+
158
+    public List<CaseAttach> getPayOrderList() {
159
+        return payOrderList;
160
+    }
161
+
162
+    public void setPayOrderList(List<CaseAttach> payOrderList) {
163
+        this.payOrderList = payOrderList;
164
+    }
165
+
130 166
     public StringBuilder getErrorMsg() {
131 167
         return errorMsg;
132 168
     }
@@ -200,6 +236,39 @@ public class CaseApplication  extends BaseEntity {
200 236
     private String applicantName;
201 237
     /** 被申请人名称 */
202 238
     private String respondentName;
239
+    /**
240
+     * 用户身份证号
241
+     */
242
+    private String idCard;
243
+    /**
244
+     * 用户id
245
+     */
246
+    private String userId;
247
+    private List<Long> deptIds;
248
+
249
+    public List<Long> getDeptIds() {
250
+        return deptIds;
251
+    }
252
+
253
+    public void setDeptIds(List<Long> deptIds) {
254
+        this.deptIds = deptIds;
255
+    }
256
+
257
+    public String getUserId() {
258
+        return userId;
259
+    }
260
+
261
+    public void setUserId(String userId) {
262
+        this.userId = userId;
263
+    }
264
+
265
+    public String getIdCard() {
266
+        return idCard;
267
+    }
268
+
269
+    public void setIdCard(String idCard) {
270
+        this.idCard = idCard;
271
+    }
203 272
 
204 273
     public String getApplicantName() {
205 274
         return applicantName;

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAttach.java Ver arquivo

@@ -27,7 +27,7 @@ public class  CaseAttach {
27 27
      */
28 28
     private String annexPath;
29 29
     /**
30
-     * 附件类型,立案申请书(1)、证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)
30
+     * 附件类型,立案申请书(1)、申请人证据材料(2)、仲裁文书(3)、案件视频(4)、身份证件(5)、被申请人证据材料 (6)、庭审笔录(7)、缴费凭证(8)'
31 31
      */
32 32
     private Integer annexType;
33 33
     /**

+ 4
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CasePaymentRecord.java Ver arquivo

@@ -38,4 +38,8 @@ public class CasePaymentRecord {
38 38
     /** 更新时间 */
39 39
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
40 40
     private Date updateTime;
41
+    /**
42
+     * 支付方式 0线上支付,1线下支付
43
+     */
44
+    private Integer payType;
41 45
 }

+ 28
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CaseConfirmPayDTO.java Ver arquivo

@@ -0,0 +1,28 @@
1
+package com.ruoyi.wisdomarbitrate.domain.dto;
2
+
3
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
4
+import lombok.Data;
5
+
6
+import javax.validation.constraints.NotNull;
7
+import java.util.List;
8
+
9
+/**
10
+ * 案件确认缴费传入对象
11
+ */
12
+@Data
13
+public class CaseConfirmPayDTO {
14
+    /**
15
+     * 案件id
16
+     */
17
+    @NotNull(message = "案件id不能为空")
18
+    private Long caseId;
19
+
20
+    /**
21
+     * 支付方式 0线上支付,1线下支付
22
+     */
23
+    private Integer payType;
24
+    /**
25
+     * 缴费凭证
26
+     */
27
+    private List<CaseAttach> payOrderList;
28
+}

+ 12
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/dto/CasePayDTO.java Ver arquivo

@@ -1,6 +1,10 @@
1 1
 package com.ruoyi.wisdomarbitrate.domain.dto;
2 2
 
3
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
3 4
 import lombok.Data;
5
+
6
+import java.util.List;
7
+
4 8
 /**
5 9
  * 案件缴费传入对象
6 10
  */
@@ -23,4 +27,12 @@ public class CasePayDTO {
23 27
      * 支付方式 wxpay(微信)  alipay(支付宝)
24 28
      */
25 29
     private String platform;
30
+    /**
31
+     * 支付方式 0线上支付,1线下支付
32
+     */
33
+    private Integer payType;
34
+    /**
35
+     * 缴费凭证
36
+     */
37
+    private List<CaseAttach> payOrderList;
26 38
 }

+ 14
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CaseApplicationMapper.java Ver arquivo

@@ -3,6 +3,7 @@ package com.ruoyi.wisdomarbitrate.mapper;
3 3
 import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4 4
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
5 5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
6 7
 import org.apache.ibatis.annotations.Param;
7 8
 
8 9
 import java.util.List;
@@ -12,6 +13,13 @@ public interface CaseApplicationMapper {
12 13
 
13 14
     int selectCaseApplicationCount(CaseApplication caseApplication);
14 15
 
16
+    /**
17
+     * 查询超级管理员案件
18
+     * @param caseApplication
19
+     * @return
20
+     */
21
+    List<CaseApplication> selectAdminCaseApplicationList(CaseApplication caseApplication);
22
+
15 23
     int insertCaseApplication(CaseApplication caseApplication);
16 24
 
17 25
 
@@ -39,4 +47,10 @@ public interface CaseApplicationMapper {
39 47
      * @return
40 48
      */
41 49
     String selectArbitratorList(@Param("id") String id);
50
+
51
+    /**
52
+     * 修改支付方式
53
+     * @param payDTO
54
+     */
55
+    void updatePayType(CaseConfirmPayDTO payDTO);
42 56
 }

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/mapper/CasePaymentRecordMapper.java Ver arquivo

@@ -8,4 +8,6 @@ public interface CasePaymentRecordMapper {
8 8
     CasePaymentRecord queryRecord(String orderNumber);
9 9
 
10 10
     void update(CasePaymentRecord casePaymentRecord);
11
+
12
+    CasePaymentRecord selectRecordByCaseId(Long id);
11 13
 }

+ 8
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/ICasePaymentService.java Ver arquivo

@@ -3,6 +3,7 @@ package com.ruoyi.wisdomarbitrate.service;
3 3
 import com.ruoyi.common.core.domain.AjaxResult;
4 4
 import com.ruoyi.dto.PayRequest;
5 5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
6 7
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7 8
 
8 9
 public interface ICasePaymentService {
@@ -12,4 +13,11 @@ public interface ICasePaymentService {
12 13
     AjaxResult casePay(CasePayDTO casePayDTO);
13 14
 
14 15
     AjaxResult confirmPayment(CaseApplication caseApplication);
16
+
17
+    /**
18
+     * 确认缴费
19
+     * @param payDTO
20
+     * @return
21
+     */
22
+    AjaxResult confirmPay(CaseConfirmPayDTO payDTO);
15 23
 }

+ 67
- 38
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Ver arquivo

@@ -14,10 +14,9 @@ import com.google.gson.JsonObject;
14 14
 import com.ruoyi.common.annotation.DataScope;
15 15
 import com.ruoyi.common.constant.CaseApplicationConstants;
16 16
 import com.ruoyi.common.core.domain.AjaxResult;
17
-import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
18
-import com.ruoyi.common.core.domain.entity.SysDept;
17
+import com.ruoyi.common.core.domain.entity.*;
19 18
 
20
-import com.ruoyi.common.core.domain.entity.SysUser;
19
+import com.ruoyi.common.core.domain.model.LoginUser;
21 20
 import com.ruoyi.common.exception.EsignDemoException;
22 21
 import com.ruoyi.common.exception.ServiceException;
23 22
 import com.ruoyi.common.utils.WordUtil;
@@ -57,6 +56,7 @@ import java.util.*;
57 56
 import java.util.regex.Pattern;
58 57
 import java.util.stream.Collectors;
59 58
 
59
+import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
60 60
 import static com.ruoyi.common.utils.SecurityUtils.getUsername;
61 61
 
62 62
 
@@ -69,7 +69,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
69 69
     private CaseAffiliateMapper caseAffiliateMapper;
70 70
 
71 71
     @Autowired
72
-    private ArbitratorMapper arbitratorMapper;
72
+    private CasePaymentRecordMapper casePaymentRecordMapper;
73 73
     @Autowired
74 74
     private ArbitrateRecordMapper arbitrateRecordMapper;
75 75
     @Autowired
@@ -88,9 +88,45 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
88 88
     private static final Pattern TELEPHONE_REGX =  Pattern.compile("^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$");
89 89
 
90 90
 
91
-
91
+    /**
92
+     * 数据权限:1.每个人不同的角色,而每个角色可以操作不同的案件状态
93
+     * 2.申请人:金融机构下,可以看到改机构的所有的案件
94
+     * 3.被申请人:可以看到自己相关的案件(案件有被申请人相关的信息)
95
+     * 4.仲裁员:案件选定了某个仲裁员后,该仲裁员就可以查看该案件
96
+     * 5.仲裁委(部门长):可以查看所有的案件
97
+     * 6.法律顾问秘书:可以属于多个机构,可以查看相关机构的所有案件
98
+     * 7.超级管理员:可以查看所有的信息和数据
99
+     * @param caseApplication
100
+     * @return
101
+     */
92 102
     @Override
93 103
     public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
104
+        // 获取登录用户
105
+        LoginUser loginUser = getLoginUser();
106
+        SysUser user = loginUser.getUser();
107
+        Long userId = user.getUserId();
108
+        Long deptId = user.getDeptId();
109
+        List<SysRole> roles = user.getRoles();
110
+        // 查询登录人身份证号
111
+        SysUser sysUser = sysUserMapper.selectUserById(userId);
112
+        caseApplication.setIdCard(sysUser.getIdCard());
113
+        caseApplication.setUserId(String.valueOf(userId));
114
+        for (SysRole role : roles) {
115
+            // 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
116
+            if(role.getRoleName().equals("超级管理员")
117
+            ||role.getRoleName().equals("仲裁委")
118
+            ||role.getRoleName().equals("部门长")){
119
+                return caseApplicationMapper.selectAdminCaseApplicationList(caseApplication);
120
+            }
121
+            if(role.getRoleName().equals("法律顾问")){
122
+                // 查询角色有关的用户部门
123
+                List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
124
+                caseApplication.setDeptIds(deptIds);
125
+            }
126
+        }
127
+
128
+
129
+        // 根据条件查询申请人,被申请人,仲裁员,法律顾问案件
94 130
         return caseApplicationMapper.selectCaseApplicationList(caseApplication);
95 131
 
96 132
     }
@@ -108,6 +144,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
108 144
         // 获取自动编码
109 145
         String caseNum = generateCaseNum();
110 146
         caseApplication.setCaseNum(caseNum);
147
+        caseApplication.setCreateBy(getUsername());
111 148
 
112 149
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
113 150
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
@@ -125,7 +162,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
125 162
                 if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
126 163
                     // 将组织机构id设为申请人名称
127 164
                     if (deptMap.containsKey(caseAffiliate.getName())) {
128
-                        caseAffiliate.setName(String.valueOf(deptMap.get(caseAffiliate.getName())));
165
+                        caseAffiliate.setApplicationOrganId(String.valueOf(deptMap.get(caseAffiliate.getName())));
166
+                        caseAffiliate.setApplicationOrganName(caseAffiliate.getName());
129 167
                     } else {
130 168
                         // 如果不存在则新增
131 169
                         SysDept dept = new SysDept();
@@ -139,7 +177,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
139 177
                         dept.setUpdateBy(getUsername());
140 178
                         sysDeptMapper.insertDept(dept);
141 179
                         deptMap.put(dept.getDeptName(), dept.getDeptId());
142
-                        caseAffiliate.setName(String.valueOf(dept.getDeptId()));
180
+                        caseAffiliate.setApplicationOrganId(String.valueOf(dept.getDeptId()));
181
+                        caseAffiliate.setApplicationOrganName(caseAffiliate.getName());
143 182
 
144 183
                     }
145 184
                 }
@@ -193,6 +232,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
193 232
         BigDecimal feeRate = new BigDecimal(0.01);
194 233
         BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
195 234
         caseApplication.setFeePayable(feePayable);
235
+        caseApplication.setUpdateBy(getUsername());
196 236
 
197 237
         int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
198 238
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
@@ -208,7 +248,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
208 248
                 if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
209 249
                     // 将组织机构id设为申请人名称
210 250
                     if (deptMap.containsKey(caseAffiliate.getName())) {
211
-                        caseAffiliate.setName(String.valueOf(deptMap.get(caseAffiliate.getName())));
251
+                        caseAffiliate.setApplicationOrganName(caseAffiliate.getName());
252
+                        caseAffiliate.setApplicationOrganId(String.valueOf(deptMap.get(caseAffiliate.getName())));
212 253
                     } else {
213 254
                         // 如果不存在则新增
214 255
                         SysDept dept = new SysDept();
@@ -222,7 +263,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
222 263
                         dept.setUpdateBy(getUsername());
223 264
                         sysDeptMapper.insertDept(dept);
224 265
                         deptMap.put(dept.getDeptName(), dept.getDeptId());
225
-                        caseAffiliate.setName(String.valueOf(dept.getDeptId()));
266
+
267
+                        caseAffiliate.setApplicationOrganName(caseAffiliate.getName());
268
+                        caseAffiliate.setApplicationOrganId(String.valueOf(dept.getDeptId()));
226 269
 
227 270
                     }
228 271
                 }
@@ -409,7 +452,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
409 452
                             CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
410 453
                             // 新增立案信息
411 454
                             caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
412
-
455
+                            caseApplicationItera.setCreateBy(getUsername());
413 456
                             int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
414 457
                             List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
415 458
                             if(caseAffiliates!=null&&caseAffiliates.size()>0){
@@ -888,29 +931,22 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
888 931
         caseAffiliate.setCaseAppliId(caseApplication.getId());
889 932
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
890 933
         if(caseAffiliatListeselect!=null){
891
-            // 查询组织机构
892
-            List<SysDept> sysDepts = sysDeptMapper.selectDeptList(new SysDept());
893
-            Map<String,String> deptMap=new HashMap<>();
894
-            if(CollectionUtil.isNotEmpty(sysDepts)){
895
-                for (SysDept sysDept : sysDepts) {
896
-                    deptMap.put(String.valueOf(sysDept.getDeptId()),sysDept.getDeptName());
897
-                }
898
-            }
899
-            StringBuffer applicantName = new StringBuffer();
934
+
900 935
             for (int i = 0; i < caseAffiliatListeselect.size(); i++){
901 936
                 CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(i);
902 937
                 int identityType = caseAffiliateselect.getIdentityType();
903 938
                 if(identityType==1){
904
-                    if(StrUtil.isNotEmpty(caseAffiliateselect.getName())&&deptMap.containsKey(caseAffiliateselect.getName())){
905
-                        caseAffiliateselect.setName(deptMap.get(caseAffiliateselect.getName()));
906
-                    }
907
-                    applicantName.append(caseAffiliateselect.getName()).append(",");;
939
+
940
+                    caseApplicationselect.setApplicantName(caseAffiliateselect.getApplicationOrganName());
908 941
                 }
909 942
             }
910
-            caseApplicationselect.setApplicantName(applicantName.toString());
911
-
912 943
 
913 944
         }
945
+        caseApplication.setAnnexType(8);
946
+        // 查询缴费凭证
947
+        List<CaseAttach> payOrderList = caseAttachMapper.queryCaseAttachList(caseApplication);
948
+        caseApplicationselect.setPayOrderList(payOrderList);
949
+
914 950
         return caseApplicationselect;
915 951
     }
916 952
 
@@ -1216,21 +1252,12 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1216 1252
         caseAffiliate.setCaseAppliId(caseApplication.getId());
1217 1253
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
1218 1254
         if(caseAffiliatListeselect!=null) {
1219
-            // 查询组织机构
1220
-            List<SysDept> sysDepts = sysDeptMapper.selectDeptList(new SysDept());
1221
-            Map<String,String> deptMap=new HashMap<>();
1222
-            if(CollectionUtil.isNotEmpty(sysDepts)){
1223
-                for (SysDept sysDept : sysDepts) {
1224
-                    deptMap.put(String.valueOf(sysDept.getDeptId()),sysDept.getDeptName());
1225
-                }
1226
-            }
1255
+
1227 1256
             for (int j = 0; j < caseAffiliatListeselect.size(); j++) {
1228 1257
                 CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(j);
1229 1258
                 int identityType = caseAffiliateselect.getIdentityType();
1230 1259
                 if(identityType==1){
1231
-                    if(StrUtil.isNotEmpty(caseAffiliateselect.getName())&&deptMap.containsKey(caseAffiliateselect.getName())){
1232
-                        caseAffiliateselect.setName(deptMap.get(caseAffiliateselect.getName()));
1233
-                    }
1260
+                  caseAffiliateselect.setName(caseAffiliateselect.getApplicationOrganName());
1234 1261
 
1235 1262
                 }
1236 1263
                 //给申请人、被申请人发送短信通知
@@ -1312,7 +1339,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1312 1339
 
1313 1340
             // 将组织机构id设为申请人名称
1314 1341
             if(deptMap.containsKey(caseApplication.getName())){
1315
-                caseAffiliate.setName(String.valueOf(deptMap.get(caseApplication.getName())));
1342
+                caseAffiliate.setApplicationOrganId(String.valueOf(deptMap.get(caseApplication.getName())));
1343
+                caseAffiliate.setApplicationOrganName(caseApplication.getName());
1316 1344
             }else {
1317 1345
                // 如果不存在则新增
1318 1346
                 SysDept dept = new SysDept();
@@ -1326,7 +1354,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1326 1354
                 dept.setUpdateBy(getUsername());
1327 1355
                 sysDeptMapper.insertDept(dept);
1328 1356
                 deptMap.put(dept.getDeptName(),dept.getDeptId());
1329
-                caseAffiliate.setName(String.valueOf(dept.getDeptId()));
1357
+                caseAffiliate.setApplicationOrganId(String.valueOf(dept.getDeptId()));
1358
+                caseAffiliate.setApplicationOrganName(caseApplication.getName());
1330 1359
 
1331 1360
             }
1332 1361
 

+ 33
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CasePaymentServiceImpl.java Ver arquivo

@@ -1,9 +1,15 @@
1 1
 package com.ruoyi.wisdomarbitrate.service.impl;
2 2
 
3 3
 
4
+import cn.hutool.core.collection.CollectionUtil;
4 5
 import com.ruoyi.ElegentPay;
5 6
 import com.ruoyi.common.constant.CaseApplicationConstants;
6 7
 import com.ruoyi.common.core.domain.AjaxResult;
8
+import com.ruoyi.common.core.domain.model.LoginUser;
9
+import com.ruoyi.common.utils.SecurityUtils;
10
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
11
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
12
+import com.ruoyi.wisdomarbitrate.mapper.CaseAttachMapper;
7 13
 import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
8 14
 import com.ruoyi.common.utils.SmsUtils;
9 15
 import com.ruoyi.dto.PayRequest;
@@ -29,6 +35,8 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
29 35
     private final CaseApplicationMapper caseApplicationMapper;
30 36
     private final CasePaymentRecordMapper casePaymentRecordMapper;
31 37
     private final CaseAffiliateMapper caseAffiliateMapper;
38
+    @Autowired
39
+    private  CaseAttachMapper caseAttachMapper;
32 40
 
33 41
     @Autowired
34 42
     public CasePaymentServiceImpl(ElegentPay elegentPay
@@ -78,13 +86,7 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
78 86
         casePaymentRecord.setPaymentTime(new Date());
79 87
         casePaymentRecord.setUpdateTime(new Date());
80 88
         casePaymentRecordMapper.update(casePaymentRecord);
81
-        //根据案件id查询案件信息
82
-        CaseApplication caseApplication = new CaseApplication();
83
-        caseApplication.setId(caseId);
84
-        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
85
-        caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
86
-        //修改案件状态
87
-        caseApplicationMapper.submitCaseApplication(caseApplication1);
89
+
88 90
         return AjaxResult.success("支付成功");
89 91
     }
90 92
 
@@ -135,4 +137,28 @@ public class CasePaymentServiceImpl implements ICasePaymentService {
135 137
         }
136 138
         return AjaxResult.error("暂无需要确认的缴费清单");
137 139
     }
140
+    @Transactional
141
+    @Override
142
+    public AjaxResult confirmPay(CaseConfirmPayDTO payDTO) {
143
+        if(payDTO.getCaseId()!=null&&payDTO.getPayType()!=null){
144
+            // 修改支付方式
145
+
146
+            caseApplicationMapper.updatePayType(payDTO);
147
+        }
148
+        if(CollectionUtil.isNotEmpty(payDTO.getPayOrderList())){
149
+            for (CaseAttach caseAttach : payDTO.getPayOrderList()) {
150
+                caseAttach.setCaseAppliId(payDTO.getCaseId());
151
+                caseAttachMapper.updateCaseAttach(caseAttach);
152
+            }
153
+        }
154
+        // 修改节点状态
155
+        //根据案件id查询案件信息
156
+        CaseApplication caseApplication = new CaseApplication();
157
+        caseApplication.setId(payDTO.getCaseId());
158
+        CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
159
+        caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
160
+        //修改案件状态
161
+        caseApplicationMapper.submitCaseApplication(caseApplication1);
162
+        return AjaxResult.success("确认缴费成功");
163
+    }
138 164
 }

+ 6
- 2
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml Ver arquivo

@@ -86,8 +86,12 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
86 86
 	    <include refid="selectDeptVo"/>
87 87
 		where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
88 88
 	</select>
89
-    
90
-    <insert id="insertDept" parameterType="SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
89
+	<select id="selectUserDeptListByRoleId" resultType="java.lang.Long">
90
+		select u.dept_id from sys_user_role r
91
+		join sys_user u on r.role_id=#{roleId} and r.user_id=u.user_id
92
+	</select>
93
+
94
+	<insert id="insertDept" parameterType="SysDept" useGeneratedKeys="true" keyColumn="dept_id" keyProperty="deptId">
91 95
  		insert into sys_dept(
92 96
  			<if test="deptId != null and deptId != 0">dept_id,</if>
93 97
  			<if test="parentId != null and parentId != 0">parent_id,</if>

+ 11
- 6
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml Ver arquivo

@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
9 9
         <result property="deptId"       column="dept_id"      />
10 10
         <result property="userName"     column="user_name"    />
11 11
         <result property="nickName"     column="nick_name"    />
12
+		<result property="idCard"    column="id_card" />
12 13
         <result property="email"        column="email"        />
13 14
         <result property="phonenumber"  column="phonenumber"  />
14 15
         <result property="sex"          column="sex"          />
@@ -35,6 +36,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
35 36
         <result property="orderNum"  column="order_num"   />
36 37
         <result property="leader"    column="leader"      />
37 38
         <result property="status"    column="dept_status" />
39
+
38 40
     </resultMap>
39 41
 	
40 42
     <resultMap id="RoleResult" type="SysRole">
@@ -49,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
49 51
 	<sql id="selectUserVo">
50 52
         select u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.avatar, u.phonenumber, u.password, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, 
51 53
         d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.status as dept_status,
52
-        r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status
54
+        r.role_id, r.role_name, r.role_key, r.role_sort, r.data_scope, r.status as role_status,u.id_card
53 55
         from sys_user u
54 56
 		    left join sys_dept d on u.dept_id = d.dept_id
55 57
 		    left join sys_user_role ur on u.user_id = ur.user_id
@@ -57,7 +59,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
57 59
     </sql>
58 60
     
59 61
     <select id="selectUserList" parameterType="SysUser" resultMap="SysUserResult">
60
-		select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
62
+		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark, d.dept_name, d.leader from sys_user u
61 63
 		left join sys_dept d on u.dept_id = d.dept_id
62 64
 		where u.del_flag = '0'
63 65
 		<if test="userId != null and userId != 0">
@@ -86,7 +88,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
86 88
 	</select>
87 89
 	
88 90
 	<select id="selectAllocatedList" parameterType="SysUser" resultMap="SysUserResult">
89
-	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
91
+	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.id_card, u.email, u.phonenumber, u.status, u.create_time
90 92
 	    from sys_user u
91 93
 			 left join sys_dept d on u.dept_id = d.dept_id
92 94
 			 left join sys_user_role ur on u.user_id = ur.user_id
@@ -103,7 +105,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
103 105
 	</select>
104 106
 	
105 107
 	<select id="selectUnallocatedList" parameterType="SysUser" resultMap="SysUserResult">
106
-	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name, u.email, u.phonenumber, u.status, u.create_time
108
+	    select distinct u.user_id, u.dept_id, u.user_name, u.nick_name,u.id_card, u.email, u.phonenumber, u.status, u.create_time
107 109
 	    from sys_user u
108 110
 			 left join sys_dept d on u.dept_id = d.dept_id
109 111
 			 left join sys_user_role ur on u.user_id = ur.user_id
@@ -142,7 +144,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
142 144
 		select user_id, email from sys_user where email = #{email} and del_flag = '0' limit 1
143 145
 	</select>
144 146
 	<select id="selectUserListByAdRole" resultMap="SysUserResult">
145
-		select u.user_id, u.dept_id, u.nick_name, u.user_name, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from sys_user u
147
+		select u.user_id, u.dept_id, u.nick_name, u.user_name,u.id_card, u.email, u.avatar, u.phonenumber, u.sex, u.status, u.del_flag, u.login_ip, u.login_date, u.create_by, u.create_time, u.remark from sys_user u
146 148
 		 join sys_user_role ur on ur.user_id =u.user_id
147 149
 		    join sys_role r on ur.role_id = r.role_id and r.role_name='仲裁员'
148 150
 		where r.del_flag = '0' and r.status='0'
@@ -161,7 +163,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
161 163
 
162 164
 	</select>
163 165
 	<select id="selectUserListByIds" resultMap="SysUserResult">
164
-		select u.user_id,  u.nick_name, u.user_name, u.phonenumber, u.remark from sys_user u
166
+		select u.user_id,  u.nick_name, u.user_name,u.id_card, u.phonenumber, u.remark from sys_user u
165 167
 
166 168
 			<where>
167 169
 		<if test="idList != null and idList.size() > 0">
@@ -181,6 +183,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
181 183
  			<if test="deptId != null and deptId != 0">dept_id,</if>
182 184
  			<if test="userName != null and userName != ''">user_name,</if>
183 185
  			<if test="nickName != null and nickName != ''">nick_name,</if>
186
+ 			<if test="idCard != null and idCard != ''">id_card,</if>
184 187
  			<if test="email != null and email != ''">email,</if>
185 188
  			<if test="avatar != null and avatar != ''">avatar,</if>
186 189
  			<if test="phonenumber != null and phonenumber != ''">phonenumber,</if>
@@ -195,6 +198,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
195 198
  			<if test="deptId != null and deptId != ''">#{deptId},</if>
196 199
  			<if test="userName != null and userName != ''">#{userName},</if>
197 200
  			<if test="nickName != null and nickName != ''">#{nickName},</if>
201
+ 			<if test="idCard != null and idCard != ''">#{idCard},</if>
198 202
  			<if test="email != null and email != ''">#{email},</if>
199 203
  			<if test="avatar != null and avatar != ''">#{avatar},</if>
200 204
  			<if test="phonenumber != null and phonenumber != ''">#{phonenumber},</if>
@@ -213,6 +217,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
213 217
  			<if test="deptId != null and deptId != 0">dept_id = #{deptId},</if>
214 218
  			<if test="userName != null and userName != ''">user_name = #{userName},</if>
215 219
  			<if test="nickName != null and nickName != ''">nick_name = #{nickName},</if>
220
+ 			<if test="idCard != null and idCard != ''">id_card = #{idCard},</if>
216 221
  			<if test="email != null ">email = #{email},</if>
217 222
  			<if test="phonenumber != null ">phonenumber = #{phonenumber},</if>
218 223
  			<if test="sex != null and sex != ''">sex = #{sex},</if>

+ 8
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml Ver arquivo

@@ -19,13 +19,15 @@
19 19
         <result property="contactTelphoneAgent"      column="contact_telphone_agent"     />
20 20
         <result property="contactAddressAgent"    column="contact_address_agent"   />
21 21
         <result property="trackNum"    column="track_num"   />
22
+        <result property="applicationOrganId"    column="application_organ_id"   />
23
+        <result property="applicationOrganName"    column="application_organ_name"   />
22 24
 
23 25
     </resultMap>
24 26
 
25 27
     <select id="selectCaseAffiliate" parameterType="CaseAffiliate" resultMap="CaseAffiliateResult">
26 28
         select c.id ,c.case_appli_id ,c.identity_type ,c.name ,c.identity_num ,c.contact_telphone ,c.contact_address ,
27 29
         c.work_address ,c.work_telphone ,c.name_agent, c.identity_num_agent ,c.contact_telphone_agent ,c.contact_address_agent,
28
-        c.track_num
30
+        c.track_num,c.application_organ_id,c.application_organ_name
29 31
         from case_affiliate c
30 32
         <where>
31 33
             <if test="caseAppliId != null ">
@@ -36,7 +38,7 @@
36 38
     <select id="selectCaseAffiliateByIdentityType"  resultMap="CaseAffiliateResult">
37 39
         select c.id ,c.case_appli_id ,c.identity_type ,c.name ,c.identity_num ,c.contact_telphone ,c.contact_address ,
38 40
         c.work_address ,c.work_telphone ,c.name_agent, c.identity_num_agent ,c.contact_telphone_agent ,c.contact_address_agent,
39
-        c.track_num
41
+        c.track_num,c.application_organ_id,c.application_organ_name
40 42
         from case_affiliate c
41 43
         <where>
42 44
             <if test="caseAppliId != null ">
@@ -50,11 +52,11 @@
50 52
 
51 53
 
52 54
     <insert id="batchCaseAffiliate">
53
-        insert into case_affiliate(case_appli_id, identity_type,name,identity_num,contact_telphone,
55
+        insert into case_affiliate(case_appli_id, identity_type,application_organ_id,application_organ_name,name,identity_num,contact_telphone,
54 56
         contact_address,work_address,work_telphone ,name_agent,identity_num_agent,contact_telphone_agent,
55 57
         contact_address_agent ) values
56 58
         <foreach item="item" index="index" collection="list" separator=",">
57
-            (#{item.caseAppliId},#{item.identityType},#{item.name},#{item.identityNum},#{item.contactTelphone},
59
+            (#{item.caseAppliId},#{item.identityType},#{item.applicationOrganId},#{item.applicationOrganName},#{item.name},#{item.identityNum},#{item.contactTelphone},
58 60
             #{item.contactAddress},#{item.workAddress},#{item.workTelphone},  #{item.nameAgent},#{item.identityNumAgent},
59 61
             #{item.contactTelphoneAgent},#{item.contactAddressAgent})
60 62
         </foreach>
@@ -67,6 +69,8 @@
67 69
         set
68 70
         case_appli_id=#{caseAppliId},
69 71
         identity_type= #{identityType},
72
+        application_organ_id= #{applicationOrganId},
73
+        application_organ_name= #{applicationOrganName},
70 74
         name = #{name},
71 75
         identity_num = #{identityNum},
72 76
         contact_telphone = #{contactTelphone},

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml Ver arquivo

@@ -17,6 +17,7 @@
17 17
         INSERT INTO case_attach (case_appli_id, annex_name, annex_path , annex_type,note,use_id,use_account)
18 18
         VALUES (#{caseAppliId}, #{annexName}, #{annexPath},#{annexType},#{note},#{userId},#{userName})
19 19
     </insert>
20
+
20 21
     <select id="queryAnnexPathByCaseId" resultType="com.ruoyi.wisdomarbitrate.domain.CaseAttach" resultMap="CaseAttachResult">
21 22
         select annex_id,case_appli_id,annex_name,annex_path,annex_type,note,use_id,use_account
22 23
         from case_attach

+ 2
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CasePaymentRecordMapper.xml Ver arquivo

@@ -11,6 +11,7 @@
11 11
         <result property="paymentTime"        column="payment_time"        />
12 12
         <result property="createTime"   column="create_time"  />
13 13
         <result property="updateTime"   column="update_time"  />
14
+        <result property="payType"   column="pay_type"  />
14 15
     </resultMap>
15 16
     <insert id="saveRecord">
16 17
         INSERT INTO case_payment_record (case_id, order_number, payment_status , create_time)
@@ -24,6 +25,7 @@
24 25
             <if test="paymentTime != null ">payment_time = #{paymentTime},</if>
25 26
             <if test="paymentStatus != null ">payment_status = #{paymentStatus},</if>
26 27
             <if test="updateTime != null ">update_time = #{updateTime},</if>
28
+            <if test="payType != null ">pay_type = #{payType},</if>
27 29
         </set>
28 30
         where id = #{id}
29 31
     </update>