发版合并 #363

Merged
wangqiong123 merged 129 commits from dev into pro 2024-06-03 02:26:01 +00:00
5 changed files with 17 additions and 18 deletions
Showing only changes of commit 03bc65284d - Show all commits
@@ -271,7 +271,7 @@ public class CaseApplicationController extends BaseController {
@Log(title = "组庭审核", businessType = BusinessType.UPDATE)
@PostMapping("/pendTralCheck")
public AjaxResult pendTralCheck(@Validated @RequestBody CaseApplication caseApplication) {
return toAjax(caseApplicationService.pendTralCheck(caseApplication));
return caseApplicationService.pendTralCheck(caseApplication);
}
/**
@@ -315,13 +315,15 @@ public class SysUserServiceImpl implements ISysUserService {
Integer deptType = dept.getDeptType();
if (deptType != null && deptType.intValue() == 1) {
SysPost sysPost = postMapper.selectPostByPostCode("jbr");
Long postId = sysPost.getPostId();
if (postIds.length > 0) {
boolean isContain = Arrays.asList(postIds).contains(postId);
if (isContain) {
List<SysUser> sysUsers = userMapper.selectUserByDeptId(deptId);
if (sysUsers != null && sysUsers.size() > 0) {
return AjaxResult.error("部门类型为仲裁机构的部门的岗位为经办人的用户只能有一个!");
if(sysPost!=null) {
Long postId = sysPost.getPostId();
if (postIds.length > 0) {
boolean isContain = Arrays.asList(postIds).contains(postId);
if (isContain) {
List<SysUser> sysUsers = userMapper.selectUserByDeptId(deptId);
if (sysUsers != null && sysUsers.size() > 0) {
return AjaxResult.error("部门类型为仲裁机构的部门的岗位为经办人的用户只能有一个!");
}
}
}
}
@@ -39,7 +39,7 @@ public interface ICaseApplicationService {
int pendingAppointArbotrar(CaseApplication caseApplication);
int pendTralCheck(CaseApplication caseApplication);
AjaxResult pendTralCheck(CaseApplication caseApplication);
int pendTralSure(CaseApplication caseApplication);
@@ -1802,7 +1802,8 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
@Override
@Transactional
public int pendTralCheck(CaseApplication caseApplication) {
public AjaxResult pendTralCheck(CaseApplication caseApplication) {
// todo 需要传仲裁员id
Integer isAgreePendTral = caseApplication.getIsAgreePendTral();
caseApplication.setCaseStatus(CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL);
int rows = 0;
@@ -1841,7 +1842,7 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
}
// 新增日志
insertCaseLog(caseApplication.getId(), CaseApplicationConstants.CONFIRMDED_PENDING_TRIAL, "");
return rows;
return success();
}
@Override
@@ -186,15 +186,11 @@ public class CaseZipImportImpl {
if(future.get()!=null){
return success("导入成功");
}
} catch (InterruptedException e) {
} catch (InterruptedException | ExecutionException e) {
e.printStackTrace();
return success("导入失败");
} catch (ExecutionException e) {
e.printStackTrace();
return success("导入失败");
return error(e.getMessage());
}
return error("导入失败");
return error("导入失败");
}