18792927508 2 år sedan
förälder
incheckning
b3b6d25d91
20 ändrade filer med 319 tillägg och 68 borttagningar
  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 Visa fil

2
 
2
 
3
 import com.ruoyi.common.core.domain.AjaxResult;
3
 import com.ruoyi.common.core.domain.AjaxResult;
4
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
4
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
5
 import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
6
 import com.ruoyi.wisdomarbitrate.service.ICasePaymentService;
6
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7
 import org.springframework.beans.factory.annotation.Autowired;
8
 import org.springframework.beans.factory.annotation.Autowired;
30
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
31
     public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
31
         return paymentService.casePay(casePayDTO);
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 Visa fil

33
     @Excel(name = "登录名称")
33
     @Excel(name = "登录名称")
34
     private String userName;
34
     private String userName;
35
 
35
 
36
+
37
+
36
     /** 用户昵称 */
38
     /** 用户昵称 */
37
     @Excel(name = "用户名称")
39
     @Excel(name = "用户名称")
38
     private String nickName;
40
     private String nickName;
41
+    /** 用户身份证号 */
42
+    @Excel(name = "身份证号")
43
+    private String idCard;
39
 
44
 
40
     /** 用户邮箱 */
45
     /** 用户邮箱 */
41
     @Excel(name = "用户邮箱")
46
     @Excel(name = "用户邮箱")
297
         this.roleId = roleId;
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
     @Override
313
     @Override
301
     public String toString() {
314
     public String toString() {
302
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
315
         return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
303
             .append("userId", getUserId())
316
             .append("userId", getUserId())
304
             .append("deptId", getDeptId())
317
             .append("deptId", getDeptId())
305
             .append("userName", getUserName())
318
             .append("userName", getUserName())
319
+            .append("idCard", getIdCard())
306
             .append("nickName", getNickName())
320
             .append("nickName", getNickName())
307
             .append("email", getEmail())
321
             .append("email", getEmail())
308
             .append("phonenumber", getPhonenumber())
322
             .append("phonenumber", getPhonenumber())

+ 2
- 10
ruoyi-common/src/main/java/com/ruoyi/common/utils/WxAppletNotifyUtils.java Visa fil

2
 
2
 
3
 /**
3
 /**
4
  * @author wangqiong
4
  * @author wangqiong
5
- * @description
5
+ * @description 获取微信小程序url scheme
6
  * @date 2023-10-13 10:16
6
  * @date 2023-10-13 10:16
7
  */
7
  */
8
-import cn.hutool.core.util.StrUtil;
8
+
9
 import cn.hutool.http.HttpUtil;
9
 import cn.hutool.http.HttpUtil;
10
 import cn.hutool.json.JSONObject;
10
 import cn.hutool.json.JSONObject;
11
 import cn.hutool.json.JSONUtil;
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
 public class WxAppletNotifyUtils {
13
 public class WxAppletNotifyUtils {
22
 
14
 
23
     /**
15
     /**

+ 2
- 0
ruoyi-system/src/main/java/com/ruoyi/system/mapper/SysDeptMapper.java Visa fil

115
      * @return 结果
115
      * @return 结果
116
      */
116
      */
117
     public int deleteDeptById(Long deptId);
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 Visa fil

15
     /** 姓名 */
15
     /** 姓名 */
16
     @Excel(name = "姓名")
16
     @Excel(name = "姓名")
17
     private String name;
17
     private String name;
18
+    /**
19
+     * 申请机构id
20
+     */
21
+    private String applicationOrganId;
22
+    /**
23
+     * 申请机构名称
24
+     */
25
+    private String applicationOrganName;
18
     /** 身份证号 */
26
     /** 身份证号 */
19
     @Excel(name = "身份证号")
27
     @Excel(name = "身份证号")
20
     private String identityNum;
28
     private String identityNum;
49
     /** 快递单号 */
57
     /** 快递单号 */
50
     private String trackNum;
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
     public String getSendEmail() {
76
     public String getSendEmail() {
53
         return sendEmail;
77
         return sendEmail;
54
     }
78
     }

+ 69
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Visa fil

124
     private Integer paymentStatus;
124
     private Integer paymentStatus;
125
     /** 支付状态描述 */
125
     /** 支付状态描述 */
126
     private String paymentStatusName;
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
     private StringBuilder errorMsg;
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
     public StringBuilder getErrorMsg() {
166
     public StringBuilder getErrorMsg() {
131
         return errorMsg;
167
         return errorMsg;
132
     }
168
     }
200
     private String applicantName;
236
     private String applicantName;
201
     /** 被申请人名称 */
237
     /** 被申请人名称 */
202
     private String respondentName;
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
     public String getApplicantName() {
273
     public String getApplicantName() {
205
         return applicantName;
274
         return applicantName;

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAttach.java Visa fil

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

+ 4
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CasePaymentRecord.java Visa fil

38
     /** 更新时间 */
38
     /** 更新时间 */
39
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
39
     @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
40
     private Date updateTime;
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 Visa fil

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 Visa fil

1
 package com.ruoyi.wisdomarbitrate.domain.dto;
1
 package com.ruoyi.wisdomarbitrate.domain.dto;
2
 
2
 
3
+import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
3
 import lombok.Data;
4
 import lombok.Data;
5
+
6
+import java.util.List;
7
+
4
 /**
8
 /**
5
  * 案件缴费传入对象
9
  * 案件缴费传入对象
6
  */
10
  */
23
      * 支付方式 wxpay(微信)  alipay(支付宝)
27
      * 支付方式 wxpay(微信)  alipay(支付宝)
24
      */
28
      */
25
     private String platform;
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 Visa fil

3
 import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
3
 import com.ruoyi.wisdomarbitrate.domain.Arbitrator;
4
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
4
 import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
6
 import org.apache.ibatis.annotations.Param;
7
 import org.apache.ibatis.annotations.Param;
7
 
8
 
8
 import java.util.List;
9
 import java.util.List;
12
 
13
 
13
     int selectCaseApplicationCount(CaseApplication caseApplication);
14
     int selectCaseApplicationCount(CaseApplication caseApplication);
14
 
15
 
16
+    /**
17
+     * 查询超级管理员案件
18
+     * @param caseApplication
19
+     * @return
20
+     */
21
+    List<CaseApplication> selectAdminCaseApplicationList(CaseApplication caseApplication);
22
+
15
     int insertCaseApplication(CaseApplication caseApplication);
23
     int insertCaseApplication(CaseApplication caseApplication);
16
 
24
 
17
 
25
 
39
      * @return
47
      * @return
40
      */
48
      */
41
     String selectArbitratorList(@Param("id") String id);
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 Visa fil

8
     CasePaymentRecord queryRecord(String orderNumber);
8
     CasePaymentRecord queryRecord(String orderNumber);
9
 
9
 
10
     void update(CasePaymentRecord casePaymentRecord);
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 Visa fil

3
 import com.ruoyi.common.core.domain.AjaxResult;
3
 import com.ruoyi.common.core.domain.AjaxResult;
4
 import com.ruoyi.dto.PayRequest;
4
 import com.ruoyi.dto.PayRequest;
5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
5
 import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
6
+import com.ruoyi.wisdomarbitrate.domain.dto.CaseConfirmPayDTO;
6
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7
 import com.ruoyi.wisdomarbitrate.domain.dto.CasePayDTO;
7
 
8
 
8
 public interface ICasePaymentService {
9
 public interface ICasePaymentService {
12
     AjaxResult casePay(CasePayDTO casePayDTO);
13
     AjaxResult casePay(CasePayDTO casePayDTO);
13
 
14
 
14
     AjaxResult confirmPayment(CaseApplication caseApplication);
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 Visa fil

14
 import com.ruoyi.common.annotation.DataScope;
14
 import com.ruoyi.common.annotation.DataScope;
15
 import com.ruoyi.common.constant.CaseApplicationConstants;
15
 import com.ruoyi.common.constant.CaseApplicationConstants;
16
 import com.ruoyi.common.core.domain.AjaxResult;
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
 import com.ruoyi.common.exception.EsignDemoException;
20
 import com.ruoyi.common.exception.EsignDemoException;
22
 import com.ruoyi.common.exception.ServiceException;
21
 import com.ruoyi.common.exception.ServiceException;
23
 import com.ruoyi.common.utils.WordUtil;
22
 import com.ruoyi.common.utils.WordUtil;
57
 import java.util.regex.Pattern;
56
 import java.util.regex.Pattern;
58
 import java.util.stream.Collectors;
57
 import java.util.stream.Collectors;
59
 
58
 
59
+import static com.ruoyi.common.utils.SecurityUtils.getLoginUser;
60
 import static com.ruoyi.common.utils.SecurityUtils.getUsername;
60
 import static com.ruoyi.common.utils.SecurityUtils.getUsername;
61
 
61
 
62
 
62
 
69
     private CaseAffiliateMapper caseAffiliateMapper;
69
     private CaseAffiliateMapper caseAffiliateMapper;
70
 
70
 
71
     @Autowired
71
     @Autowired
72
-    private ArbitratorMapper arbitratorMapper;
72
+    private CasePaymentRecordMapper casePaymentRecordMapper;
73
     @Autowired
73
     @Autowired
74
     private ArbitrateRecordMapper arbitrateRecordMapper;
74
     private ArbitrateRecordMapper arbitrateRecordMapper;
75
     @Autowired
75
     @Autowired
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}$");
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
     @Override
102
     @Override
93
     public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
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
         return caseApplicationMapper.selectCaseApplicationList(caseApplication);
130
         return caseApplicationMapper.selectCaseApplicationList(caseApplication);
95
 
131
 
96
     }
132
     }
108
         // 获取自动编码
144
         // 获取自动编码
109
         String caseNum = generateCaseNum();
145
         String caseNum = generateCaseNum();
110
         caseApplication.setCaseNum(caseNum);
146
         caseApplication.setCaseNum(caseNum);
147
+        caseApplication.setCreateBy(getUsername());
111
 
148
 
112
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
149
         int rows = caseApplicationMapper.insertCaseApplication(caseApplication);
113
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
150
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
125
                 if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
162
                 if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
126
                     // 将组织机构id设为申请人名称
163
                     // 将组织机构id设为申请人名称
127
                     if (deptMap.containsKey(caseAffiliate.getName())) {
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
                     } else {
167
                     } else {
130
                         // 如果不存在则新增
168
                         // 如果不存在则新增
131
                         SysDept dept = new SysDept();
169
                         SysDept dept = new SysDept();
139
                         dept.setUpdateBy(getUsername());
177
                         dept.setUpdateBy(getUsername());
140
                         sysDeptMapper.insertDept(dept);
178
                         sysDeptMapper.insertDept(dept);
141
                         deptMap.put(dept.getDeptName(), dept.getDeptId());
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
         BigDecimal feeRate = new BigDecimal(0.01);
232
         BigDecimal feeRate = new BigDecimal(0.01);
194
         BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
233
         BigDecimal feePayable  = caseApplication.getCaseSubjectAmount().multiply(feeRate).setScale(2,BigDecimal.ROUND_HALF_UP);
195
         caseApplication.setFeePayable(feePayable);
234
         caseApplication.setFeePayable(feePayable);
235
+        caseApplication.setUpdateBy(getUsername());
196
 
236
 
197
         int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
237
         int rows = caseApplicationMapper.updataCaseApplication(caseApplication);
198
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
238
         List<CaseAffiliate> caseAffiliates = caseApplication.getCaseAffiliates();
208
                 if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
248
                 if(caseAffiliate.getIdentityType()==1&&StrUtil.isNotEmpty(caseAffiliate.getName())) {
209
                     // 将组织机构id设为申请人名称
249
                     // 将组织机构id设为申请人名称
210
                     if (deptMap.containsKey(caseAffiliate.getName())) {
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
                     } else {
253
                     } else {
213
                         // 如果不存在则新增
254
                         // 如果不存在则新增
214
                         SysDept dept = new SysDept();
255
                         SysDept dept = new SysDept();
222
                         dept.setUpdateBy(getUsername());
263
                         dept.setUpdateBy(getUsername());
223
                         sysDeptMapper.insertDept(dept);
264
                         sysDeptMapper.insertDept(dept);
224
                         deptMap.put(dept.getDeptName(), dept.getDeptId());
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
                             CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
452
                             CaseApplication caseApplicationItera = caseApplicationNewList.get(k);
410
                             // 新增立案信息
453
                             // 新增立案信息
411
                             caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
454
                             caseApplicationItera.setCaseStatus(CaseApplicationConstants.CASE_APPLICATION);
412
-
455
+                            caseApplicationItera.setCreateBy(getUsername());
413
                             int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
456
                             int rows = caseApplicationMapper.insertCaseApplication(caseApplicationItera);
414
                             List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
457
                             List<CaseAffiliate> caseAffiliates = caseApplicationItera.getCaseAffiliates();
415
                             if(caseAffiliates!=null&&caseAffiliates.size()>0){
458
                             if(caseAffiliates!=null&&caseAffiliates.size()>0){
888
         caseAffiliate.setCaseAppliId(caseApplication.getId());
931
         caseAffiliate.setCaseAppliId(caseApplication.getId());
889
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
932
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
890
         if(caseAffiliatListeselect!=null){
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
             for (int i = 0; i < caseAffiliatListeselect.size(); i++){
935
             for (int i = 0; i < caseAffiliatListeselect.size(); i++){
901
                 CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(i);
936
                 CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(i);
902
                 int identityType = caseAffiliateselect.getIdentityType();
937
                 int identityType = caseAffiliateselect.getIdentityType();
903
                 if(identityType==1){
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
         return caseApplicationselect;
950
         return caseApplicationselect;
915
     }
951
     }
916
 
952
 
1216
         caseAffiliate.setCaseAppliId(caseApplication.getId());
1252
         caseAffiliate.setCaseAppliId(caseApplication.getId());
1217
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
1253
         List<CaseAffiliate> caseAffiliatListeselect = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
1218
         if(caseAffiliatListeselect!=null) {
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
             for (int j = 0; j < caseAffiliatListeselect.size(); j++) {
1256
             for (int j = 0; j < caseAffiliatListeselect.size(); j++) {
1228
                 CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(j);
1257
                 CaseAffiliate caseAffiliateselect = caseAffiliatListeselect.get(j);
1229
                 int identityType = caseAffiliateselect.getIdentityType();
1258
                 int identityType = caseAffiliateselect.getIdentityType();
1230
                 if(identityType==1){
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
 
1339
 
1313
             // 将组织机构id设为申请人名称
1340
             // 将组织机构id设为申请人名称
1314
             if(deptMap.containsKey(caseApplication.getName())){
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
             }else {
1344
             }else {
1317
                // 如果不存在则新增
1345
                // 如果不存在则新增
1318
                 SysDept dept = new SysDept();
1346
                 SysDept dept = new SysDept();
1326
                 dept.setUpdateBy(getUsername());
1354
                 dept.setUpdateBy(getUsername());
1327
                 sysDeptMapper.insertDept(dept);
1355
                 sysDeptMapper.insertDept(dept);
1328
                 deptMap.put(dept.getDeptName(),dept.getDeptId());
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 Visa fil

1
 package com.ruoyi.wisdomarbitrate.service.impl;
1
 package com.ruoyi.wisdomarbitrate.service.impl;
2
 
2
 
3
 
3
 
4
+import cn.hutool.core.collection.CollectionUtil;
4
 import com.ruoyi.ElegentPay;
5
 import com.ruoyi.ElegentPay;
5
 import com.ruoyi.common.constant.CaseApplicationConstants;
6
 import com.ruoyi.common.constant.CaseApplicationConstants;
6
 import com.ruoyi.common.core.domain.AjaxResult;
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
 import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
13
 import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
8
 import com.ruoyi.common.utils.SmsUtils;
14
 import com.ruoyi.common.utils.SmsUtils;
9
 import com.ruoyi.dto.PayRequest;
15
 import com.ruoyi.dto.PayRequest;
29
     private final CaseApplicationMapper caseApplicationMapper;
35
     private final CaseApplicationMapper caseApplicationMapper;
30
     private final CasePaymentRecordMapper casePaymentRecordMapper;
36
     private final CasePaymentRecordMapper casePaymentRecordMapper;
31
     private final CaseAffiliateMapper caseAffiliateMapper;
37
     private final CaseAffiliateMapper caseAffiliateMapper;
38
+    @Autowired
39
+    private  CaseAttachMapper caseAttachMapper;
32
 
40
 
33
     @Autowired
41
     @Autowired
34
     public CasePaymentServiceImpl(ElegentPay elegentPay
42
     public CasePaymentServiceImpl(ElegentPay elegentPay
78
         casePaymentRecord.setPaymentTime(new Date());
86
         casePaymentRecord.setPaymentTime(new Date());
79
         casePaymentRecord.setUpdateTime(new Date());
87
         casePaymentRecord.setUpdateTime(new Date());
80
         casePaymentRecordMapper.update(casePaymentRecord);
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
         return AjaxResult.success("支付成功");
90
         return AjaxResult.success("支付成功");
89
     }
91
     }
90
 
92
 
135
         }
137
         }
136
         return AjaxResult.error("暂无需要确认的缴费清单");
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 Visa fil

86
 	    <include refid="selectDeptVo"/>
86
 	    <include refid="selectDeptVo"/>
87
 		where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
87
 		where dept_name=#{deptName} and parent_id = #{parentId} and del_flag = '0' limit 1
88
 	</select>
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
  		insert into sys_dept(
95
  		insert into sys_dept(
92
  			<if test="deptId != null and deptId != 0">dept_id,</if>
96
  			<if test="deptId != null and deptId != 0">dept_id,</if>
93
  			<if test="parentId != null and parentId != 0">parent_id,</if>
97
  			<if test="parentId != null and parentId != 0">parent_id,</if>

+ 11
- 6
ruoyi-system/src/main/resources/mapper/system/SysUserMapper.xml Visa fil

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

+ 8
- 4
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml Visa fil

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

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAttachMapper.xml Visa fil

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

+ 2
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CasePaymentRecordMapper.xml Visa fil

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