9.21日开发提交
This commit is contained in:
@@ -0,0 +1,165 @@
|
||||
package com.ruoyi.wisdomarbitrate.domain;
|
||||
|
||||
import lombok.Data;
|
||||
|
||||
@Data
|
||||
public class Adjudication {
|
||||
/**
|
||||
* 申请人姓名
|
||||
*/
|
||||
private String applicantName;
|
||||
/**
|
||||
* 申请人性别
|
||||
*/
|
||||
private String applicantSex;
|
||||
/**
|
||||
* 申请人身份证号码
|
||||
*/
|
||||
private String applicantIDNo;
|
||||
/**
|
||||
* 申请人住所
|
||||
*/
|
||||
private String appAddress;
|
||||
/**
|
||||
* 申请人邮编
|
||||
*/
|
||||
private String appZipCode;
|
||||
/**
|
||||
* 申请人组织名称
|
||||
*/
|
||||
private String appOrgName;
|
||||
/**
|
||||
* 申请人组织地址
|
||||
*/
|
||||
private String appOrgAddress;
|
||||
/**
|
||||
* 申请人法人姓名
|
||||
*/
|
||||
private String appLegalPerName;
|
||||
/**
|
||||
* 申请人法人职务
|
||||
*/
|
||||
private String appLegalPerJob;
|
||||
/**
|
||||
* 申请人代理人姓名
|
||||
*/
|
||||
private String appAgentName;
|
||||
/**
|
||||
* 申请人代理人性别
|
||||
*/
|
||||
private String appAgentSex;
|
||||
/**
|
||||
* 被申请人姓名
|
||||
*/
|
||||
private String resName;
|
||||
/**
|
||||
* 被申请人性别
|
||||
*/
|
||||
private String resSex;
|
||||
/**
|
||||
* 被申请人身份证号码
|
||||
*/
|
||||
private String resIDNo;
|
||||
/**
|
||||
* 被申请人住所
|
||||
*/
|
||||
private String resAddress;
|
||||
/**
|
||||
* 被申请人邮编
|
||||
*/
|
||||
private String resZipCode;
|
||||
/**
|
||||
* 被申请人组织名称
|
||||
*/
|
||||
private String resOrgName;
|
||||
/**
|
||||
* 被申请人组织地址
|
||||
*/
|
||||
private String resOrgAddress;
|
||||
/**
|
||||
* 被申请人法人姓名
|
||||
*/
|
||||
private String resLegalPerName;
|
||||
/**
|
||||
* 被申请人法人职务
|
||||
*/
|
||||
private String resLegalPerJob;
|
||||
/**
|
||||
* 被申请人代理人姓名
|
||||
*/
|
||||
private String resAgentName;
|
||||
/**
|
||||
* 被申请人代理人性别
|
||||
*/
|
||||
private String resAgentSex;
|
||||
/**
|
||||
* 第三人姓名
|
||||
*/
|
||||
private String thirdName;
|
||||
/**
|
||||
* 第三人性别
|
||||
*/
|
||||
private String thirdSex;
|
||||
|
||||
/**
|
||||
* 第三人身份证
|
||||
*/
|
||||
private String thirdDNo;
|
||||
/**
|
||||
* 第三人住所
|
||||
*/
|
||||
private String thirdAddress;
|
||||
/**
|
||||
* 第三人邮编
|
||||
*/
|
||||
private String thirdZipCode;
|
||||
/**
|
||||
* 第三人组织名称
|
||||
*/
|
||||
private String thirdOrgName;
|
||||
/**
|
||||
* 第三人组织地址
|
||||
*/
|
||||
private String thirdOrgAddress;
|
||||
/**
|
||||
* 第三人法人姓名
|
||||
*/
|
||||
private String thirdLegalPerName;
|
||||
/**
|
||||
* 第三人法人职务
|
||||
*/
|
||||
private String thirdLegalPerJob;
|
||||
/**
|
||||
* 第三人代理人姓名
|
||||
*/
|
||||
private String thirdAgentName;
|
||||
/**
|
||||
* 第三人代理人性别
|
||||
*/
|
||||
private String thirdAgentSex;
|
||||
/**
|
||||
* 案件描述
|
||||
*/
|
||||
private String caseDescribe;
|
||||
|
||||
/**
|
||||
* 仲裁员名称
|
||||
*/
|
||||
private String arbitratorName;
|
||||
/**
|
||||
* 开庭年
|
||||
*/
|
||||
private String hearYear;
|
||||
/**
|
||||
* 开庭月
|
||||
*/
|
||||
private String hearMonths;
|
||||
/**
|
||||
* 开庭日
|
||||
*/
|
||||
private String hearDay;
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package com.ruoyi.wisdomarbitrate.service;
|
||||
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
|
||||
public interface IAdjudicationService {
|
||||
AjaxResult createDocument(CaseApplication caseApplication);
|
||||
}
|
||||
+3
-1
@@ -5,7 +5,9 @@ import com.ruoyi.wisdomarbitrate.domain.ArbitrateRecord;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
|
||||
public interface ICaseArbitrateService {
|
||||
AjaxResult chooseArbitrateMethod(CaseApplication caseApplication,Integer arbitratMethod);
|
||||
|
||||
|
||||
AjaxResult writtenHear(ArbitrateRecord arbitrateRecord);
|
||||
|
||||
AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion);
|
||||
}
|
||||
|
||||
+46
@@ -0,0 +1,46 @@
|
||||
package com.ruoyi.wisdomarbitrate.service.impl;
|
||||
|
||||
import com.deepoove.poi.config.Configure;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.utils.WordUtil;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseAffiliate;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.CaseAffiliateMapper;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.CaseApplicationMapper;
|
||||
import com.ruoyi.wisdomarbitrate.service.IAdjudicationService;
|
||||
import org.apache.poi.xwpf.usermodel.*;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
|
||||
import java.io.FileInputStream;
|
||||
import java.io.FileOutputStream;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.util.HashMap;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
@Service
|
||||
public class AdjudicationServiceImpl implements IAdjudicationService {
|
||||
@Autowired
|
||||
private CaseApplicationMapper caseApplicationMapper;
|
||||
@Autowired
|
||||
private CaseAffiliateMapper caseAffiliateMapper;
|
||||
@Override
|
||||
public AjaxResult createDocument(CaseApplication caseApplication) {
|
||||
CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||
|
||||
try {
|
||||
Map<String, Object> datas = new HashMap<>();
|
||||
datas.put("1", "张三");
|
||||
String modalFilePath = "D:/develop/ceshi.docx";
|
||||
String fileName = UUID.randomUUID().toString().replace("-", "") + ".docx";
|
||||
String resultFilePath = "D:/data/" + fileName;
|
||||
String docFilePath = WordUtil.getDocFilePath(datas, modalFilePath, resultFilePath);
|
||||
return AjaxResult.success("裁决书保存路径为"+docFilePath);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace();
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
+49
-41
@@ -31,52 +31,60 @@ public class CaseArbitrateServiceImpl implements ICaseArbitrateService {
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public AjaxResult chooseArbitrateMethod(CaseApplication caseApplication, Integer arbitratMethod) {
|
||||
if (arbitratMethod != null) {
|
||||
String arbitratMethodStr = arbitratMethod == 1 ? "开庭审理" : "书面审理";
|
||||
//查询案件详细信息
|
||||
CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||
if (caseApplication1 == null) {
|
||||
return AjaxResult.error();
|
||||
public AjaxResult examineArbitrateMethod(CaseApplication caseApplication, Integer opinion) {
|
||||
//查询案件详细信息
|
||||
CaseApplication caseApplication1 = caseApplicationMapper.selectCaseApplication(caseApplication);
|
||||
if (caseApplication1 == null) {
|
||||
return AjaxResult.error();
|
||||
}
|
||||
int arbitratMethod = caseApplication1.getArbitratMethod();
|
||||
String caseNum = caseApplication1.getCaseNum();
|
||||
if (opinion==0){ //拒绝
|
||||
switch (arbitratMethod) {
|
||||
case 1:
|
||||
caseApplication1.setArbitratMethod(2); // 更改仲裁方式
|
||||
break;
|
||||
case 2:
|
||||
caseApplication1.setArbitratMethod(1);
|
||||
break;
|
||||
default:
|
||||
return AjaxResult.error();
|
||||
}
|
||||
String caseNum = caseApplication1.getCaseNum();
|
||||
//选择仲裁方式
|
||||
caseApplication.setArbitratMethod(arbitratMethod);
|
||||
//修改案件状态为待开庭
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
|
||||
int i = caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
if (i > 0) {
|
||||
//发送短信通知
|
||||
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||
request.setTemplateId("1931000");
|
||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
caseAffiliate.setCaseAppliId(caseApplication1.getId());
|
||||
List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate); //获取案件关联人信息
|
||||
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
||||
for (CaseAffiliate affiliate : caseAffiliates) {
|
||||
//获取身份类型
|
||||
int identityType = affiliate.getIdentityType();
|
||||
if (identityType == 1) { //申请人
|
||||
request.setPhone(affiliate.getContactTelphone());
|
||||
// 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
|
||||
// 1931000 普通短信 确定仲裁方式通知 尊敬的{1}用户,您的{2}仲裁案件,仲裁方式已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
||||
String name = affiliate.getName();
|
||||
request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
|
||||
SmsUtils.sendSms(request);
|
||||
} else { //被申请人
|
||||
request.setPhone(affiliate.getContactTelphone());
|
||||
// 模板id1928006 普通短信 案件应诉通知 尊敬的{1}用户,您的{2}案件{3}已成功受理,请点击https://phmapp.xayunmei.com选择是否应诉。
|
||||
String name = affiliate.getName();
|
||||
request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
|
||||
SmsUtils.sendSms(request);
|
||||
}
|
||||
}
|
||||
//修改案件状态为待开庭
|
||||
caseApplication1.setCaseStatus(CaseApplicationConstants.PENDING_OPENCOURT_HEAR);
|
||||
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
||||
if (i > 0) {
|
||||
String arbitratMethodStr = caseApplication1.getArbitratMethod() == 1 ? "开庭审理" : "书面审理";
|
||||
//发送短信通知
|
||||
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||
request.setTemplateId("1931000");
|
||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
caseAffiliate.setCaseAppliId(caseApplication1.getId());
|
||||
List<CaseAffiliate> caseAffiliates = caseAffiliateMapper.selectCaseAffiliate(caseAffiliate); //获取案件关联人信息
|
||||
if (caseAffiliates != null && caseAffiliates.size() > 0) {
|
||||
for (CaseAffiliate affiliate : caseAffiliates) {
|
||||
//获取身份类型
|
||||
int identityType = affiliate.getIdentityType();
|
||||
if (identityType == 1) { //申请人
|
||||
request.setPhone(affiliate.getContactTelphone());
|
||||
// 这个值,要看你的模板中是否预留了占位符,如果没有则不需要设置
|
||||
// 1931000 普通短信 确定仲裁方式通知 尊敬的{1}用户,您的{2}仲裁案件,仲裁方式已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
||||
String name = affiliate.getName();
|
||||
request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
|
||||
SmsUtils.sendSms(request);
|
||||
} else { //被申请人
|
||||
request.setPhone(affiliate.getContactTelphone());
|
||||
// 模板id1928006 普通短信 案件应诉通知 尊敬的{1}用户,您的{2}案件{3}已成功受理,请点击https://phmapp.xayunmei.com选择是否应诉。
|
||||
String name = affiliate.getName();
|
||||
request.setTemplateParamSet(new String[]{name, caseNum, arbitratMethodStr});
|
||||
SmsUtils.sendSms(request);
|
||||
}
|
||||
}
|
||||
return AjaxResult.success("选择成功");
|
||||
}
|
||||
|
||||
return AjaxResult.success("审核成功");
|
||||
}
|
||||
return AjaxResult.error("请选择开庭方式");
|
||||
return AjaxResult.error();
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
+6
@@ -151,6 +151,12 @@ public class CaseEvidenceServiceImpl implements ICaseEvidenceService {
|
||||
}
|
||||
//修改案件状态
|
||||
caseApplication1.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL_SUBMMIT);
|
||||
//选择仲裁方式
|
||||
if (caseEvidenceDTO.getOpenCourtHear()==1){ //开庭审理
|
||||
caseApplication1.setArbitratMethod(1);
|
||||
}else {
|
||||
caseApplication1.setArbitratMethod(2); //书面审理
|
||||
}
|
||||
int i = caseApplicationMapper.submitCaseApplication(caseApplication1);
|
||||
if (i > 0) {
|
||||
//案件日志表里添加数据
|
||||
|
||||
Reference in New Issue
Block a user