From d1d1b70d9b7e93fb5995f9d29e3498fa9f92f995 Mon Sep 17 00:00:00 2001 From: 18792927508 <1322446236@qq.com> Date: Thu, 2 Nov 2023 14:49:18 +0800 Subject: [PATCH 1/5] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=BC=80=E5=BA=AD?= =?UTF-8?q?=E6=97=B6=E9=97=B4=E6=97=B6=E5=8A=A0=E7=9F=AD=E4=BF=A1=E9=80=9A?= =?UTF-8?q?=E7=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../domain/CaseApplication.java | 2 +- .../impl/CaseApplicationServiceImpl.java | 41 ++++++++++++++----- .../wisdomarbitrate/CaseApplicationMapper.xml | 7 +--- 3 files changed, 33 insertions(+), 17 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java index ba27cbb..355ee58 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/domain/CaseApplication.java @@ -680,7 +680,7 @@ public class CaseApplication extends BaseEntity { @Excel(name = "被申请人主体信息-身份证号",width = 26) private String debtorIdentityNum; /** 被申请人主体信息-性别 */ - @Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,女=1") + @Excel(name = "被申请人主体信息-性别",width = 26,combo= {"男","女"},readConverterExp = "0=男,1=女") private String responSex; public Date getResponBirth() { diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java index 09907c2..c0c11a8 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java @@ -115,6 +115,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { Long userId = user.getUserId(); // 查询登录人身份证号 SysUser sysUser = sysUserMapper.selectUserById(userId); + startPage(); // 已办案件 if(caseApplication.getSelectCaseStatus().equals("1")){ caseApplication.setLoginUserName(sysUser.getUserName()); @@ -125,7 +126,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { if (CollectionUtil.isEmpty(roles)) { throw new ServiceException("该用户没有角色权限"); } - startPage(); + for (SysRole role : roles) { // 超级管理员和仲裁委(部门长)案件,可查看所有案件 √ if (role.getRoleName().equals("超级管理员") @@ -258,7 +259,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { // caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR); caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION_METHOD); int rows = caseApplicationMapper.submitCaseApplication(caseApplication); + //1975139 修改开庭时间通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已改为{3},请知晓,如非本人操作,请忽略本短信 + //发送短信通知 + SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest(); + request.setTemplateId("1975139"); + // 发送开庭日期通知短信 + sendHearDateMessage(caseApplication,request,"1975139"); // 新增日志 CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.CHECK_ARBITRATION_METHOD,""); return rows; @@ -2136,16 +2143,30 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { } } - //发送短信通知 + //发送短信通知 1947342 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。 SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest(); request.setTemplateId("1947342"); + // 发送开庭日期通知短信 + sendHearDateMessage(caseApplication,request,"1947342"); + // 新增日志 + CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.MODIFY_HEARDATE,""); + return rows; + + } + + /** + * 发送开庭日期通知短信 + * @param caseApplication + * @param request + */ + private void sendHearDateMessage(CaseApplication caseApplication, SmsUtils.SendSmsRequest request,String templateId) { CaseApplication caseApplicationselect = caseApplicationMapper.selectCaseApplication(caseApplication); + String caseNum = caseApplicationselect.getCaseNum(); Date hearDate = caseApplicationselect.getHearDate(); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String hearDatestr = dateFormat.format(hearDate); - String arbitratorId = caseApplicationselect.getArbitratorId(); // List arbitratorList = new ArrayList<>(); if(StringUtils.isNotEmpty(arbitratorId)){ @@ -2170,7 +2191,13 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { smsSendRecord.setCaseNum(caseApplicationselect.getCaseNum()); smsSendRecord.setPhone(request.getPhone()); smsSendRecord.setSendTime(new Date()); - String content="尊敬的"+name+"用户,您的"+caseNum+"仲裁案件,开庭日期已确定为"+hearDatestr+",请知晓,如非本人操作,请忽略本短信。"; + String content=""; + if(templateId.equals("1947342")) { + content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,开庭日期已确定为" + hearDatestr + ",请知晓,如非本人操作,请忽略本短信。"; + } + if(templateId.equals("1975139")) { + content = "尊敬的" + name + "用户,您的" + caseNum + "仲裁案件,开庭日期已改为" + hearDatestr + ",请知晓,如非本人操作,请忽略本短信。"; + } smsSendRecord.setSendContent(content); smsSendRecord.setCreateBy(getUsername()); smsRecordMapper.saveSmsSendRecord(smsSendRecord); @@ -2212,15 +2239,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { } } } - // 新增日志 - CaseLogUtils.insertCaseLog(caseApplication.getId(),CaseApplicationConstants.MODIFY_HEARDATE,""); - - return rows; - } - @Override @Transactional public int pendingAppointArbotrar(CaseApplication caseApplication) { diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml index b5a65b5..22a3369 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml @@ -82,12 +82,7 @@ AND r.create_by=#{loginUserName} AND ca.identity_type=1 - - and r.case_node in - - #{caseStatus} - - + order by c.create_time desc,c.case_num desc From eba2773a9d36421a5a6e71a764c9e7acf8874cc9 Mon Sep 17 00:00:00 2001 From: 18792927508 <1322446236@qq.com> Date: Thu, 2 Nov 2023 15:34:32 +0800 Subject: [PATCH 2/5] b --- .../service/impl/CaseApplicationServiceImpl.java | 2 -- .../mapper/wisdomarbitrate/CaseApplicationMapper.xml | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java index c0c11a8..cad7a7e 100644 --- a/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java +++ b/ruoyi-system/src/main/java/com/ruoyi/wisdomarbitrate/service/impl/CaseApplicationServiceImpl.java @@ -137,7 +137,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { || role.getRoleName().equals("部门长")) { List caseStatusList = new ArrayList<>(); caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL); - caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION); caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL); caseApplication.setDeptHeadStatus(caseStatusList); } @@ -197,7 +196,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService { ||role.getRoleName().equals("部门长")){ caseStatusList.add(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL); - caseStatusList.add(CaseApplicationConstants.SIGN_ARBITRATION); caseStatusList.add(CaseApplicationConstants.ARBITRATED_SEAL); caseApplication.setDeptHeadStatus(caseStatusList); } diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml index 22a3369..afa08a9 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml @@ -145,7 +145,7 @@ or ( t.identity_type=1 and - t.case_status in (7,8,9,12,13,14,17) + t.case_status in (7,8,9,12,13,17) and instr (t.arbitrator_id,#{userId})>0) @@ -233,7 +233,7 @@ or ( t.identity_type=1 and - t.case_status in (7,8,9,12,13,14,17) + t.case_status in (7,8,9,12,13,17) and instr (t.arbitrator_id,#{userId})>0) From 85e9240eee86cf8c2a11a8481fb29675b786f700 Mon Sep 17 00:00:00 2001 From: 18792927508 <1322446236@qq.com> Date: Thu, 2 Nov 2023 16:11:00 +0800 Subject: [PATCH 3/5] =?UTF-8?q?=E7=BC=B4=E8=B4=B9=E8=AF=A6=E6=83=85?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml index afa08a9..7bd95db 100644 --- a/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml +++ b/ruoyi-system/src/main/resources/mapper/wisdomarbitrate/CaseApplicationMapper.xml @@ -595,7 +595,7 @@ order by c.create_time desc limit 1 CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName from case_application c left join case_payment_record p on c.id = p.case_id where c.case_status = 3 - AND c.id = #{id} + AND c.id = #{id} and p.payment_status=1