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

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

wangqiong123 2 лет назад
Родитель
Сommit
b7ba367b70

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

@@ -397,7 +397,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
397 397
                 agentUser.setNickName(caseAffiliate.getNameAgent());
398 398
                 agentUser.setUserName(caseAffiliate.getIdentityNumAgent());
399 399
                 agentUser.setPhonenumber(caseAffiliate.getContactTelphoneAgent());
400
-                agentUser.setPassword(SecurityUtils.encryptPassword(Constants.DEFAULT_PASSWORD));
400
+             //   agentUser.setPassword(SecurityUtils.encryptPassword(Constants.DEFAULT_PASSWORD));
401 401
                 agentUser.setDeptId(Long.valueOf(caseAffiliate.getApplicationOrganId()));
402 402
                 int insertUserRow = sysUserMapper.insertUser(agentUser);
403 403
                 // 新增角色为申请人
@@ -411,15 +411,15 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
411 411
                 }
412 412
                 if (insertUserRow > 0) {
413 413
                     caseAffiliate.setApplicantAgentUserId(String.valueOf(agentUser.getUserId()));
414
-                    // 发送短信 1955400 普通短信 导入后通知申请人认证注册 尊敬的{1},您的申请的仲裁案件已导入,复制访问https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 进入小程序进行认证注册。如非本人操作,请忽略本短信 已生效
414
+                    // 明天改下模板id:1956159 普通短信 通知用户认证注册 尊敬的{1},您的代理的案件已接入仲裁系统,复制访问https://miniapp-3gpama6l759911ef-1321289474.tcloudbaseapp.com/jump-mp.html 进入小程序进行认证注册。如非本人操作,请忽略本短信
415 415
                     SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
416
-                    request.setTemplateId("1955400");
416
+                    request.setTemplateId("1956159");
417 417
                     request.setPhone(agentUser.getPhonenumber());
418 418
                     request.setTemplateParamSet(new String[]{agentUser.getNickName()});
419 419
                     SmsUtils.sendSms(request);
420 420
                 }
421 421
             } else if (null != agentUser.getDeptId() && !String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())) {
422
-                return "申请机构与申请代理人不匹配";
422
+                return "该申请代理人已存在,与申请机构不匹配";
423 423
             } else if (null != agentUser.getDeptId() && String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())){
424 424
                 // 同步用户表和案件关联人表的手机号和名称
425 425
                 caseAffiliate.setContactTelphoneAgent(agentUser.getPhonenumber());

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

@@ -96,18 +96,18 @@
96 96
 
97 97
             <!--被申请人-->
98 98
             <if test="idCard != null and idCard != ''">
99
-                or (t.identity_num=#{idCard} AND t.identity_type=2 and t.case_status=4)
99
+                or (t.identity_num=#{idCard} AND t.identity_type=2 and (t.case_status=4 or t.case_status=17))
100 100
             </if>
101 101
             <!--仲裁员-->
102 102
             <if test="userId != null and userId != ''">
103 103
                 or ( t.identity_type=1 and
104
-                t.case_status in (7,8,9,12,13,14)
104
+                t.case_status in (7,8,9,12,13,14,17)
105 105
                 and
106 106
                 instr (t.arbitrator_id,#{userId})>0)
107 107
             </if>
108 108
             <!--法律顾问-->
109 109
             <if test="deptIds != null and deptIds.size() > 0">
110
-                or (t.identity_type=1 and t.case_status in (1,5,11,15,16)
110
+                or (t.identity_type=1 and t.case_status in (1,5,11,15,16,17)
111 111
                 and t.application_organ_id in
112 112
                 <foreach item="item" collection="deptIds" open="(" separator="," close=")">
113 113
                     #{item}
@@ -117,7 +117,7 @@
117 117
             <!--申请人-->
118 118
             <if test="nameId != null and nameId != ''">
119 119
                 or ( t.application_organ_id = #{nameId} AND t.identity_type=1
120
-                and t.case_status in (0,2))
120
+                and t.case_status in (0,2,17))
121 121
 
122 122
             </if>
123 123
             <!--部门长-->
@@ -132,6 +132,7 @@
132 132
 
133 133
 
134 134
             </if>
135
+
135 136
         </where>
136 137
         ) t1
137 138
 
@@ -182,18 +183,18 @@
182 183
 
183 184
             <!--被申请人-->
184 185
             <if test="idCard != null and idCard != ''">
185
-                or (t.identity_num=#{idCard} AND t.identity_type=2 and t.case_status=4)
186
+                or (t.identity_num=#{idCard} AND t.identity_type=2 and (t.case_status=4 or t.case_status=17))
186 187
             </if>
187 188
             <!--仲裁员-->
188 189
             <if test="userId != null and userId != ''">
189 190
                 or ( t.identity_type=1 and
190
-                t.case_status in (7,8,9,12,13,14)
191
+                t.case_status in (7,8,9,12,13,14,17)
191 192
                 and
192 193
                 instr (t.arbitrator_id,#{userId})>0)
193 194
             </if>
194 195
             <!--法律顾问-->
195 196
             <if test="deptIds != null and deptIds.size() > 0">
196
-                or (t.identity_type=1 and t.case_status in (1,5,11,15,16)
197
+                or (t.identity_type=1 and t.case_status in (1,5,11,15,16,17)
197 198
                 and t.application_organ_id in
198 199
                 <foreach item="item" collection="deptIds" open="(" separator="," close=")">
199 200
                     #{item}
@@ -202,7 +203,7 @@
202 203
             <!--申请人-->
203 204
             <if test="nameId != null and nameId != ''">
204 205
                 or ( t.application_organ_id = #{nameId} AND t.identity_type=1
205
-                and t.case_status in (0,2))
206
+                and t.case_status in (0,2,17))
206 207
 
207 208
             </if>
208 209
             <!--部门长-->