导入时提示修改,删除附件接口
This commit is contained in:
@@ -3,6 +3,7 @@ package com.ruoyi.wisdomarbitrate.mapper;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||
import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
|
||||
import com.ruoyi.wisdomarbitrate.domain.SealSignRecord;
|
||||
import org.apache.ibatis.annotations.Param;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@@ -18,4 +19,5 @@ public interface CaseAttachMapper {
|
||||
|
||||
int updateCaseAttachBycaseid(CaseAttach caseAttach);
|
||||
|
||||
int deleteByFileIds(@Param("ids") List<Integer> fileIds);
|
||||
}
|
||||
|
||||
@@ -33,4 +33,6 @@ public interface ICaseEvidenceService {
|
||||
AjaxResult batchUpload(MultipartFile[] file, Integer annexType, Long id, String username, Long userId);
|
||||
|
||||
AjaxResult fileList(Long caseAppliId, List<Integer> annexTypeList);
|
||||
|
||||
int deleteFile( List<Integer> fileIds);
|
||||
}
|
||||
|
||||
+8
-3
@@ -419,15 +419,20 @@ public class CaseApplicationServiceImpl implements ICaseApplicationService {
|
||||
SmsUtils.sendSms(request);
|
||||
}
|
||||
} else if (null != agentUser.getDeptId() && !String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())) {
|
||||
return "该申请代理人已存在,与申请机构不匹配";
|
||||
// return "该申请代理人已在"+agentUser.getDeptName()+"申请机构下存在,请检查填写信息是否正确";
|
||||
if(null!=agentUser.getDept()&&StrUtil.isNotEmpty(agentUser.getDept().getDeptName())) {
|
||||
return "该申请代理人已在【" + agentUser.getDept().getDeptName()+"】申请机构下存在,请检查填写信息是否正确";
|
||||
}else {
|
||||
return "该申请代理人已存在,与申请机构不匹配,请检查填写信息是否正确";
|
||||
}
|
||||
} else if (null != agentUser.getDeptId() && String.valueOf(agentUser.getDeptId()).equals(caseAffiliate.getApplicationOrganId())){
|
||||
// 同步用户表和案件关联人表的手机号和名称
|
||||
caseAffiliate.setContactTelphoneAgent(agentUser.getPhonenumber());
|
||||
caseAffiliate.setNameAgent(agentUser.getNickName());
|
||||
caseAffiliate.setApplicantAgentUserId(String.valueOf(agentUser.getUserId()));
|
||||
// 新增角色为申请人
|
||||
if(agentUser.getRoleIds()!=null) {
|
||||
List<Long> longList = Arrays.asList(agentUser.getRoleIds());
|
||||
if(CollectionUtil.isNotEmpty(agentUser.getRoles())) {
|
||||
List<Long> longList = agentUser.getRoles().stream().map(SysRole::getRoleId).collect(Collectors.toList());
|
||||
if(!longList.contains(roleId)) {
|
||||
ArrayList<SysUserRole> sysUserRoles = new ArrayList<>();
|
||||
SysUserRole sysUserRole = new SysUserRole();
|
||||
|
||||
+6
@@ -265,6 +265,12 @@ IdentityAuthenticationMapper identityAuthenticationMapper;
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int deleteFile( List<Integer> fileIds) {
|
||||
|
||||
return caseAttachMapper.deleteByFileIds(fileIds);
|
||||
}
|
||||
|
||||
private List<CaseEvidenceVO> getCaseEvidenceVOList(String identityNum, List<Integer> caseStatusList, Integer identityType) {
|
||||
List<CaseEvidenceVO> caseListByRespondent = caseEvidenceMapper.getCaseListByRespondent(identityNum, caseStatusList, identityType);
|
||||
if (caseListByRespondent != null && caseListByRespondent.size() > 0) {
|
||||
|
||||
Reference in New Issue
Block a user