Browse Source

优化生成裁决书接口

qitz 2 years ago
parent
commit
3c5d45f4cf

+ 10
- 14
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseAffiliate.java View File

1
 package com.ruoyi.wisdomarbitrate.domain;
1
 package com.ruoyi.wisdomarbitrate.domain;
2
 
2
 
3
+import com.fasterxml.jackson.annotation.JsonFormat;
3
 import com.ruoyi.common.annotation.Excel;
4
 import com.ruoyi.common.annotation.Excel;
4
 import com.ruoyi.common.core.domain.BaseEntity;
5
 import com.ruoyi.common.core.domain.BaseEntity;
5
 
6
 
41
     /**
42
     /**
42
      * 被申请人出生年月日
43
      * 被申请人出生年月日
43
      */
44
      */
44
-    private String responBirth;
45
+    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
46
+    private Date responBirth;
45
 
47
 
46
-//    public Date getResponBirth() {
47
-//        return responBirth;
48
-//    }
49
-//
50
-//    public void setResponBirth(Date responBirth) {
51
-//        this.responBirth = responBirth;
52
-//    }
48
+    public Date getResponBirth() {
49
+        return responBirth;
50
+    }
51
+
52
+    public void setResponBirth(Date responBirth) {
53
+        this.responBirth = responBirth;
54
+    }
53
 
55
 
54
     public String getCompLegalPerson() {
56
     public String getCompLegalPerson() {
55
         return compLegalPerson;
57
         return compLegalPerson;
75
         this.responSex = responSex;
77
         this.responSex = responSex;
76
     }
78
     }
77
 
79
 
78
-    public String getResponBirth() {
79
-        return responBirth;
80
-    }
81
 
80
 
82
-    public void setResponBirth(String responBirth) {
83
-        this.responBirth = responBirth;
84
-    }
85
 
81
 
86
     /** 身份证号 */
82
     /** 身份证号 */
87
     @Excel(name = "身份证号")
83
     @Excel(name = "身份证号")

+ 11
- 7
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java View File

624
     /** 被申请人主体信息-性别 */
624
     /** 被申请人主体信息-性别 */
625
     @Excel(name = "被申请人主体信息-性别",width = 26)
625
     @Excel(name = "被申请人主体信息-性别",width = 26)
626
     private String responSex;
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
     @Excel(name = "被申请人主体信息-出生年月日",width = 26)
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
     public String getCompLegalPerson() {
641
     public String getCompLegalPerson() {
632
         return compLegalPerson;
642
         return compLegalPerson;
652
         this.responSex = responSex;
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
     @Excel(name = "被申请人主体信息-联系电话",width = 26)
668
     @Excel(name = "被申请人主体信息-联系电话",width = 26)

+ 1
- 2
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/AdjudicationServiceImpl.java View File

94
                         datas.put("resName", affiliate.getName());
94
                         datas.put("resName", affiliate.getName());
95
                         datas.put("resAddress", affiliate.getContactAddress());
95
                         datas.put("resAddress", affiliate.getContactAddress());
96
                         datas.put("resSex", affiliate.getResponSex());
96
                         datas.put("resSex", affiliate.getResponSex());
97
-//                        datas.put("resDateOfBirth", responBirthdatestr);
98
-                        datas.put("resDateOfBirth", "1987-03-05");
97
+                        datas.put("resDateOfBirth", affiliate.getResponBirth());
99
                         datas.put("resContactAddress", null);
98
                         datas.put("resContactAddress", null);
100
                     }
99
                     }
101
                 }
100
                 }

+ 16
- 16
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java View File

127
             ){
127
             ){
128
                 return caseApplicationMapper.selectAdminCaseApplicationList(caseApplication);
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
             if(role.getRoleName().equals("财务")){
141
             if(role.getRoleName().equals("财务")){
142
                 caseApplication.setFinanceStatus(CaseApplicationConstants.PENDING_PAYMENT_CONFIRM);
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
             if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){
149
             if(StrUtil.isEmpty(caseApplication.getNameId())&&role.getRoleName().equals("申请人")){
150
                 // 查询角色有关的用户部门
150
                 // 查询角色有关的用户部门
151
                 caseApplication.setNameId(String.valueOf(sysUser.getDeptId()));
151
                 caseApplication.setNameId(String.valueOf(sysUser.getDeptId()));

+ 1
- 6
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/SignAward.java View File

91
 
91
 
92
 //        System.out.println(signFlowDetailJsonObject);
92
 //        System.out.println(signFlowDetailJsonObject);
93
 
93
 
94
-//        String responBirth = "Wed Feb 03 00:00:00 CST 1988";
95
-        String responBirth = "2023-10-10 05:49:36";
96
-        Date responBirthdate= DateUtils.parseDate(responBirth);
97
-//        String responBirthdatestr= DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,responBirthdate);
98
-        String responBirthdatestr= DateUtils.parseDateToStr(DateUtils.YYYY_MM_DD,responBirthdate);
99
-        System.out.println(responBirthdatestr);
94
+
100
     }
95
     }
101
 
96
 
102
 
97
 

+ 2
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml View File

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