瀏覽代碼

Merge branch 'dev' of http://git.xayunmei.com/SH-Arbitrate/Arbitrate-Backend into hjb

hejinbo 2 年之前
父節點
當前提交
5120c7c2d2

+ 1
- 1
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java 查看文件

680
     @Excel(name = "被申请人主体信息-身份证号",width = 26)
680
     @Excel(name = "被申请人主体信息-身份证号",width = 26)
681
     private String debtorIdentityNum;
681
     private String debtorIdentityNum;
682
     /** 被申请人主体信息-性别 */
682
     /** 被申请人主体信息-性别 */
683
-    @Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,女=1")
683
+    @Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,1=女")
684
     private String responSex;
684
     private String responSex;
685
 
685
 
686
     public Date getResponBirth() {
686
     public Date getResponBirth() {

+ 32
- 14
ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java 查看文件

115
         Long userId = user.getUserId();
115
         Long userId = user.getUserId();
116
         // 查询登录人身份证号
116
         // 查询登录人身份证号
117
         SysUser sysUser = sysUserMapper.selectUserById(userId);
117
         SysUser sysUser = sysUserMapper.selectUserById(userId);
118
+        startPage();
118
         // 已办案件
119
         // 已办案件
119
         if(caseApplication.getSelectCaseStatus().equals("1")){
120
         if(caseApplication.getSelectCaseStatus().equals("1")){
120
             caseApplication.setLoginUserName(sysUser.getUserName());
121
             caseApplication.setLoginUserName(sysUser.getUserName());
125
             if (CollectionUtil.isEmpty(roles)) {
126
             if (CollectionUtil.isEmpty(roles)) {
126
                 throw new ServiceException("该用户没有角色权限");
127
                 throw new ServiceException("该用户没有角色权限");
127
             }
128
             }
128
-            startPage();
129
+
129
             for (SysRole role : roles) {
130
             for (SysRole role : roles) {
130
                 // 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
131
                 // 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
131
                 if (role.getRoleName().equals("超级管理员")
132
                 if (role.getRoleName().equals("超级管理员")
136
                         || role.getRoleName().equals("部门长")) {
137
                         || role.getRoleName().equals("部门长")) {
137
                     List<Integer> caseStatusList = new ArrayList<>();
138
                     List<Integer> caseStatusList = new ArrayList<>();
138
                     caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
139
                     caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
139
-                    caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
140
                     caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
140
                     caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
141
                     caseApplication.setDeptHeadStatus(caseStatusList);
141
                     caseApplication.setDeptHeadStatus(caseStatusList);
142
                 }
142
                 }
196
                     ||role.getRoleName().equals("部门长")){
196
                     ||role.getRoleName().equals("部门长")){
197
 
197
 
198
                 caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
198
                 caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
199
-                caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
200
                 caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
199
                 caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
201
                 caseApplication.setDeptHeadStatus(caseStatusList);
200
                 caseApplication.setDeptHeadStatus(caseStatusList);
202
             }
201
             }
258
 //        caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
257
 //        caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
259
         caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
258
         caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
260
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
259
         int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
260
+       //1975139	修改开庭时间通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已改为{3},请知晓,如非本人操作,请忽略本短信
261
+        //发送短信通知
262
+        SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
263
+        request.setTemplateId("1975139");
261
 
264
 
265
+        // 发送开庭日期通知短信
266
+        sendHearDateMessage(caseApplication,request,"1975139");
262
         // 新增日志
267
         // 新增日志
263
         CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CHECK_ARBITRATION_METHOD,"");
268
         CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CHECK_ARBITRATION_METHOD,"");
264
         return rows;
269
         return rows;
1699
                                                     JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
1704
                                                     JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
1700
                                                     double positionX = coordinateObj.getDoubleValue("positionX");
1705
                                                     double positionX = coordinateObj.getDoubleValue("positionX");
1701
                                                     double positionY = coordinateObj.getDoubleValue("positionY");
1706
                                                     double positionY = coordinateObj.getDoubleValue("positionY");
1702
-//                                                    sealSignRecord.setPositionXorg(positionX+60);
1703
-                                                    sealSignRecord.setPositionXorg(positionX);
1707
+                                                    sealSignRecord.setPositionXorg(positionX+90);
1704
                                                     sealSignRecord.setPositionYorg(positionY);
1708
                                                     sealSignRecord.setPositionYorg(positionY);
1705
                                                 }
1709
                                                 }
1706
                                             }
1710
                                             }
2137
             }
2141
             }
2138
         }
2142
         }
2139
 
2143
 
2140
-        //发送短信通知
2144
+        //发送短信通知 1947342 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
2141
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
2145
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
2142
         request.setTemplateId("1947342");
2146
         request.setTemplateId("1947342");
2147
+        // 发送开庭日期通知短信
2148
+        sendHearDateMessage(caseApplication,request,"1947342");
2149
+        // 新增日志
2150
+        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.MODIFY_HEARDATE,"");
2143
 
2151
 
2152
+        return rows;
2153
+
2154
+    }
2155
+
2156
+    /**
2157
+     * 发送开庭日期通知短信
2158
+     * @param caseApplication
2159
+     * @param request
2160
+     */
2161
+    private void sendHearDateMessage(CaseApplication caseApplication, SmsUtils.SendSmsRequest request,String templateId) {
2144
         CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
2162
         CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
2163
+
2145
         String caseNum = caseApplicationselect.getCaseNum();
2164
         String caseNum = caseApplicationselect.getCaseNum();
2146
         Date hearDate = caseApplicationselect.getHearDate();
2165
         Date hearDate = caseApplicationselect.getHearDate();
2147
         SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
2166
         SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
2148
         String hearDatestr = dateFormat.format(hearDate);
2167
         String hearDatestr = dateFormat.format(hearDate);
2149
-
2150
         String arbitratorId = caseApplicationselect.getArbitratorId();
2168
         String arbitratorId = caseApplicationselect.getArbitratorId();
2151
 //        List<Arbitrator> arbitratorList = new ArrayList<>();
2169
 //        List<Arbitrator> arbitratorList = new ArrayList<>();
2152
         if(StringUtils.isNotEmpty(arbitratorId)){
2170
         if(StringUtils.isNotEmpty(arbitratorId)){
2171
                         smsSendRecord.setCaseNum(caseApplicationselect.getCaseNum());
2189
                         smsSendRecord.setCaseNum(caseApplicationselect.getCaseNum());
2172
                         smsSendRecord.setPhone(request.getPhone());
2190
                         smsSendRecord.setPhone(request.getPhone());
2173
                         smsSendRecord.setSendTime(new Date());
2191
                         smsSendRecord.setSendTime(new Date());
2174
-                        String content="尊敬的"+name+"用户,您的"+caseNum+"仲裁案件,开庭日期已确定为"+hearDatestr+",请知晓,如非本人操作,请忽略本短信。";
2192
+                        String content="";
2193
+                        if(templateId.equals("1947342")) {
2194
+                             content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,开庭日期已确定为" + hearDatestr + ",请知晓,如非本人操作,请忽略本短信。";
2195
+                        }
2196
+                        if(templateId.equals("1975139")) {
2197
+                            content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,开庭日期已改为" + hearDatestr + ",请知晓,如非本人操作,请忽略本短信。";
2198
+                        }
2175
                         smsSendRecord.setSendContent(content);
2199
                         smsSendRecord.setSendContent(content);
2176
                         smsSendRecord.setCreateBy(getUsername());
2200
                         smsSendRecord.setCreateBy(getUsername());
2177
                         smsRecordMapper.saveSmsSendRecord(smsSendRecord);
2201
                         smsRecordMapper.saveSmsSendRecord(smsSendRecord);
2213
                 }
2237
                 }
2214
             }
2238
             }
2215
         }
2239
         }
2216
-        // 新增日志
2217
-        CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.MODIFY_HEARDATE,"");
2218
-
2219
-        return rows;
2220
-
2221
     }
2240
     }
2222
 
2241
 
2223
 
2242
 
2224
-
2225
     @Override
2243
     @Override
2226
     @Transactional
2244
     @Transactional
2227
     public int pendingAppointArbotrar(CaseApplication caseApplication) {
2245
     public int pendingAppointArbotrar(CaseApplication caseApplication) {

+ 4
- 9
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml 查看文件

82
             <if test="loginUserName != null and loginUserName != ''">
82
             <if test="loginUserName != null and loginUserName != ''">
83
                 AND r.create_by=#{loginUserName}  AND ca.identity_type=1
83
                 AND r.create_by=#{loginUserName}  AND ca.identity_type=1
84
             </if>
84
             </if>
85
-            <if test="caseStatusList != null and caseStatusList.size() > 0">
86
-                and r.case_node in
87
-                <foreach item="caseStatus" collection="caseStatusList" open="(" separator="," close=")">
88
-                    #{caseStatus}
89
-                </foreach>
90
-            </if>
85
+
91
         </where>
86
         </where>
92
         order by c.create_time desc,c.case_num desc
87
         order by c.create_time desc,c.case_num desc
93
     </select>
88
     </select>
150
             <!--仲裁员-->
145
             <!--仲裁员-->
151
             <if test="userId != null and userId != ''">
146
             <if test="userId != null and userId != ''">
152
                 or ( t.identity_type=1 and
147
                 or ( t.identity_type=1 and
153
-                t.case_status in (7,8,9,12,13,14,17)
148
+                t.case_status in (7,8,9,12,13,17)
154
                 and
149
                 and
155
                 instr (t.arbitrator_id,#{userId})>0)
150
                 instr (t.arbitrator_id,#{userId})>0)
156
             </if>
151
             </if>
238
             <!--仲裁员-->
233
             <!--仲裁员-->
239
             <if test="userId != null and userId != ''">
234
             <if test="userId != null and userId != ''">
240
                 or ( t.identity_type=1 and
235
                 or ( t.identity_type=1 and
241
-                t.case_status in (7,8,9,12,13,14,17)
236
+                t.case_status in (7,8,9,12,13,17)
242
                 and
237
                 and
243
                 instr (t.arbitrator_id,#{userId})>0)
238
                 instr (t.arbitrator_id,#{userId})>0)
244
             </if>
239
             </if>
600
                CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
595
                CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
601
         from case_application c left join case_payment_record p on c.id  = p.case_id
596
         from case_application c left join case_payment_record p on c.id  = p.case_id
602
         where c.case_status  = 3
597
         where c.case_status  = 3
603
-          AND c.id = #{id}
598
+          AND c.id = #{id} and p.payment_status=1
604
 
599
 
605
     </select>
600
     </select>
606
     <select id="selectCaseNumLike" resultType="java.lang.Integer">
601
     <select id="selectCaseNumLike" resultType="java.lang.Integer">

+ 2
- 2
ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseLogRecordMapper.xml 查看文件

25
             cl.create_by createBy,cl.create_nick_name createNickName,cl.create_time createTime,cl.update_by updateBy,cl.update_time updateTime,
25
             cl.create_by createBy,cl.create_nick_name createNickName,cl.create_time createTime,cl.update_by updateBy,cl.update_time updateTime,
26
         CASE cl.case_node when 0 then '立案申请' when 1 then '提交立案申请' when 2 then '立案审查'
26
         CASE cl.case_node when 0 then '立案申请' when 1 then '提交立案申请' when 2 then '立案审查'
27
         when 3 then '支付成功' when 4 then '缴费确认' when 5 then '案件质证'
27
         when 3 then '支付成功' when 4 then '缴费确认' when 5 then '案件质证'
28
-        when 6 then '组庭审核' when 7 then '组庭确认' when 8 then '审核仲裁方式'
29
-        when 9 then '开庭审理' when 10 then '书面审理' when 11 then '生成裁決书'
28
+        when 6 then '组庭审核' when 7 then '组庭确认' when 8 then '当前仲裁方式为开庭审理'
29
+        when 9 then '当前仲裁方式为书面审理' when 10 then '书面审理' when 11 then '生成裁決书'
30
         when 12 then '核验裁决书' when 13 then '同意裁决书' when 14 then '签名成功'
30
         when 12 then '核验裁决书' when 13 then '同意裁决书' when 14 then '签名成功'
31
         when 15 then '用印成功' when 16 then '送达仲裁文书' when 17 then '案件归档'
31
         when 15 then '用印成功' when 16 then '送达仲裁文书' when 17 then '案件归档'
32
         when 26 then '证据确认成功'
32
         when 26 then '证据确认成功'