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

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

hejinbo 2 лет назад
Родитель
Сommit
5120c7c2d2

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

@@ -680,7 +680,7 @@ public class CaseApplication  extends BaseEntity {
680 680
     @Excel(name = "被申请人主体信息-身份证号",width = 26)
681 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 684
     private String responSex;
685 685
 
686 686
     public Date getResponBirth() {

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

@@ -115,6 +115,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
115 115
         Long userId = user.getUserId();
116 116
         // 查询登录人身份证号
117 117
         SysUser sysUser = sysUserMapper.selectUserById(userId);
118
+        startPage();
118 119
         // 已办案件
119 120
         if(caseApplication.getSelectCaseStatus().equals("1")){
120 121
             caseApplication.setLoginUserName(sysUser.getUserName());
@@ -125,7 +126,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
125 126
             if (CollectionUtil.isEmpty(roles)) {
126 127
                 throw new ServiceException("该用户没有角色权限");
127 128
             }
128
-            startPage();
129
+
129 130
             for (SysRole role : roles) {
130 131
                 // 超级管理员和仲裁委(部门长)案件,可查看所有案件 √
131 132
                 if (role.getRoleName().equals("超级管理员")
@@ -136,7 +137,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
136 137
                         || role.getRoleName().equals("部门长")) {
137 138
                     List<Integer> caseStatusList = new ArrayList<>();
138 139
                     caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
139
-                    caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
140 140
                     caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
141 141
                     caseApplication.setDeptHeadStatus(caseStatusList);
142 142
                 }
@@ -196,7 +196,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
196 196
                     ||role.getRoleName().equals("部门长")){
197 197
 
198 198
                 caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
199
-                caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION);
200 199
                 caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL);
201 200
                 caseApplication.setDeptHeadStatus(caseStatusList);
202 201
             }
@@ -258,7 +257,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
258 257
 //        caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
259 258
         caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD);
260 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 268
         CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CHECK_ARBITRATION_METHOD,"");
264 269
         return rows;
@@ -1699,8 +1704,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
1699 1704
                                                     JSONObject coordinateObj = coordinatesArray.getJSONObject(0);
1700 1705
                                                     double positionX = coordinateObj.getDoubleValue("positionX");
1701 1706
                                                     double positionY = coordinateObj.getDoubleValue("positionY");
1702
-//                                                    sealSignRecord.setPositionXorg(positionX+60);
1703
-                                                    sealSignRecord.setPositionXorg(positionX);
1707
+                                                    sealSignRecord.setPositionXorg(positionX+90);
1704 1708
                                                     sealSignRecord.setPositionYorg(positionY);
1705 1709
                                                 }
1706 1710
                                             }
@@ -2137,16 +2141,30 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2137 2141
             }
2138 2142
         }
2139 2143
 
2140
-        //发送短信通知
2144
+        //发送短信通知 1947342 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
2141 2145
         SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
2142 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 2162
         CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication);
2163
+
2145 2164
         String caseNum = caseApplicationselect.getCaseNum();
2146 2165
         Date hearDate = caseApplicationselect.getHearDate();
2147 2166
         SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
2148 2167
         String hearDatestr = dateFormat.format(hearDate);
2149
-
2150 2168
         String arbitratorId = caseApplicationselect.getArbitratorId();
2151 2169
 //        List<Arbitrator> arbitratorList = new ArrayList<>();
2152 2170
         if(StringUtils.isNotEmpty(arbitratorId)){
@@ -2171,7 +2189,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
2171 2189
                         smsSendRecord.setCaseNum(caseApplicationselect.getCaseNum());
2172 2190
                         smsSendRecord.setPhone(request.getPhone());
2173 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 2199
                         smsSendRecord.setSendContent(content);
2176 2200
                         smsSendRecord.setCreateBy(getUsername());
2177 2201
                         smsRecordMapper.saveSmsSendRecord(smsSendRecord);
@@ -2213,15 +2237,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
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 2243
     @Override
2226 2244
     @Transactional
2227 2245
     public int pendingAppointArbotrar(CaseApplication caseApplication) {

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

@@ -82,12 +82,7 @@
82 82
             <if test="loginUserName != null and loginUserName != ''">
83 83
                 AND r.create_by=#{loginUserName}  AND ca.identity_type=1
84 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 86
         </where>
92 87
         order by c.create_time desc,c.case_num desc
93 88
     </select>
@@ -150,7 +145,7 @@
150 145
             <!--仲裁员-->
151 146
             <if test="userId != null and userId != ''">
152 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 149
                 and
155 150
                 instr (t.arbitrator_id,#{userId})>0)
156 151
             </if>
@@ -238,7 +233,7 @@
238 233
             <!--仲裁员-->
239 234
             <if test="userId != null and userId != ''">
240 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 237
                 and
243 238
                 instr (t.arbitrator_id,#{userId})>0)
244 239
             </if>
@@ -600,7 +595,7 @@ order by c.create_time desc limit 1
600 595
                CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
601 596
         from case_application c left join case_payment_record p on c.id  = p.case_id
602 597
         where c.case_status  = 3
603
-          AND c.id = #{id}
598
+          AND c.id = #{id} and p.payment_status=1
604 599
 
605 600
     </select>
606 601
     <select id="selectCaseNumLike" resultType="java.lang.Integer">

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

@@ -25,8 +25,8 @@
25 25
             cl.create_by createBy,cl.create_nick_name createNickName,cl.create_time createTime,cl.update_by updateBy,cl.update_time updateTime,
26 26
         CASE cl.case_node when 0 then '立案申请' when 1 then '提交立案申请' when 2 then '立案审查'
27 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 30
         when 12 then '核验裁决书' when 13 then '同意裁决书' when 14 then '签名成功'
31 31
         when 15 then '用印成功' when 16 then '送达仲裁文书' when 17 then '案件归档'
32 32
         when 26 then '证据确认成功'