|
@@ -49,7 +49,7 @@ public class CaseLiveServiceImpl extends ServiceImpl<ICaseLiveMapper, CaseLive>
|
|
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
- public Object getByCaseId(Integer caseId) {
|
|
|
|
|
|
+ public Object getByCaseId(Integer caseId,String userName) {
|
|
|
|
|
|
CaseEntity caseEntity = caseService.getById(caseId);
|
|
CaseEntity caseEntity = caseService.getById(caseId);
|
|
if(caseEntity == null ){
|
|
if(caseEntity == null ){
|
|
@@ -57,7 +57,7 @@ public class CaseLiveServiceImpl extends ServiceImpl<ICaseLiveMapper, CaseLive>
|
|
}
|
|
}
|
|
LambdaQueryWrapper<CaseLive> wrapper = new LambdaQueryWrapper<>();
|
|
LambdaQueryWrapper<CaseLive> wrapper = new LambdaQueryWrapper<>();
|
|
wrapper.eq(CaseLive::getCaseId,caseId);
|
|
wrapper.eq(CaseLive::getCaseId,caseId);
|
|
- wrapper.eq(CaseLive::getTmUserId, StpUtil.getLoginId());
|
|
|
|
|
|
+ wrapper.eq(CaseLive::getUserName,userName);
|
|
CaseLive caseLive = this.getOne(wrapper);
|
|
CaseLive caseLive = this.getOne(wrapper);
|
|
List<CaseNumEntity> caseNumEntities = caseNumService.getByCaseId(caseId);
|
|
List<CaseNumEntity> caseNumEntities = caseNumService.getByCaseId(caseId);
|
|
if(caseNumEntities == null || caseNumEntities.size() <=0 ){
|
|
if(caseNumEntities == null || caseNumEntities.size() <=0 ){
|
|
@@ -67,7 +67,7 @@ public class CaseLiveServiceImpl extends ServiceImpl<ICaseLiveMapper, CaseLive>
|
|
if(caseLive == null){
|
|
if(caseLive == null){
|
|
caseLive = new CaseLive();
|
|
caseLive = new CaseLive();
|
|
caseLive.setCaseId(caseId);
|
|
caseLive.setCaseId(caseId);
|
|
- caseLive.setTmUserId((String)StpUtil.getLoginId() );
|
|
|
|
|
|
+ caseLive.setUserName(userName);
|
|
}
|
|
}
|
|
Boolean flag = this.getCheckCreateRoom(caseLive.getNumList(),numList);
|
|
Boolean flag = this.getCheckCreateRoom(caseLive.getNumList(),numList);
|
|
if(!flag){
|
|
if(!flag){
|