Merge branch 'wq' of SH-Arbitrate/Arbitrate-Backend into dev

This commit was merged in pull request #340.
This commit is contained in:
2024-04-26 09:14:42 +08:00
committed by Gitea
5 changed files with 17 additions and 18 deletions
@@ -271,7 +271,7 @@ public class CaseApplicationController extends BaseController {
@Log(title = "组庭审核", businessType = BusinessType.UPDATE) @Log(title = "组庭审核", businessType = BusinessType.UPDATE)
@PostMapping("/pendTralCheck") @PostMapping("/pendTralCheck")
public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) { public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
return toAjax(caseApplicationService.pendTralCheck(caseApplication)); return caseApplicationService.pendTralCheck(caseApplication);
} }
/** /**
@@ -315,6 +315,7 @@ public class SysUserServiceImpl implements ISysUserService {
Integer deptType = dept.getDeptType(); Integer deptType = dept.getDeptType();
if (deptType != null && deptType.intValue() == 1) { if (deptType != null && deptType.intValue() == 1) {
SysPost sysPost = postMapper.selectPostByPostCode("jbr"); SysPost sysPost = postMapper.selectPostByPostCode("jbr");
if(sysPost!=null) {
Long postId = sysPost.getPostId(); Long postId = sysPost.getPostId();
if (postIds.length > 0) { if (postIds.length > 0) {
boolean isContain = Arrays.asList(postIds).contains(postId); boolean isContain = Arrays.asList(postIds).contains(postId);
@@ -327,6 +328,7 @@ public class SysUserServiceImpl implements ISysUserService {
} }
} }
} }
}
Long userId = user.getUserId(); Long userId = user.getUserId();
// 删除用户与角色关联 // 删除用户与角色关联
@@ -39,7 +39,7 @@ public interface ICaseApplicationService {
int pendingAppointArbotrar(CaseApplication caseApplication); int pendingAppointArbotrar(CaseApplication caseApplication);
int pendTralCheck(CaseApplication caseApplication); AjaxResult pendTralCheck(CaseApplication caseApplication);
int pendTralSure(CaseApplication caseApplication); int pendTralSure(CaseApplication caseApplication);
@@ -1802,7 +1802,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
@Override @Override
@Transactional @Transactional
public int pendTralCheck(CaseApplication caseApplication) { public AjaxResult pendTralCheck(CaseApplication caseApplication) {
// todo 需要传仲裁员id
Integer isAgreePendTral = caseApplication.getIsAgreePendTral(); Integer isAgreePendTral = caseApplication.getIsAgreePendTral();
caseApplication.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL); caseApplication.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
int rows = 0; int rows = 0;
@@ -1841,7 +1842,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
} }
// 新增日志 // 新增日志
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL, ""); insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL, "");
return rows; return success();
} }
@Override @Override
@@ -186,13 +186,9 @@ public class CaseZipImportImpl {
if(future.get()!=null){ if(future.get()!=null){
return success("导入成功"); return success("导入成功");
} }
} catch (InterruptedException e) { } catch (InterruptedException | ExecutionException e) {
e.printStackTrace(); e.printStackTrace();
return success("导入失败"); return error(e.getMessage());
} catch (ExecutionException e) {
e.printStackTrace();
return success("导入失败");
} }
return error("导入失败"); return error("导入失败");