Pārlūkot izejas kodu

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

wangqiong123 2 gadus atpakaļ
vecāks
revīzija
73797bb610

+ 0
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseArbitrateServiceImpl.java Parādīt failu

@@ -104,8 +104,6 @@ public class CaseArbitrateServiceImpl implements ICaseArbitrateService {
104 104
                     }
105 105
                 }
106 106
             }
107
-            // 新增日志
108
-            CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.PENDING_OPENCOURT_HEAR,"");
109 107
 
110 108
             return AjaxResult.success("审核成功");
111 109
         }

+ 10
- 5
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/CaseLogUtils.java Parādīt failu

@@ -1,8 +1,10 @@
1 1
 package com.ruoyi.wisdomarbitrate.utils;
2 2
 
3 3
 import cn.hutool.extra.spring.SpringUtil;
4
+import com.ruoyi.common.core.domain.entity.SysUser;
4 5
 import com.ruoyi.common.core.domain.model.LoginUser;
5 6
 import com.ruoyi.common.utils.SecurityUtils;
7
+import com.ruoyi.system.mapper.SysUserMapper;
6 8
 import com.ruoyi.wisdomarbitrate.domain.CaseLogRecord;
7 9
 import com.ruoyi.wisdomarbitrate.mapper.CaseLogRecordMapper;
8 10
 
@@ -17,6 +19,7 @@ import javax.validation.constraints.NotNull;
17 19
 public class CaseLogUtils
18 20
 {
19 21
     private static CaseLogRecordMapper caseLogRecordMapper= SpringUtil.getBean(CaseLogRecordMapper.class);
22
+    private static SysUserMapper userMapper= SpringUtil.getBean(SysUserMapper.class);
20 23
 
21 24
     /**
22 25
      * 新增案件日志
@@ -25,13 +28,15 @@ public class CaseLogUtils
25 28
      * @param notes 备注
26 29
      */
27 30
     public static void insertCaseLog(@NotNull Long caseAppliId, @NotEmpty Integer caseNode, String notes  ){
31
+        CaseLogRecord operLog = new CaseLogRecord();
28 32
         // 获取当前的用户
29 33
         LoginUser loginUser = SecurityUtils.getLoginUser();
30
-        String nickName = loginUser.getUser().getNickName();
31
-        CaseLogRecord operLog = new CaseLogRecord();
32
-        operLog.setCreateBy(loginUser.getUsername());
33
-        operLog.setCreateNickName(nickName);
34
-        operLog.setUpdateBy(loginUser.getUsername());
34
+        if(loginUser!=null) {
35
+            SysUser sysUser = userMapper.selectUserById(loginUser.getUserId());
36
+            operLog.setCreateBy(sysUser.getUserName());
37
+            operLog.setCreateNickName(sysUser.getNickName());
38
+            operLog.setUpdateBy(sysUser.getUserName());
39
+        }
35 40
         operLog.setCaseAppliId(caseAppliId);
36 41
         operLog.setCaseNode(caseNode);
37 42
         operLog.setNotes(notes);

+ 2
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseLogRecordMapper.xml Parādīt failu

@@ -25,8 +25,8 @@
25 25
             cl.create_by createBy,cl.create_nick_name createNickName,cl.create_time createTime,cl.update_by updateBy,cl.update_time updateTime,
26 26
         CASE cl.case_node when 0 then '立案申请' when 1 then '提交立案申请' when 2 then '立案审查'
27 27
         when 3 then '支付成功' when 4 then '缴费确认' when 5 then '案件质证'
28
-        when 6 then '组庭审核' when 7 then '组庭确认' when 8 then '开庭审理'
29
-        when 9 then '待书面审理' when 10 then '书面审理' when 11 then '拒绝裁决书'
28
+        when 6 then '组庭审核' when 7 then '组庭确认' when 8 then '当前仲裁方式为开庭审理'
29
+        when 9 then '当前仲裁方式为书面审理' when 10 then '书面审理' when 11 then '生成裁決书'
30 30
         when 12 then '核验裁决书' when 13 then '同意裁决书' when 14 then '签名成功'
31 31
         when 15 then '用印成功' when 16 then '送达仲裁文书' when 17 then '案件归档'
32 32
         when 26 then '证据确认成功'