Browse Source

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

qtz 2 years ago
parent
commit
b5fb2f1243

+ 9
- 6
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java View File

211
     @Override
211
     @Override
212
     public int insertDept(SysDept dept)
212
     public int insertDept(SysDept dept)
213
     {
213
     {
214
-        SysDept info = deptMapper.selectDeptById(dept.getParentId());
215
-        // 如果父节点不为正常状态,则不允许新增子节点
216
-        if (!UserConstants.DEPT_NORMAL.equals(info.getStatus()))
217
-        {
218
-            throw new ServiceException("部门停用,不允许新增");
214
+        Long parentId = dept.getParentId();
215
+        if(parentId!=null){
216
+            SysDept info = deptMapper.selectDeptById(dept.getParentId());
217
+            // 如果父节点不为正常状态,则不允许新增子节点
218
+            if (!UserConstants.DEPT_NORMAL.equals(info.getStatus()))
219
+            {
220
+                throw new ServiceException("部门停用,不允许新增");
221
+            }
222
+            dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
219
         }
223
         }
220
-        dept.setAncestors(info.getAncestors() + "," + dept.getParentId());
221
         return deptMapper.insertDept(dept);
224
         return deptMapper.insertDept(dept);
222
     }
225
     }
223
 
226
 

+ 1
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java View File

609
     /** 联系地址 */
609
     /** 联系地址 */
610
     @Excel(name = "申请人主体信息-联系地址",width = 26)
610
     @Excel(name = "申请人主体信息-联系地址",width = 26)
611
     private String contactAddress;
611
     private String contactAddress;
612
+
612
     /** 单位电话 */
613
     /** 单位电话 */
613
     @Excel(name = "申请人主体信息-单位电话",width = 26)
614
     @Excel(name = "申请人主体信息-单位电话",width = 26)
614
     private String workTelphone;
615
     private String workTelphone;

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

2100
     @Transactional
2100
     @Transactional
2101
     public int pendTralSure(CaseApplication caseApplication) {
2101
     public int pendTralSure(CaseApplication caseApplication) {
2102
 //        caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
2102
 //        caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
2103
+
2103
         caseApplication.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
2104
         caseApplication.setCaseStatus(CaseApplicationConstants.MODIFY_HEARDATE);
2104
-        int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2105
+        Integer isAgreePendTral = caseApplication.getIsAgreePendTral();
2106
+        int rows = 0;
2107
+        //同意组庭
2108
+        if(isAgreePendTral!=null&&isAgreePendTral==1){
2109
+            rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2110
+        }else {
2111
+            List<Arbitrator> arbitrators = caseApplication.getArbitrators();
2112
+            // 仲裁员信息
2113
+            if(arbitrators!=null&&arbitrators.size()>0){
2114
+                List<Long> ids = arbitrators.stream().map(Arbitrator::getId).collect(Collectors.toList());
2115
+                List<String> arbitratorNames = arbitrators.stream().map(Arbitrator::getArbitratorName).collect(Collectors.toList());
2116
+                String idstr = ids.stream().map(Object::toString).collect(Collectors.joining(","));
2117
+                String arbitratorNamestr = arbitratorNames.stream().map(Object::toString).collect(Collectors.joining(","));
2118
+                caseApplication.setArbitratorId(idstr);
2119
+                caseApplication.setArbitratorName(arbitratorNamestr);
2120
+                rows = caseApplicationMapper.submitCaseApplication(caseApplication);
2121
+            }
2122
+        }
2105
 
2123
 
2106
         //发送短信通知
2124
         //发送短信通知
2107
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
2125
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();

+ 3
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java View File

77
                     caseApplication.setId(sealSignRecord.getCaseAppliId());
77
                     caseApplication.setId(sealSignRecord.getCaseAppliId());
78
 
78
 
79
                     CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
79
                     CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
80
-                    if(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.SIGN_ARBITRATION){
80
+                    if((caseApplicationselect.getCaseStatus()!=null)&&(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.SIGN_ARBITRATION)){
81
                         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
81
                         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
82
                         caseApplicationMapper.submitCaseApplication(caseApplication);
82
                         caseApplicationMapper.submitCaseApplication(caseApplication);
83
 
83
 
85
                         sealSignRecord.setSignFlowStatus(2);
85
                         sealSignRecord.setSignFlowStatus(2);
86
                         sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
86
                         sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
87
                     }
87
                     }
88
-
89
-
90
                 }
88
                 }
91
                 if((psnsignStatus.intValue()==2)&&(orgsignStatus.intValue()==2)){
89
                 if((psnsignStatus.intValue()==2)&&(orgsignStatus.intValue()==2)){
92
                     //更新立案申请状态为待送达
90
                     //更新立案申请状态为待送达
94
                     caseApplication.setId(sealSignRecord.getCaseAppliId());
92
                     caseApplication.setId(sealSignRecord.getCaseAppliId());
95
 
93
 
96
                     CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
94
                     CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
97
-                    if(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.ARBITRATED_SEAL){
95
+                    if((caseApplicationselect.getCaseStatus()!=null)&&(caseApplicationselect.getCaseStatus().intValue()==CaseApplicationConstants.ARBITRATED_SEAL)){
98
                         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
96
                         caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
99
                         //下载审核完成的裁决书,
97
                         //下载审核完成的裁决书,
100
                         String signFlowId = sealSignRecord.getSignFlowid();
98
                         String signFlowId = sealSignRecord.getSignFlowid();
115
 
113
 
116
                         }
114
                         }
117
                     }
115
                     }
116
+
118
                 }
117
                 }
119
             }
118
             }
120
 
119
 

+ 3
- 2
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml View File

9
 		<result property="parentId"   column="parent_id"   />
9
 		<result property="parentId"   column="parent_id"   />
10
 		<result property="ancestors"  column="ancestors"   />
10
 		<result property="ancestors"  column="ancestors"   />
11
 		<result property="deptName"   column="dept_name"   />
11
 		<result property="deptName"   column="dept_name"   />
12
+		<result property="deptType"   column="dept_type"   />
12
 		<result property="orderNum"   column="order_num"   />
13
 		<result property="orderNum"   column="order_num"   />
13
 		<result property="leader"     column="leader"      />
14
 		<result property="leader"     column="leader"      />
14
 		<result property="phone"      column="phone"       />
15
 		<result property="phone"      column="phone"       />
23
 	</resultMap>
24
 	</resultMap>
24
 	
25
 	
25
 	<sql id="selectDeptVo">
26
 	<sql id="selectDeptVo">
26
-        select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time 
27
+        select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.dept_type,d.order_num, d.leader, d.phone, d.email, d.status, d.del_flag, d.create_by, d.create_time
27
         from sys_dept d
28
         from sys_dept d
28
     </sql>
29
     </sql>
29
     
30
     
59
 	</select>
60
 	</select>
60
     
61
     
61
     <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
62
     <select id="selectDeptById" parameterType="Long" resultMap="SysDeptResult">
62
-		select d.dept_id, d.parent_id, d.ancestors, d.dept_name, d.order_num, d.leader, d.phone, d.email, d.status,
63
+		select d.dept_id, d.parent_id, d.ancestors, d.dept_name,d.dept_type, d.order_num, d.leader, d.phone, d.email, d.status,
63
 			(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
64
 			(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
64
 		from sys_dept d
65
 		from sys_dept d
65
 		where d.dept_id = #{deptId}
66
 		where d.dept_id = #{deptId}

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml View File

97
         contact_telphone_agent = #{contactTelphoneAgent},
97
         contact_telphone_agent = #{contactTelphoneAgent},
98
         contact_address_agent = #{contactAddressAgent},
98
         contact_address_agent = #{contactAddressAgent},
99
         send_email = #{sendEmail},
99
         send_email = #{sendEmail},
100
+        residen_affili = #{residenAffili},
100
         track_num = #{trackNum}
101
         track_num = #{trackNum}
101
 
102
 
102
         where id = #{id}
103
         where id = #{id}