案件修改
This commit is contained in:
+2
-4
@@ -122,14 +122,12 @@ public class CaseApplicationController extends BaseController {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询立案信息 todo 必须传version
|
* 查询立案信息
|
||||||
*/
|
*/
|
||||||
// @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
|
// @PreAuthorize("@ss.hasPermi('caseManagement:list:detail')")
|
||||||
@PostMapping("/selectCaseApplication")
|
@PostMapping("/selectCaseApplication")
|
||||||
public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
public AjaxResult selectCaseApplication(@Validated @RequestBody CaseApplication caseApplication) {
|
||||||
if(caseApplication.getVersion()==null){
|
|
||||||
return error("参数校验失败");
|
|
||||||
}
|
|
||||||
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
|
CaseApplication caseApplicationselect = caseApplicationService.selectCaseApplication(caseApplication);
|
||||||
return success(caseApplicationselect);
|
return success(caseApplicationselect);
|
||||||
}
|
}
|
||||||
|
|||||||
+11
@@ -107,6 +107,17 @@ public class VideoController extends BaseController {
|
|||||||
|
|
||||||
return videoService.dissolveRoom(reservedConferenceVO.getRoomId());
|
return videoService.dissolveRoom(reservedConferenceVO.getRoomId());
|
||||||
}
|
}
|
||||||
|
/**
|
||||||
|
* 根据userId查询该用户是否是秘书
|
||||||
|
* @param userId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
@Anonymous
|
||||||
|
@GetMapping("secretaryRoleByUserId")
|
||||||
|
public AjaxResult secretaryRoleByUserId( @RequestParam(value = "userId",required = true) Long userId) {
|
||||||
|
|
||||||
|
return videoService.secretaryRoleByUserId(userId);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,4 +33,10 @@ public interface VideoService {
|
|||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
AjaxResult dissolveRoom( Long roomId);
|
AjaxResult dissolveRoom( Long roomId);
|
||||||
|
/**
|
||||||
|
* 根据userId查询该用户是否是秘书
|
||||||
|
* @param userId
|
||||||
|
* @return
|
||||||
|
*/
|
||||||
|
AjaxResult secretaryRoleByUserId(Long userId);
|
||||||
}
|
}
|
||||||
|
|||||||
+29
-6
@@ -9,6 +9,7 @@ import com.alibaba.fastjson.JSONObject;
|
|||||||
import com.ruoyi.common.config.RuoYiConfig;
|
import com.ruoyi.common.config.RuoYiConfig;
|
||||||
import com.ruoyi.common.constant.CacheConstants;
|
import com.ruoyi.common.constant.CacheConstants;
|
||||||
import com.ruoyi.common.core.domain.AjaxResult;
|
import com.ruoyi.common.core.domain.AjaxResult;
|
||||||
|
import com.ruoyi.common.core.domain.entity.SysRole;
|
||||||
import com.ruoyi.common.core.domain.entity.SysUser;
|
import com.ruoyi.common.core.domain.entity.SysUser;
|
||||||
import com.ruoyi.common.core.domain.model.LoginUser;
|
import com.ruoyi.common.core.domain.model.LoginUser;
|
||||||
import com.ruoyi.common.core.redis.RedisCache;
|
import com.ruoyi.common.core.redis.RedisCache;
|
||||||
@@ -16,7 +17,9 @@ import com.ruoyi.common.utils.SecurityUtils;
|
|||||||
import com.ruoyi.common.utils.SmsUtils;
|
import com.ruoyi.common.utils.SmsUtils;
|
||||||
import com.ruoyi.common.utils.StringUtils;
|
import com.ruoyi.common.utils.StringUtils;
|
||||||
import com.ruoyi.common.utils.spring.SpringUtils;
|
import com.ruoyi.common.utils.spring.SpringUtils;
|
||||||
|
import com.ruoyi.system.mapper.SysRoleMapper;
|
||||||
import com.ruoyi.system.mapper.SysUserMapper;
|
import com.ruoyi.system.mapper.SysUserMapper;
|
||||||
|
import com.ruoyi.system.mapper.SysUserRoleMapper;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
import com.ruoyi.wisdomarbitrate.domain.CaseApplication;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
|
import com.ruoyi.wisdomarbitrate.domain.CaseAttach;
|
||||||
import com.ruoyi.wisdomarbitrate.domain.IdentityAuthentication;
|
import com.ruoyi.wisdomarbitrate.domain.IdentityAuthentication;
|
||||||
@@ -56,6 +59,7 @@ import java.util.concurrent.ExecutorService;
|
|||||||
import java.util.concurrent.Executors;
|
import java.util.concurrent.Executors;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
|
|
||||||
|
import static com.ruoyi.common.core.domain.AjaxResult.success;
|
||||||
import static com.ruoyi.common.utils.file.FileUploadUtils.getAbsoluteFile;
|
import static com.ruoyi.common.utils.file.FileUploadUtils.getAbsoluteFile;
|
||||||
import static com.ruoyi.common.utils.file.FileUploadUtils.getPathFileName;
|
import static com.ruoyi.common.utils.file.FileUploadUtils.getPathFileName;
|
||||||
|
|
||||||
@@ -83,6 +87,8 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
private CaseApplicationMapper caseApplicationMapper;
|
private CaseApplicationMapper caseApplicationMapper;
|
||||||
@Autowired
|
@Autowired
|
||||||
private CaseAttachMapper caseAttachMapper;
|
private CaseAttachMapper caseAttachMapper;
|
||||||
|
@Autowired
|
||||||
|
private SysRoleMapper roleMapper;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 功能:第三方回调sign校验
|
* 功能:第三方回调sign校验
|
||||||
@@ -137,7 +143,7 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
@Override
|
@Override
|
||||||
public AjaxResult bindCaseId(Long caseId, String roomId) {
|
public AjaxResult bindCaseId(Long caseId, String roomId) {
|
||||||
caseApplicationMapper .bindCaseId(caseId,roomId);
|
caseApplicationMapper .bindCaseId(caseId,roomId);
|
||||||
return AjaxResult.success();
|
return success();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -147,7 +153,7 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
caseApplication.setAnnexType(9);
|
caseApplication.setAnnexType(9);
|
||||||
List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
|
List<CaseAttach> caseAttachList = caseAttachMapper.queryCaseAttachList(caseApplication);
|
||||||
if(CollectionUtil.isEmpty(caseAttachList)){
|
if(CollectionUtil.isEmpty(caseAttachList)){
|
||||||
return AjaxResult.success();
|
return success();
|
||||||
}
|
}
|
||||||
for (CaseAttach caseAttach : caseAttachList) {
|
for (CaseAttach caseAttach : caseAttachList) {
|
||||||
String annexName = caseAttach.getAnnexName();
|
String annexName = caseAttach.getAnnexName();
|
||||||
@@ -162,7 +168,7 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
caseAttach.setAnnexName(annexNamenew);
|
caseAttach.setAnnexName(annexNamenew);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return AjaxResult.success(caseAttachList);
|
return success(caseAttachList);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -227,7 +233,7 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
// 返回的resp是一个CreateCloudRecordingResponse的实例,与请求对象对应
|
// 返回的resp是一个CreateCloudRecordingResponse的实例,与请求对象对应
|
||||||
CreateCloudRecordingResponse resp = client.CreateCloudRecording(req);
|
CreateCloudRecordingResponse resp = client.CreateCloudRecording(req);
|
||||||
|
|
||||||
return AjaxResult.success((JSONObject) JSON.toJSON(resp));
|
return success((JSONObject) JSON.toJSON(resp));
|
||||||
} catch (TencentCloudSDKException e) {
|
} catch (TencentCloudSDKException e) {
|
||||||
return AjaxResult.error(e.toString());
|
return AjaxResult.error(e.toString());
|
||||||
}
|
}
|
||||||
@@ -259,7 +265,7 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
// 返回的resp是一个DeleteCloudRecordingResponse的实例,与请求对象对应
|
// 返回的resp是一个DeleteCloudRecordingResponse的实例,与请求对象对应
|
||||||
DeleteCloudRecordingResponse resp = client.DeleteCloudRecording(req);
|
DeleteCloudRecordingResponse resp = client.DeleteCloudRecording(req);
|
||||||
// 输出json格式的字符串回包
|
// 输出json格式的字符串回包
|
||||||
return AjaxResult.success((JSONObject) JSON.toJSON(resp));
|
return success((JSONObject) JSON.toJSON(resp));
|
||||||
} catch (TencentCloudSDKException e) {
|
} catch (TencentCloudSDKException e) {
|
||||||
return AjaxResult.error(e.toString());
|
return AjaxResult.error(e.toString());
|
||||||
}
|
}
|
||||||
@@ -282,13 +288,30 @@ public class VideoServiceImpl implements VideoService {
|
|||||||
req.setRoomId(roomId);
|
req.setRoomId(roomId);
|
||||||
try {
|
try {
|
||||||
DismissRoomResponse resp = client.DismissRoom(req);
|
DismissRoomResponse resp = client.DismissRoom(req);
|
||||||
return AjaxResult.success((JSONObject) JSON.toJSON(resp));
|
return success((JSONObject) JSON.toJSON(resp));
|
||||||
} catch (TencentCloudSDKException e) {
|
} catch (TencentCloudSDKException e) {
|
||||||
return AjaxResult.error("解散房间失败");
|
return AjaxResult.error("解散房间失败");
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public AjaxResult secretaryRoleByUserId(Long userId) {
|
||||||
|
List<SysRole> roles = roleMapper.selectRolePermissionByUserId(userId);
|
||||||
|
JSONObject jsonObject = new JSONObject();
|
||||||
|
boolean isSecretaryRole=false;
|
||||||
|
if(CollectionUtil.isNotEmpty(roles)){
|
||||||
|
for (SysRole role : roles) {
|
||||||
|
if("法律顾问".equals(role.getRoleName()) || "秘书".equals(role.getRoleName())){
|
||||||
|
isSecretaryRole=true;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
jsonObject.put("isSecretaryRole",isSecretaryRole);
|
||||||
|
return success(jsonObject);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 查询出音视频集合,并下载,在将云点播上面的音视频删除
|
* 查询出音视频集合,并下载,在将云点播上面的音视频删除
|
||||||
|
|||||||
@@ -471,7 +471,7 @@
|
|||||||
c.hear_date ,c.arbitrat_claims ,
|
c.hear_date ,c.arbitrat_claims ,
|
||||||
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
c.loan_start_date ,c.loan_end_date ,c.claim_princi_owed ,c.claim_interest_owed ,c.claim_liquid_damag ,c.fee_payable ,
|
||||||
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,c.lock_status,
|
c.begin_video_date ,c.online_video_person ,c.contract_number ,c.create_by ,c.create_time ,c.lock_status,
|
||||||
c.update_by ,c.update_time , c.arbitrator_name,ca.application_organ_id applicationOrganId ,ca.application_organ_name as applicantName,c.filearbitra_url
|
c.update_by ,c.update_time , c.arbitrator_name,ca.application_organ_id applicationOrganId ,ca.application_organ_name as applicantName,c.filearbitra_url,c.version
|
||||||
from case_log_record r
|
from case_log_record r
|
||||||
join case_application c on r.case_appli_id=c.id
|
join case_application c on r.case_appli_id=c.id
|
||||||
JOIN case_affiliate ca ON ca.case_appli_id = c.id AND ca.identity_type=1
|
JOIN case_affiliate ca ON ca.case_appli_id = c.id AND ca.identity_type=1
|
||||||
@@ -1573,8 +1573,7 @@ order by c.create_time desc limit 1
|
|||||||
END paymentStatusName,c.pay_type,
|
END paymentStatusName,c.pay_type,
|
||||||
CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
|
CASE c.pay_type when 0 then '线上支付' when 0 then '线下支付' else '' end payTypeName
|
||||||
from case_application c left join case_payment_record p on c.id = p.case_id
|
from case_application c left join case_payment_record p on c.id = p.case_id
|
||||||
where c.case_status = 3
|
where c.id = #{id} and p.payment_status=1 limit 1
|
||||||
AND c.id = #{id} and p.payment_status=1 limit 1
|
|
||||||
|
|
||||||
</select>
|
</select>
|
||||||
<select id="selectCaseNumLike" resultType="java.lang.Integer">
|
<select id="selectCaseNumLike" resultType="java.lang.Integer">
|
||||||
|
|||||||
Reference in New Issue
Block a user