案件流程修改

This commit is contained in:
18792927508
2023-12-05 11:05:47 +08:00
parent 20e6986ec9
commit 93d9e11688
5 changed files with 137 additions and 227 deletions
@@ -30,4 +30,5 @@ public class ToDoCount {
private int caseApplyStored=0; // 待案件归档
private int caseApplyArchived=0; // 已归档
private int updateOnlineHearDate=0; // 待修改开庭时间
private int ArbitratorApplyAwardConfirm=0; // 待仲裁员审核仲裁文书
}
@@ -256,7 +256,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
SysUser user = loginUser.getUser();
Long userId = user.getUserId();
// 查询登录人身份证号
// 查询登录人信息
SysUser sysUser = sysUserMapper.selectUserById(userId);
List<SysRole> roles = sysUser.getRoles();
// 没有角色不能查看案件列表
@@ -1905,19 +1905,42 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
@Override
@Transactional
public int verificationArbitrateRecord(CaseApplication caseApplication) {
caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
// 秘书核验裁决书,流转到待仲裁员审核仲裁文书
caseApplication.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
int rows = caseApplicationMapper.submitCaseApplication(caseApplication);
ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
// 新增日志
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CHECK_ARBITRATION, "");
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.HEAD_CHECK_ARBITRATION, "");
return rows;
}
/**
* 仲裁员,部门长审核裁决书
* @param caseApplication
* @return
*/
@Override
@Transactional
public AjaxResult checkArbitrateRecord(CaseApplication caseApplication) {
// 查询当前登录人角色
LoginUser loginUser = getLoginUser();
// 查询登录人角色
SysUser user = sysUserMapper.selectUserById(loginUser.getUser().getUserId());
List<SysRole> roles = user.getRoles(); if (CollectionUtil.isEmpty(roles)) {
throw new ServiceException("该用户没有角色权限");
}
String roleName="";
for (SysRole role : roles) {
if (StrUtil.isEmpty(role.getRoleName())) {
continue;
}
roleName=role.getRoleName();
}
// 如果是仲裁员,同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12),拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
// 如果是部门长,同意后状态改为待仲裁文书签名(SIGN_ARBITRATION = 13),拒绝改为待仲裁员审核仲裁文书(HEAD_CHECK_ARBITRATION = 18)
int rows = 0;
ArbitrateRecord arbitrateRecord = caseApplication.getArbitrateRecord();
arbitrateRecordMapper.updataArbitrateRecord(arbitrateRecord);
@@ -2102,15 +2125,30 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
} catch (InterruptedException e) {
e.printStackTrace();
}
caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
// 如果是仲裁员,同意后状态改为待部门长审核仲裁文书(CHECK_ARBITRATION = 12)
if(roleName.contains("仲裁员")){
caseApplication.setCaseStatus(CaseApplicationConstants.CHECK_ARBITRATION);
}else if(roleName.contains("仲裁委")||roleName.contains("部门长")){
// 如果是部门长,同意后状态改为待仲裁文书签名(SIGN_ARBITRATION = 13),
caseApplication.setCaseStatus(CaseApplicationConstants.SIGN_ARBITRATION);
}
// 新增日志
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.SIGN_ARBITRATION, "");
insertCaseLog(caseApplication.getId(), caseApplication.getCaseStatus(), "");
rows = caseApplicationMapper.submitCaseApplication(caseApplication);
} else if (agreeOrNotCheck.intValue() == 2) {//拒绝审核
caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
// 如果是仲裁员,拒绝改为待秘书核验仲裁文书(VERPRIF_ARBITRATION = 11)
if(roleName.contains("仲裁员")){
caseApplication.setCaseStatus(CaseApplicationConstants.VERPRIF_ARBITRATION);
}else if(roleName.contains("仲裁委")||roleName.contains("部门长")){
// 如果是部门长,拒绝改为待仲裁员审核仲裁文书(HEAD_CHECK_ARBITRATION = 18)
caseApplication.setCaseStatus(CaseApplicationConstants.HEAD_CHECK_ARBITRATION);
}
// 新增日志
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.VERPRIF_ARBITRATION, "");
insertCaseLog(caseApplication.getId(), caseApplication.getCaseStatus(), "");
rows = caseApplicationMapper.submitCaseApplication(caseApplication);
}
@@ -3119,7 +3157,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
if (null != caseApplication.getId()) {
List<CaseAttach> caseAttachs=new ArrayList<>();
for (Map.Entry<String, String> entry : andConvertPDF.entrySet()) {
if(entry.getValue().contains("证据材料")){
if(entry.getValue().contains("证据材料")||entry.getValue().contains("申请书")||entry.getValue().contains("调解协议")||entry.getValue().contains("情况说明")){
String pdfUrl = entry.getValue();
File file1 = new File(pdfUrl);
CaseAttach caseAttach = new CaseAttach();