整合最新的代码 #90
+4
-5
@@ -25,7 +25,6 @@ public class AdjudicationController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/document")
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:createaward')")
|
||||
public AjaxResult createDocument(@Validated @RequestBody CaseApplication caseApplication){
|
||||
return adjudicationService.createDocument(caseApplication);
|
||||
}
|
||||
@@ -58,7 +57,7 @@ public class AdjudicationController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/signature")
|
||||
@PreAuthorize("@ss.hasPermi('awardManagement:list:sign')")
|
||||
// @PreAuthorize("@ss.hasPermi('awardManagement:list:sign')")
|
||||
public AjaxResult signature(@Validated @RequestBody CaseApplication caseApplication){
|
||||
return adjudicationService.signature(caseApplication);
|
||||
}
|
||||
@@ -69,7 +68,7 @@ public class AdjudicationController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/caseFile")
|
||||
@PreAuthorize("@ss.hasPermi('awardManagement:list:file')")
|
||||
// @PreAuthorize("@ss.hasPermi('awardManagement:list:file')")
|
||||
public AjaxResult caseFile(@Validated @RequestBody CaseApplication caseApplication){
|
||||
return adjudicationService.caseFile(caseApplication);
|
||||
}
|
||||
@@ -80,7 +79,7 @@ public class AdjudicationController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/service")
|
||||
@PreAuthorize("@ss.hasPermi('awardManagement:list:sendaward')")
|
||||
// @PreAuthorize("@ss.hasPermi('awardManagement:list:sendaward')")
|
||||
public AjaxResult service(@RequestBody BookSendVO bookSendVO){
|
||||
return adjudicationService.service(bookSendVO.getId(),bookSendVO.getAppEmail(),bookSendVO.getResEmail(),bookSendVO.getApptrackingNum(),bookSendVO.getRestrackingNum());
|
||||
}
|
||||
@@ -90,7 +89,7 @@ public class AdjudicationController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/stamp")
|
||||
@PreAuthorize("@ss.hasPermi('awardManagement:list:signprint')")
|
||||
// @PreAuthorize("@ss.hasPermi('awardManagement:list:signprint')")
|
||||
public AjaxResult stamp(@Validated @RequestBody CaseApplication caseApplication){
|
||||
return adjudicationService.stamp(caseApplication);
|
||||
}
|
||||
|
||||
+16
-16
@@ -44,7 +44,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 新增立案数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:add')")
|
||||
@Log(title = "新增立案数据", businessType = BusinessType.INSERT)
|
||||
@PostMapping("/addCaseApplication")
|
||||
public AjaxResult addCaseApplication(@Validated @RequestBody CaseApplication caseApplication)
|
||||
@@ -57,7 +57,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 修改立案数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:update')")
|
||||
@Log(title = "修改立案数据", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/editCaseApplication")
|
||||
public AjaxResult editCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -69,7 +69,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 提交立案申请
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:submit')")
|
||||
@Log(title = "提交立案申请", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/submitCaseApplication")
|
||||
public AjaxResult submitCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -80,7 +80,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 删除立案数据
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:delete')")
|
||||
@Log(title = "删除立案数据", businessType = BusinessType.DELETE)
|
||||
@PostMapping("/removeCaseApplication")
|
||||
public AjaxResult removeCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -91,7 +91,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 查询立案信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
|
||||
@PostMapping("/selectCaseApplication")
|
||||
public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
|
||||
@@ -101,7 +101,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 查询签名链接
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSignUrl')")
|
||||
@PostMapping("/selectSignUrl")
|
||||
public AjaxResult selectSignUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
|
||||
SealSignRecord sealSignRecordselect = caseApplicationService.selectSignUrl(caseApplication);
|
||||
@@ -111,7 +111,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 查询用印链接
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:selectSealUrl')")
|
||||
@PostMapping("/selectSealUrl")
|
||||
public AjaxResult selectSealUrl(@Validated @RequestBody CaseApplication caseApplication) throws EsignDemoException {
|
||||
SealSignRecord sealUrlRecordselect = caseApplicationService.selectSealUrl(caseApplication);
|
||||
@@ -128,7 +128,7 @@ public class CaseApplicationController extends BaseController {
|
||||
}
|
||||
|
||||
@Log(title = "立案信息导入", businessType = BusinessType.IMPORT)
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:import')")
|
||||
@PostMapping("/importData")
|
||||
public AjaxResult importData(MultipartFile file) throws Exception {
|
||||
if(file==null){
|
||||
@@ -144,7 +144,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 组庭
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseApplication:pendTral')")
|
||||
@Log(title = "组庭", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/pendTral")
|
||||
public AjaxResult pendTral(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -154,7 +154,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 组庭审核
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:checkgroup')")
|
||||
@Log(title = "组庭审核", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/pendTralCheck")
|
||||
public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -164,7 +164,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 组庭确认
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:confirmgroup')")
|
||||
@Log(title = "组庭确认", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/pendTralSure")
|
||||
public AjaxResult pendTralSure(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -174,7 +174,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 核验裁决书
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseApplication:verificationArbitrateRecord')")
|
||||
@Log(title = "核验裁决书", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/verificationArbitrateRecord")
|
||||
public AjaxResult verificationArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -184,7 +184,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 审核裁决书
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseApplication:checkArbitrateRecord')")
|
||||
@Log(title = "审核裁决书", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/checkArbitrateRecord")
|
||||
public AjaxResult checkArbitrateRecord(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -195,7 +195,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 是否指派仲裁员
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseApplication:pendingAppointArbotrar')")
|
||||
@Log(title = "是否指派仲裁员", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/pendingAppointArbotrar")
|
||||
public AjaxResult pendingAppointArbotrar(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -205,7 +205,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 提交立案审查
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:check')")
|
||||
@Log(title = "提交立案审查", businessType = BusinessType.UPDATE)
|
||||
@PostMapping("/submitCaseApplicationCheck")
|
||||
public AjaxResult submitCaseApplicationCheck(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
@@ -216,7 +216,7 @@ public class CaseApplicationController extends BaseController {
|
||||
/**
|
||||
* 确认缴费查询立案信息
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
|
||||
// @PreAuthorize("@ss.hasPermi('paymentManagement:list:detail')")
|
||||
@PostMapping("/selectCaseApplicationConfirm")
|
||||
public AjaxResult selectCaseApplicationConfirm(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplicationConfirm(caseApplication);
|
||||
|
||||
+1
-2
@@ -23,7 +23,7 @@ public class CaseArbitrateController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PutMapping("/method")
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:checkarbitrationway')")
|
||||
public AjaxResult examineArbitrateMethod(@Validated @RequestBody CaseApplication caseApplication
|
||||
,Integer opinion){
|
||||
return caseArbitrateService.examineArbitrateMethod(caseApplication,opinion);
|
||||
@@ -35,7 +35,6 @@ public class CaseArbitrateController extends BaseController {
|
||||
* @return
|
||||
*/
|
||||
@PostMapping("/writtenHear")
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:hear')")
|
||||
public AjaxResult writtenHear(@Validated @RequestBody ArbitrateRecord arbitrateRecord){
|
||||
return caseArbitrateService.writtenHear(arbitrateRecord);
|
||||
}
|
||||
|
||||
+1
-1
@@ -22,7 +22,7 @@ public class CaseLogRecordController extends BaseController {
|
||||
/**
|
||||
* 查询案件日志列表
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseLog:list')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseLog:list')")
|
||||
@GetMapping("/list")
|
||||
public TableDataInfo list(CaseLogRecord caseLogRecord)
|
||||
{
|
||||
|
||||
+2
-2
@@ -25,7 +25,7 @@ public class CasePaymentController {
|
||||
* @param casePayDTO 缴费传入参数
|
||||
* @return 统一响应结果
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
|
||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:pay')")
|
||||
@PostMapping("/casePay")
|
||||
public AjaxResult casePay(@Validated @RequestBody CasePayDTO casePayDTO) {
|
||||
return paymentService.casePay(casePayDTO);
|
||||
@@ -36,7 +36,7 @@ public class CasePaymentController {
|
||||
* @param caseApplication
|
||||
* @return
|
||||
*/
|
||||
@PreAuthorize("@ss.hasPermi('paymentManagement:list:payconfirm')")
|
||||
// @PreAuthorize("@ss.hasPermi('paymentManagement:list:payconfirm')")
|
||||
@PutMapping("/confirm")
|
||||
public AjaxResult confirmPayment(@Validated @RequestBody CaseApplication caseApplication) {
|
||||
return paymentService.confirmPayment(caseApplication);
|
||||
|
||||
@@ -94,14 +94,20 @@ spring:
|
||||
mail:
|
||||
host: smtp.163.com
|
||||
port: 25
|
||||
username: hjbjava@163.com
|
||||
password: BSRSSEPJWGNNVYYL
|
||||
username: lmj1549843951@163.com
|
||||
password: JGIOQVFCLAZKXRKO
|
||||
default-encoding: UTF-8
|
||||
properties:
|
||||
mail:
|
||||
smtp:
|
||||
connectiontimeout: 5000
|
||||
timeout: 5000
|
||||
writetimeout: 5000
|
||||
socketFactoryClass: javax.net.ssl.SSLSocketFactory
|
||||
socketFactoryFallback: false
|
||||
socketFactoryPort: 465
|
||||
debug: false
|
||||
protocol: smtp
|
||||
#上上签配置参数
|
||||
ssq:
|
||||
developerId: 1695872832013855470
|
||||
|
||||
+39
@@ -346,12 +346,51 @@ public class AdjudicationServiceImpl implements IAdjudicationService {
|
||||
}
|
||||
}
|
||||
}
|
||||
//发送邮件
|
||||
sendCaseEmail(caseApplication1, appEmail, resEmail);
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CASE_FILING, "");
|
||||
|
||||
return AjaxResult.success("仲裁文书送达成功");
|
||||
}
|
||||
|
||||
/**
|
||||
* 通过邮件发送裁决书文件
|
||||
*
|
||||
* @param caseApplication1
|
||||
* @param appEmail
|
||||
* @param resEmail
|
||||
*/
|
||||
private void sendCaseEmail(CaseApplication caseApplication1, String appEmail, String resEmail) {
|
||||
List<File> fileList = new ArrayList<>();
|
||||
File file = null;
|
||||
List<CaseAttach> caseAttachList = caseApplication1.getCaseAttachList();
|
||||
if (caseAttachList != null && caseAttachList.size() > 0) {
|
||||
for (CaseAttach caseAttach : caseAttachList) {
|
||||
if (caseAttach.getAnnexType() == 3) {
|
||||
String annexPath = caseAttach.getAnnexPath();
|
||||
String path = "/home/ruoyi/" + annexPath;
|
||||
// String path = "/home/ruoyi/uploadPath/upload/2023/10/12/裁决书测试20231012test.docx";
|
||||
// String path = "E:/WorkDoc/SH/裁决书测试20231012test.docx";
|
||||
file = new File(path);
|
||||
fileList.add(file);
|
||||
System.out.println("文件长度:" + file.length());
|
||||
}
|
||||
}
|
||||
}
|
||||
if (file != null) {
|
||||
JavaMailSender javaMailSender = emailOutUtil.rebuildMailSender();
|
||||
try {
|
||||
// emailOutUtil.sendMessageCarryFile(appEmail, "裁决书", "您好,审核后的裁决书在附件中请查阅", file, "hjbjava@163.com", javaMailSender);
|
||||
emailOutUtil.sendMessageCarryFiles(appEmail, "裁决书", "您好,审核后的裁决书在附件中请查阅", fileList, "lmj1549843951@163.com", javaMailSender);
|
||||
} catch (Exception e) {
|
||||
System.out.println("邮件发送失败++++++++++++++++++++++++++++++++");
|
||||
System.out.println(e.toString());
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
public AjaxResult stamp(CaseApplication caseApplication) {
|
||||
//更改案件状态(暂时)
|
||||
|
||||
+80
-98
@@ -3,9 +3,6 @@ package com.ruoyi.wisdomarbitrate.service.impl;
|
||||
|
||||
import cn.hutool.core.collection.CollectionUtil;
|
||||
import cn.hutool.core.util.StrUtil;
|
||||
|
||||
|
||||
|
||||
import com.alibaba.fastjson.JSONArray;
|
||||
import com.alibaba.fastjson.JSONObject;
|
||||
import com.google.gson.Gson;
|
||||
@@ -13,37 +10,28 @@ import com.google.gson.JsonArray;
|
||||
import com.google.gson.JsonObject;
|
||||
import com.ruoyi.common.annotation.DataScope;
|
||||
import com.ruoyi.common.constant.CaseApplicationConstants;
|
||||
import com.ruoyi.common.core.domain.AjaxResult;
|
||||
import com.ruoyi.common.core.domain.entity.EsignHttpResponse;
|
||||
import com.ruoyi.common.core.domain.entity.SysDept;
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.exception.EsignDemoException;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
|
||||
|
||||
|
||||
|
||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||
import com.ruoyi.common.exception.EsignDemoException;
|
||||
import com.ruoyi.common.exception.ServiceException;
|
||||
import com.ruoyi.system.mapper.SysUserMapper;
|
||||
import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
|
||||
import com.ruoyi.common.utils.DateUtils;
|
||||
import com.ruoyi.common.utils.SmsUtils;
|
||||
import com.ruoyi.common.utils.StringUtils;
|
||||
import com.ruoyi.common.utils.bean.BeanUtils;
|
||||
import com.ruoyi.common.utils.file.SaaSAPIFileUtils;
|
||||
import com.ruoyi.system.mapper.SysDeptMapper;
|
||||
import com.ruoyi.system.mapper.SysUserMapper;
|
||||
import com.ruoyi.wisdomarbitrate.domain.*;
|
||||
import com.ruoyi.wisdomarbitrate.domain.vo.SendRoomNoMessageVO;
|
||||
import com.ruoyi.wisdomarbitrate.mapper.*;
|
||||
import com.ruoyi.wisdomarbitrate.service.ICaseApplicationService;
|
||||
import com.ruoyi.wisdomarbitrate.utils.CaseLogUtils;
|
||||
import com.ruoyi.wisdomarbitrate.utils.SignAward;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.stereotype.Service;
|
||||
import org.springframework.transaction.annotation.Transactional;
|
||||
|
||||
import java.io.File;
|
||||
import java.math.BigDecimal;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.*;
|
||||
@@ -65,21 +53,22 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
private ArbitratorMapper arbitratorMapper;
|
||||
@Autowired
|
||||
private ArbitrateRecordMapper arbitrateRecordMapper;
|
||||
@Autowired
|
||||
private ICaseApplicationService caseApplicationService;
|
||||
|
||||
@Autowired
|
||||
private CaseAttachMapper caseAttachMapper;
|
||||
@Autowired
|
||||
private SysDeptMapper sysDeptMapper;
|
||||
@Autowired
|
||||
private ICaseApplicationService caseApplicationService;
|
||||
@Autowired
|
||||
private SysUserMapper sysUserMapper;
|
||||
@Autowired
|
||||
private SealSignRecordMapper sealSignRecordMapper;
|
||||
|
||||
// 手机号正则
|
||||
private static final Pattern TELEPHONE_REGX = Pattern.compile("^1(3\\d|4[5-9]|5[0-35-9]|6[2567]|7[0-8]|8\\d|9[0-35-9])\\d{8}$");
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
public List<CaseApplication> selectCaseApplicationList(CaseApplication caseApplication) {
|
||||
return caseApplicationMapper.selectCaseApplicationList(caseApplication);
|
||||
@@ -153,6 +142,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 获取自动编码
|
||||
*
|
||||
* @return
|
||||
*/
|
||||
|
||||
@@ -305,9 +295,9 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
if (StrUtil.isNotEmpty(caseAffiliateselect.getName()) && deptMap.containsKey(caseAffiliateselect.getName())) {
|
||||
caseAffiliateselect.setName(deptMap.get(caseAffiliateselect.getName()));
|
||||
}
|
||||
applicantName.append(caseAffiliateselect.getName()).append(",");;
|
||||
applicantName.append(caseAffiliateselect.getName()).append(",");
|
||||
} else if (identityType == 2) {
|
||||
respondentName.append(caseAffiliateselect.getName()).append(",");;
|
||||
respondentName.append(caseAffiliateselect.getName()).append(",");
|
||||
}
|
||||
}
|
||||
caseApplicationselect.setApplicantName(applicantName.toString());
|
||||
@@ -428,6 +418,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 导入校验
|
||||
*
|
||||
* @param caseApplication
|
||||
* @param
|
||||
*/
|
||||
@@ -448,6 +439,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 校验被申请人代理信息
|
||||
*
|
||||
* @param caseApplication
|
||||
* @param failureMsg
|
||||
*/
|
||||
@@ -477,6 +469,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 校验被申请人信息
|
||||
*
|
||||
* @param caseApplication
|
||||
* @param failureMsg
|
||||
*/
|
||||
@@ -517,6 +510,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 校验申请人代理信息
|
||||
*
|
||||
* @param caseApplication
|
||||
* @param failureMsg
|
||||
*/
|
||||
@@ -546,6 +540,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 校验申请人主题信息
|
||||
*
|
||||
* @param caseApplication
|
||||
* @param failureMsg
|
||||
*/
|
||||
@@ -584,6 +579,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 校验基本字段
|
||||
*
|
||||
* @param caseApplication
|
||||
* @param failureMsg
|
||||
*/
|
||||
@@ -728,7 +724,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
if (caseAttach.getAnnexType() == 3) {
|
||||
String annexPath = caseAttach.getAnnexPath();
|
||||
String path = "/home/ruoyi/" + annexPath;
|
||||
System.out.println("这是查询到的裁决书路径"+path);
|
||||
// String path ="D:\\home\\仲裁裁决书模板.docx";
|
||||
//获取文件上传地址
|
||||
EsignHttpResponse response = SaaSAPIFileUtils.getUploadUrl(path);
|
||||
@@ -756,7 +751,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
Gson gson = new Gson();
|
||||
JsonObject positionsJsonObject = gson.fromJson(positions.getBody(), JsonObject.class);
|
||||
JsonObject positionsData = positionsJsonObject.getAsJsonObject("data");
|
||||
String keywordPositions = positionsData.get("keywordPositions").toString();
|
||||
String keywordPositions = positionsData.get("keywordPositions").getAsString();
|
||||
//发起签署
|
||||
sealSignRecord.setFilename(fileName);
|
||||
String arbitratorId = caseApplication2.getArbitratorId();
|
||||
@@ -769,6 +764,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
sealSignRecord.setPensonName(sysUser.getNickName());
|
||||
}
|
||||
sealSignRecord.setOrgnizeName("西安云美电子科技有限公司");
|
||||
sealSignRecord.setOrgnizeNamePsnAccount("秦桃则");
|
||||
sealSignRecord.setOrgnizeName("西安云美电子科技有限公司");
|
||||
sealSignRecord.setOrgnizeNamePsnAccount("17691338406");
|
||||
sealSignRecord.setOrgnizeNamepsnName("韩超勃");
|
||||
//解析文件签名印章位置
|
||||
@@ -776,7 +773,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
for (int i = 0; i < jsonArray.size(); i++) {
|
||||
JSONObject jsonObject3 = jsonArray.getJSONObject(i);
|
||||
String keyword = jsonObject3.getString("keyword");
|
||||
if (keyword.equals("仲裁员:")){
|
||||
if (keyword.equals("仲裁员")) {
|
||||
//签名
|
||||
JSONArray positionsArray = jsonObject3.getJSONArray("positions");
|
||||
// 遍历 positionsArray 中的每个元素
|
||||
@@ -810,7 +807,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
EsignHttpResponse response3 = SignAward.createByFile(sealSignRecord);
|
||||
JSONObject jsonObject3 = JSONObject.parseObject(response3.getBody());
|
||||
if (jsonObject3.getIntValue("code")==0){
|
||||
if (jsonObject1.getIntValue("code") == 0) {
|
||||
//获取签署流程ID
|
||||
JSONObject data1 = jsonObject3.getJSONObject("data");
|
||||
String signFlowId = data1.getString("signFlowId");
|
||||
@@ -819,8 +816,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
sealSignRecord.setSignFlowid(signFlowId);
|
||||
sealSignRecord.setSignFlowStatus(1);//待签名
|
||||
sealSignRecordMapper.insertSealSignRecord(sealSignRecord);
|
||||
}else {
|
||||
throw new ServiceException("发起签署流程失败,请检查参数是否有误");
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -837,7 +832,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
|
||||
// 新增日志
|
||||
CaseLogUtils.insertCaseLog(caseApplication.getId(), CaseApplicationConstants.SIGN_ARBITRATION, "");
|
||||
|
||||
rows = caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
} else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
|
||||
@@ -895,7 +889,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
if (StrUtil.isNotEmpty(caseAffiliateselect.getName()) && deptMap.containsKey(caseAffiliateselect.getName())) {
|
||||
caseAffiliateselect.setName(deptMap.get(caseAffiliateselect.getName()));
|
||||
}
|
||||
applicantName.append(caseAffiliateselect.getName()).append(",");;
|
||||
applicantName.append(caseAffiliateselect.getName()).append(",");
|
||||
;
|
||||
}
|
||||
}
|
||||
caseApplicationselect.setApplicantName(applicantName.toString());
|
||||
@@ -907,6 +902,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 给被申请人发送房间号短信
|
||||
*
|
||||
* @param messageVO
|
||||
* @return
|
||||
*/
|
||||
@@ -922,7 +918,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
//发送短信通知
|
||||
SmsUtils.SendSmsRequest request = new SmsUtils.SendSmsRequest();
|
||||
request.setTemplateId("1952136");
|
||||
request.setTemplateId("1948332");
|
||||
// 1948332 普通短信 开庭审理房间号通知 尊敬的{1}用户,您的{2}仲裁案件,开庭审理房间号为{3},请知晓,如非本人操作,请忽略本短信。
|
||||
request.setPhone(caseAffiliate.getContactTelphone());
|
||||
request.setTemplateParamSet(new String[]{caseAffiliate.getName(), caseApplicationselect.getCaseNum(), messageVO.getRoomNo()});
|
||||
@@ -992,10 +988,14 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
for (int i = 0; i < idStrList.length; i++) {
|
||||
idList.add(Long.parseLong(idStrList[i]));
|
||||
}
|
||||
//
|
||||
|
||||
// 查询仲裁员电话号
|
||||
List<SysUser> userList = sysUserMapper.selectUserListByIds(idList);
|
||||
if (CollectionUtil.isNotEmpty(userList)) {
|
||||
for (SysUser user : userList) {
|
||||
|
||||
|
||||
//给仲裁员发送短信通知
|
||||
request.setPhone(user.getPhonenumber());
|
||||
// 1947342 普通短信 开庭日期通知 尊敬的{1}用户,您的{2}仲裁案件,开庭日期已确定为{3},请知晓,如非本人操作,请忽略本短信。
|
||||
@@ -1006,6 +1006,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
@@ -1045,7 +1046,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
|
||||
|
||||
|
||||
@Override
|
||||
@Transactional
|
||||
public int pendingAppointArbotrar(CaseApplication caseApplication) {
|
||||
@@ -1077,7 +1077,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void assignmentCaseAffiliates(CaseApplication caseApplication, List<CaseAffiliate> caseAffiliatesnew, Map<String, Long> deptMap) {
|
||||
// 申请人信息
|
||||
CaseAffiliate caseAffiliate = new CaseAffiliate();
|
||||
@@ -1098,6 +1097,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 设置申请人的组织机构
|
||||
*
|
||||
* @param caseAffiliate
|
||||
* @param caseApplication
|
||||
*/
|
||||
@@ -1105,7 +1105,6 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
private void setApplicantOrganization(CaseAffiliate caseAffiliate, CaseApplication caseApplication, Map<String, Long> deptMap) {
|
||||
|
||||
|
||||
|
||||
// 将组织机构id设为申请人名称
|
||||
if (deptMap.containsKey(caseApplication.getName())) {
|
||||
caseAffiliate.setName(String.valueOf(deptMap.get(caseApplication.getName())));
|
||||
@@ -1130,6 +1129,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
|
||||
/**
|
||||
* 组装被申请人信息
|
||||
*
|
||||
* @param caseApplication
|
||||
* @return
|
||||
*/
|
||||
@@ -1165,79 +1165,61 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
caseApplicationNew.setFeePayable(caseApplicationinsertDiffer.getFeePayable());
|
||||
}
|
||||
|
||||
// @Transactional
|
||||
// public void fixExecuteSelectFlowDetailUtils() throws EsignDemoException {
|
||||
//
|
||||
// Gson gson = new Gson();
|
||||
//
|
||||
// SealSignRecord sealSignRecordselect = new SealSignRecord();
|
||||
// sealSignRecordselect.setSignFlowStatus(1);
|
||||
//
|
||||
// List<SealSignRecord> sealSignRecords = sealSignRecordMapper.selectSealSignRecord(sealSignRecordselect);
|
||||
// if(sealSignRecords!=null&&sealSignRecords.size()>0){
|
||||
// for (int i = 0; i < sealSignRecords.size(); i++) {
|
||||
// SealSignRecord sealSignRecord = sealSignRecords.get(i);
|
||||
// EsignHttpResponse signFlowDetail = SignAward.signFlowDetail(sealSignRecord);
|
||||
// JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(),JsonObject.class);
|
||||
// JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
|
||||
// JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
|
||||
// for (int j = 0; j < signersArray.size(); j++) {
|
||||
// JsonObject signerObject = (JsonObject)signersArray.get(j);
|
||||
// Integer psnsignStatus ;
|
||||
// Integer orgsignStatus ;
|
||||
// if(!(signerObject.get("psnSigner").toString()).equals("null")){
|
||||
// JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
|
||||
// if(psnSignerData!=null){
|
||||
// psnsignStatus = signerObject.get("signStatus").getAsInt();
|
||||
// sealSignRecord.setPsnsignStatus(psnsignStatus);
|
||||
//
|
||||
// if(psnsignStatus.intValue()==2){
|
||||
// //更新立案申请状态为待用印
|
||||
// CaseApplication caseApplication = new CaseApplication();
|
||||
// caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
// caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
//
|
||||
// //修改"签署用印记录表"的状态为待用印
|
||||
// sealSignRecord.setSignFlowStatus(2);
|
||||
// sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
|
||||
//
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// if(!(signerObject.get("orgSigner").toString()).equals("null")){
|
||||
// JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
|
||||
// if(orgSignerData!=null){
|
||||
// orgsignStatus = signerObject.get("signStatus").getAsInt();
|
||||
// sealSignRecord.setOrgsignStatus(orgsignStatus);
|
||||
// //更新立案申请状态为待送达
|
||||
// CaseApplication caseApplication = new CaseApplication();
|
||||
// caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
|
||||
// caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
//
|
||||
// //修改"签署用印记录表"的状态为签署完成
|
||||
// sealSignRecord.setSignFlowStatus(3);
|
||||
// sealSignRecordMapper.updataSealSignRecord(sealSignRecord);
|
||||
//
|
||||
// //下载审核完成的裁决书,
|
||||
//// SaaSAPIFileUtils.fileDownloadUrl();
|
||||
//
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//
|
||||
// }
|
||||
//
|
||||
// }
|
||||
@Transactional
|
||||
public void fixExecuteSelectFlowDetailUtils() throws EsignDemoException {
|
||||
|
||||
Gson gson = new Gson();
|
||||
|
||||
|
||||
SealSignRecord sealSignRecord = new SealSignRecord();
|
||||
sealSignRecord.setSignFlowid("41e6732b48c54c63a91b2379c352212d");
|
||||
EsignHttpResponse signFlowDetail = SignAward.signFlowDetail(sealSignRecord);
|
||||
JsonObject signFlowDetailJsonObject = gson.fromJson(signFlowDetail.getBody(), JsonObject.class);
|
||||
JsonObject flowDetailData = signFlowDetailJsonObject.getAsJsonObject("data");
|
||||
JsonArray signersArray = flowDetailData.get("signers").getAsJsonArray();
|
||||
for (int i = 0; i < signersArray.size(); i++) {
|
||||
JsonObject signerObject = (JsonObject) signersArray.get(i);
|
||||
Integer psnsignStatus;
|
||||
Integer orgsignStatus;
|
||||
if (!(signerObject.get("psnSigner").toString()).equals("null")) {
|
||||
JsonObject psnSignerData = signerObject.getAsJsonObject("psnSigner");
|
||||
if (psnSignerData != null) {
|
||||
psnsignStatus = signerObject.get("signStatus").getAsInt();
|
||||
sealSignRecord.setPsnsignStatus(psnsignStatus);
|
||||
|
||||
// }
|
||||
if (psnsignStatus.intValue() == 2) {
|
||||
//更新立案申请状态为待用印
|
||||
CaseApplication caseApplication = new CaseApplication();
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATED_SEAL);
|
||||
caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
|
||||
//修改"签署用印记录表"的状态为待用印
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if (!(signerObject.get("orgSigner").toString()).equals("null")) {
|
||||
JsonObject orgSignerData = signerObject.getAsJsonObject("orgSigner");
|
||||
if (orgSignerData != null) {
|
||||
orgsignStatus = signerObject.get("signStatus").getAsInt();
|
||||
sealSignRecord.setOrgsignStatus(orgsignStatus);
|
||||
//更新立案申请状态为待送达
|
||||
CaseApplication caseApplication = new CaseApplication();
|
||||
caseApplication.setCaseStatus(CaseApplicationConstants.ARBITRATION_DELIVERY);
|
||||
caseApplicationMapper.submitCaseApplication(caseApplication);
|
||||
|
||||
//修改"签署用印记录表"的状态为签署完成
|
||||
|
||||
//下载审核完成的裁决书,
|
||||
// SaaSAPIFileUtils.fileDownloadUrl();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user