Bläddra i källkod

角色查询案件

18792927508 2 år sedan
förälder
incheckning
54ee01cb77

+ 4
- 4
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java Visa fil

397
                 agentUser.setNickName(caseAffiliate.getNameAgent());
397
                 agentUser.setNickName(caseAffiliate.getNameAgent());
398
                 agentUser.setUserName(caseAffiliate.getIdentityNumAgent());
398
                 agentUser.setUserName(caseAffiliate.getIdentityNumAgent());
399
                 agentUser.setPhonenumber(caseAffiliate.getContactTelphoneAgent());
399
                 agentUser.setPhonenumber(caseAffiliate.getContactTelphoneAgent());
400
-                agentUser.setPassword(SecurityUtils.encryptPassword(Constants.DEFAULT_PASSWORD));
400
+             //   agentUser.setPassword(SecurityUtils.encryptPassword(Constants.DEFAULT_PASSWORD));
401
                 agentUser.setDeptId(Long.valueOf(caseAffiliate.getApplicationOrganId()));
401
                 agentUser.setDeptId(Long.valueOf(caseAffiliate.getApplicationOrganId()));
402
                 int insertUserRow = sysUserMapper.insertUser(agentUser);
402
                 int insertUserRow = sysUserMapper.insertUser(agentUser);
403
                 // 新增角色为申请人
403
                 // 新增角色为申请人
411
                 }
411
                 }
412
                 if (insertUserRow > 0) {
412
                 if (insertUserRow > 0) {
413
                     caseAffiliate.setApplicantAgentUserId(String.valueOf(agentUser.getUserId()));
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
                     SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
415
                     SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
416
-                    request.setTemplateId("1955400");
416
+                    request.setTemplateId("1956159");
417
                     request.setPhone(agentUser.getPhonenumber());
417
                     request.setPhone(agentUser.getPhonenumber());
418
                     request.setTemplateParamSet(new String[]{agentUser.getNickName()});
418
                     request.setTemplateParamSet(new String[]{agentUser.getNickName()});
419
                     SmsUtils.sendSms(request);
419
                     SmsUtils.sendSms(request);
420
                 }
420
                 }
421
             } else if (null != agentUser.getDeptId() && !String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())) {
421
             } else if (null != agentUser.getDeptId() && !String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())) {
422
-                return "申请机构与申请代理人不匹配";
422
+                return "该申请代理人已存在,与申请机构不匹配";
423
             } else if (null != agentUser.getDeptId() && String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())){
423
             } else if (null != agentUser.getDeptId() && String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())){
424
                 // 同步用户表和案件关联人表的手机号和名称
424
                 // 同步用户表和案件关联人表的手机号和名称
425
                 caseAffiliate.setContactTelphoneAgent(agentUser.getPhonenumber());
425
                 caseAffiliate.setContactTelphoneAgent(agentUser.getPhonenumber());

+ 9
- 8
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml Visa fil

96
 
96
 
97
             <!--被申请人-->
97
             <!--被申请人-->
98
             <if test="idCard != null and idCard != ''">
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
             </if>
100
             </if>
101
             <!--仲裁员-->
101
             <!--仲裁员-->
102
             <if test="userId != null and userId != ''">
102
             <if test="userId != null and userId != ''">
103
                 or ( t.identity_type=1 and
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
                 and
105
                 and
106
                 instr (t.arbitrator_id,#{userId})>0)
106
                 instr (t.arbitrator_id,#{userId})>0)
107
             </if>
107
             </if>
108
             <!--法律顾问-->
108
             <!--法律顾问-->
109
             <if test="deptIds != null and deptIds.size() > 0">
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
                 and t.application_organ_id in
111
                 and t.application_organ_id in
112
                 <foreach item="item" collection="deptIds" open="(" separator="," close=")">
112
                 <foreach item="item" collection="deptIds" open="(" separator="," close=")">
113
                     #{item}
113
                     #{item}
117
             <!--申请人-->
117
             <!--申请人-->
118
             <if test="nameId != null and nameId != ''">
118
             <if test="nameId != null and nameId != ''">
119
                 or ( t.application_organ_id = #{nameId} AND t.identity_type=1
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
             </if>
122
             </if>
123
             <!--部门长-->
123
             <!--部门长-->
132
 
132
 
133
 
133
 
134
             </if>
134
             </if>
135
+
135
         </where>
136
         </where>
136
         ) t1
137
         ) t1
137
 
138
 
182
 
183
 
183
             <!--被申请人-->
184
             <!--被申请人-->
184
             <if test="idCard != null and idCard != ''">
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
             </if>
187
             </if>
187
             <!--仲裁员-->
188
             <!--仲裁员-->
188
             <if test="userId != null and userId != ''">
189
             <if test="userId != null and userId != ''">
189
                 or ( t.identity_type=1 and
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
                 and
192
                 and
192
                 instr (t.arbitrator_id,#{userId})>0)
193
                 instr (t.arbitrator_id,#{userId})>0)
193
             </if>
194
             </if>
194
             <!--法律顾问-->
195
             <!--法律顾问-->
195
             <if test="deptIds != null and deptIds.size() > 0">
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
                 and t.application_organ_id in
198
                 and t.application_organ_id in
198
                 <foreach item="item" collection="deptIds" open="(" separator="," close=")">
199
                 <foreach item="item" collection="deptIds" open="(" separator="," close=")">
199
                     #{item}
200
                     #{item}
202
             <!--申请人-->
203
             <!--申请人-->
203
             <if test="nameId != null and nameId != ''">
204
             <if test="nameId != null and nameId != ''">
204
                 or ( t.application_organ_id = #{nameId} AND t.identity_type=1
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
             </if>
208
             </if>
208
             <!--部门长-->
209
             <!--部门长-->