Просмотр исходного кода

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

qtz 2 лет назад
Родитель
Сommit
b5fb2f1243

+ 9
- 6
ruoyi-system/src/main/java/com/ruoyi/system/service/impl/SysDeptServiceImpl.java Просмотреть файл

@@ -211,13 +211,16 @@ public class SysDeptServiceImpl implements ISysDeptService
211 211
     @Override
212 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 224
         return deptMapper.insertDept(dept);
222 225
     }
223 226
 

+ 1
- 0
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java Просмотреть файл

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

+ 19
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Просмотреть файл

@@ -2100,8 +2100,26 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2100 2100
     @Transactional
2101 2101
     public int pendTralSure(CaseApplication caseApplication) {
2102 2102
 //        caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
2103
+
2103 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 2125
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();

+ 3
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/utils/FixSelectFlowDetailUtils.java Просмотреть файл

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

+ 3
- 2
ruoyi-system/src/main/resources/mapper/system/SysDeptMapper.xml Просмотреть файл

@@ -9,6 +9,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
9 9
 		<result property="parentId"   column="parent_id"   />
10 10
 		<result property="ancestors"  column="ancestors"   />
11 11
 		<result property="deptName"   column="dept_name"   />
12
+		<result property="deptType"   column="dept_type"   />
12 13
 		<result property="orderNum"   column="order_num"   />
13 14
 		<result property="leader"     column="leader"      />
14 15
 		<result property="phone"      column="phone"       />
@@ -23,7 +24,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
23 24
 	</resultMap>
24 25
 	
25 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 28
         from sys_dept d
28 29
     </sql>
29 30
     
@@ -59,7 +60,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
59 60
 	</select>
60 61
     
61 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 64
 			(select dept_name from sys_dept where dept_id = d.parent_id) parent_name
64 65
 		from sys_dept d
65 66
 		where d.dept_id = #{deptId}

+ 1
- 0
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseAffiliateMapper.xml Просмотреть файл

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