18792927508 2 lat temu
rodzic
commit
1c6544fea7

+ 15
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java Wyświetl plik

@@ -1,8 +1,11 @@
1 1
 package com.ruoyi.wisdomarbitrate.domain;
2 2
 
3
+import com.fasterxml.jackson.annotation.JsonFormat;
3 4
 import com.ruoyi.common.annotation.Excel;
4 5
 import com.ruoyi.common.core.domain.BaseEntity;
5 6
 
7
+import java.util.Date;
8
+
6 9
 public class CaseAffiliate   extends BaseEntity {
7 10
     private static final long serialVersionUID = 1L;
8 11
     /** ID */
@@ -39,7 +42,17 @@ public class CaseAffiliate   extends BaseEntity {
39 42
     /**
40 43
      * 被申请人出生年月日
41 44
      */
42
-    private String responBirth;
45
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
46
+    private Date responBirth;
47
+
48
+    public Date getResponBirth() {
49
+        return responBirth;
50
+    }
51
+
52
+    public void setResponBirth(Date responBirth) {
53
+        this.responBirth = responBirth;
54
+    }
55
+
43 56
 
44 57
     public String getCompLegalPerson() {
45 58
         return compLegalPerson;
@@ -65,13 +78,8 @@ public class CaseAffiliate   extends BaseEntity {
65 78
         this.responSex = responSex;
66 79
     }
67 80
 
68
-    public String getResponBirth() {
69
-        return responBirth;
70
-    }
71 81
 
72
-    public void setResponBirth(String responBirth) {
73
-        this.responBirth = responBirth;
74
-    }
82
+
75 83
 
76 84
     /** 身份证号 */
77 85
     @Excel(name = "身份证号")

+ 11
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Wyświetl plik

@@ -624,9 +624,19 @@ public class CaseApplication  extends BaseEntity {
624 624
     /** 被申请人主体信息-性别 */
625 625
     @Excel(name = "被申请人主体信息-性别",width = 26)
626 626
     private String responSex;
627
+
628
+    public Date getResponBirth() {
629
+        return responBirth;
630
+    }
631
+
632
+    public void setResponBirth(Date responBirth) {
633
+        this.responBirth = responBirth;
634
+    }
635
+
627 636
     /** 被申请人主体信息-出生年月日 */
628 637
     @Excel(name = "被申请人主体信息-出生年月日",width = 26)
629
-    private String responBirth;
638
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
639
+    private Date responBirth;
630 640
 
631 641
     public String getCompLegalPerson() {
632 642
         return compLegalPerson;
@@ -652,13 +662,7 @@ public class CaseApplication  extends BaseEntity {
652 662
         this.responSex = responSex;
653 663
     }
654 664
 
655
-    public String getResponBirth() {
656
-        return responBirth;
657
-    }
658 665
 
659
-    public void setResponBirth(String responBirth) {
660
-        this.responBirth = responBirth;
661
-    }
662 666
 
663 667
     /** 联系电话 */
664 668
     @Excel(name = "被申请人主体信息-联系电话",width = 26)

+ 22
- 10
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java Wyświetl plik

@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
5 5
 import com.ruoyi.common.constant.CaseApplicationConstants;
6 6
 import com.ruoyi.common.core.domain.AjaxResult;
7 7
 import com.ruoyi.common.core.redis.RedisCache;
8
+import com.ruoyi.common.utils.DateUtils;
8 9
 import com.ruoyi.wisdomarbitrate.mapper.*;
9 10
 import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
10 11
 import com.ruoyi.common.utils.EmailOutUtil;
@@ -77,24 +78,30 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
77 78
             CaseAffiliate caseAffiliate = new CaseAffiliate();
78 79
             caseAffiliate.setCaseAppliId(id);
79 80
             List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate);
81
+            List<String> nameAgentList = new ArrayList<>();
80 82
             if (caseAffiliates != null && caseAffiliates.size() > 0) {
81 83
                 for (CaseAffiliate affiliate : caseAffiliates) {
82 84
                     //获取身份类型
83 85
                     int identityType = affiliate.getIdentityType();
84 86
                     if (identityType == 1) {    //申请人
85 87
                         datas.put("appName", affiliate.getName());
86
-                        datas.put("appAddress", affiliate.getContactAddress());
87
-                        datas.put("appContactAddress", null);
88
+                        datas.put("appAddress", affiliate.getResidenAffili());
89
+                        datas.put("appContactAddress", affiliate.getContactAddress());
88 90
                         datas.put("appLegalPerson", affiliate.getCompLegalPerson());
89 91
                         datas.put("appLegalPersonTitle", affiliate.getCompLegalperPost());
90 92
                         datas.put("appAgentName", affiliate.getNameAgent());
91
-                        datas.put("appAgentTitle", null);
93
+                        datas.put("appAgentTitle", affiliate.getAppliAgentTitle());
94
+                        nameAgentList.add(affiliate.getNameAgent());
92 95
                     } else if (identityType == 2) {  //被申请人
93 96
                         datas.put("resName", affiliate.getName());
94
-                        datas.put("resAddress", affiliate.getContactAddress());
97
+                        datas.put("resAddress", affiliate.getResidenAffili());
95 98
                         datas.put("resSex", affiliate.getResponSex());
96
-                        datas.put("resDateOfBirth", affiliate.getResponBirth());
97
-                        datas.put("resContactAddress", null);
99
+                        Date responBirth = affiliate.getResponBirth();
100
+                        SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
101
+                        String responBirthStr = sdf.format(responBirth);
102
+                        datas.put("resDateOfBirth",responBirthStr);
103
+                        datas.put("resContactAddress", affiliate.getContactAddress());
104
+                        nameAgentList.add(affiliate.getNameAgent());
98 105
                     }
99 106
                 }
100 107
             }
@@ -163,7 +170,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
163 170
             }
164 171
             Integer isAbsence = caseApplication1.getIsAbsence();
165 172
             if (isAbsence==null){
166
-                datas.put("onLine1", null);
173
+                datas.put("absent1", null);
167 174
                 datas.put("absent2", null);
168 175
                 datas.put("absent3", null);
169 176
                 datas.put("absent4", null);
@@ -175,7 +182,9 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
175 182
                 datas.put("attend5", null);
176 183
                 datas.put("attend6", null);
177 184
                 datas.put("attend7", null);
178
-                datas.put("responCrossOpin", null);
185
+                datas.put("appAgentName1", null);
186
+                datas.put("appAgentName2", null);
187
+                datas.put("resAgentName", null);
179 188
             }
180 189
            else if (isAbsence == 1) {
181 190
                 //缺席审理
@@ -188,11 +197,12 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
188 197
                         "申请人为证明其主张的事实和理由,向仲裁庭提交了如下证据材料:";
189 198
                 String absent5 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
190 199
                         "第四十条第(二)项、第五十一条的规定,缺席裁决如下:";
191
-                datas.put("onLine1", absent1);
200
+                datas.put("absent1", absent1);
192 201
                 datas.put("absent2", absent2);
193 202
                 datas.put("absent3", absent3);
194 203
                 datas.put("absent4", absent4);
195 204
                 datas.put("absent5", absent5);
205
+                datas.put("appAgentName1", nameAgentList.get(0));
196 206
             } else {
197 207
                 //出席审理
198 208
                 String attend1 = "申请人的特别授权委托代理人";
@@ -214,6 +224,8 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
214 224
                 datas.put("attend6", attend6);
215 225
                 datas.put("attend7", attend7);
216 226
                 datas.put("responCrossOpin", caseApplication1.getResponCrossOpin());
227
+                datas.put("appAgentName2", nameAgentList.get(0));
228
+                datas.put("resAgentName", nameAgentList.get(1));
217 229
                 if (arbitratMethod == 1) {
218 230
                     //被申出席+开庭
219 231
                     String attend8 = "综上,仲裁庭依据《上海仲裁委员会仲裁规则》(2022年7月1日起施行的版本)" +
@@ -243,7 +255,7 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
243 255
             datas.put("year", year);
244 256
             String month = String.format("%02d", now.getMonthValue());
245 257
             String day = String.format("%02d", now.getDayOfMonth());
246
-             String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
258
+            String modalFilePath = "/data/arbitrate-document/template/新裁决书模板.docx";
247 259
             //String modalFilePath = "D:/develop/新裁决书模板.docx";
248 260
             String saveFolderPath = "/home/ruoyi/uploadPath/upload/" + year + "/" + month + "/" + day;
249 261
             //String saveFolderPath = "D:/data/" + year + "/" + month + "/" + day;

+ 16
- 16
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Wyświetl plik

@@ -127,25 +127,25 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
127 127
             ){
128 128
                 return caseApplicationMapper.selectAdminCaseApplicationList(caseApplication);
129 129
             }
130
-            if(role.getRoleName().equals("仲裁委")
131
-                    ||role.getRoleName().equals("部门长")){
132
-                List<Integer> caseStatusList=new ArrayList<>();
133
-                caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
134
-                caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
135
-                caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
136
-                caseApplication.setDeptHeadStatus(caseStatusList);
137
-            }
138
-            if(role.getRoleName().equals("仲裁员")){
139
-                caseApplication.setUserId(String.valueOf(userId));
140
-            }
130
+//            if(role.getRoleName().equals("仲裁委")
131
+//                    ||role.getRoleName().equals("部门长")){
132
+//                List<Integer> caseStatusList=new ArrayList<>();
133
+//                caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
134
+//                caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
135
+//                caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
136
+//                caseApplication.setDeptHeadStatus(caseStatusList);
137
+//            }
138
+//            if(role.getRoleName().equals("仲裁员")){
139
+//                caseApplication.setUserId(String.valueOf(userId));
140
+//            }
141 141
             if(role.getRoleName().equals("财务")){
142 142
                 caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
143 143
             }
144
-            if(role.getRoleName().equals("法律顾问")){
145
-                // 查询角色有关的用户部门
146
-                List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
147
-                caseApplication.setDeptIds(deptIds);
148
-            }
144
+//            if(role.getRoleName().equals("法律顾问")){
145
+//                // 查询角色有关的用户部门
146
+//                List<Long> deptIds = sysDeptMapper.selectUserDeptListByRoleId(role.getRoleId());
147
+//                caseApplication.setDeptIds(deptIds);
148
+//            }
149 149
             if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){
150 150
                 // 查询角色有关的用户部门
151 151
                 caseApplication.setNameId(String.valueOf(sysUser.getDeptId()));

+ 28
- 26
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignAward.java Wyświetl plik

@@ -6,10 +6,12 @@ import com.google.gson.JsonObject;
6 6
 import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
7 7
 import com.ruoyi.common.enums.EsignRequestType;
8 8
 import com.ruoyi.common.exception.EsignDemoException;
9
+import com.ruoyi.common.utils.DateUtils;
9 10
 import com.ruoyi.common.utils.EsignApplicaConfig;
10 11
 import com.ruoyi.common.utils.EsignHttpHelper;
11 12
 import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
12 13
 
14
+import java.util.Date;
13 15
 import java.util.Map;
14 16
 
15 17
 public class SignAward {
@@ -62,32 +64,32 @@ public class SignAward {
62 64
 //        System.out.println("签署短链接:"+sealUrl);
63 65
 
64 66
         //查询签署流程详情
65
-        EsignHttpResponse signFlowDetail = signFlowDetail(sealSignRecord);
66
-        JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(),JsonObject.class);
67
-        JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
68
-        JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
69
-        for (int i = 0; i < signersArray.size(); i++) {
70
-            JsonObject signerObject = (JsonObject)signersArray.get(i);
71
-            Integer psnsignStatus ;
72
-            Integer orgsignStatus ;
73
-            if(!(signerObject.get("psnSigner").toString()).equals("null")){
74
-                JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
75
-                if(psnSignerData!=null){
76
-                    psnsignStatus = signerObject.get("signStatus").getAsInt();
77
-                    sealSignRecord.setPsnsignStatus(psnsignStatus);
78
-                }
79
-            }
80
-            if(!(signerObject.get("orgSigner").toString()).equals("null")){
81
-                JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
82
-                if(orgSignerData!=null){
83
-                    orgsignStatus = signerObject.get("signStatus").getAsInt();
84
-                    sealSignRecord.setOrgsignStatus(orgsignStatus);
85
-                }
86
-
87
-            }
88
-        }
89
-
90
-        System.out.println(signFlowDetailJsonObject);
67
+//        EsignHttpResponse signFlowDetail = signFlowDetail(sealSignRecord);
68
+//        JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(),JsonObject.class);
69
+//        JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
70
+//        JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
71
+//        for (int i = 0; i < signersArray.size(); i++) {
72
+//            JsonObject signerObject = (JsonObject)signersArray.get(i);
73
+//            Integer psnsignStatus ;
74
+//            Integer orgsignStatus ;
75
+//            if(!(signerObject.get("psnSigner").toString()).equals("null")){
76
+//                JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
77
+//                if(psnSignerData!=null){
78
+//                    psnsignStatus = signerObject.get("signStatus").getAsInt();
79
+//                    sealSignRecord.setPsnsignStatus(psnsignStatus);
80
+//                }
81
+//            }
82
+//            if(!(signerObject.get("orgSigner").toString()).equals("null")){
83
+//                JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
84
+//                if(orgSignerData!=null){
85
+//                    orgsignStatus = signerObject.get("signStatus").getAsInt();
86
+//                    sealSignRecord.setOrgsignStatus(orgsignStatus);
87
+//                }
88
+//
89
+//            }
90
+//        }
91
+
92
+//        System.out.println(signFlowDetailJsonObject);
91 93
 
92 94
 
93 95
     }

+ 3
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Wyświetl plik

@@ -128,7 +128,8 @@
128 128
             </if>
129 129
             <!--财务-->
130 130
             <if test="financeStatus != null and financeStatus != ''">
131
-                (t.identity_type=1 and t.case_status =#{financeStatus})
131
+                or  (t.identity_type=1 and t.case_status =#{financeStatus})
132
+
132 133
 
133 134
             </if>
134 135
         </where>
@@ -220,7 +221,7 @@
220 221
             </if>
221 222
             <!--财务-->
222 223
             <if test="financeStatus != null and financeStatus != ''">
223
-                ( t.identity_type=1 and t.case_status =#{financeStatus})
224
+             or   ( t.identity_type=1 and t.case_status =#{financeStatus})
224 225
 
225 226
             </if>
226 227
         </where>