|
|
@@ -26,6 +26,7 @@ import com.ruoyi.wisdomarbitrate.domain.dto.template.TemplateManage;
|
|
26
|
26
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAffiliate;
|
|
27
|
27
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseApplication;
|
|
28
|
28
|
import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseAttach;
|
|
|
29
|
+import com.ruoyi.wisdomarbitrate.domain.entity.mscase.MsCaseLogRecord;
|
|
29
|
30
|
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MediatorVO;
|
|
30
|
31
|
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationReq;
|
|
31
|
32
|
import com.ruoyi.wisdomarbitrate.domain.vo.mscase.MsCaseApplicationVO;
|
|
|
@@ -107,6 +108,8 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
107
|
108
|
TemplateManageMapper templateManageMapper;
|
|
108
|
109
|
@Autowired
|
|
109
|
110
|
private SmsRecordMapper smsRecordMapper;
|
|
|
111
|
+ @Autowired
|
|
|
112
|
+ private MsCaseLogRecordMapper caseLogRecordMapper;
|
|
110
|
113
|
// 案件基本字段
|
|
111
|
114
|
public static final List<String> CASE_BASE_COLUMN = Arrays.asList("caseSubjectAmount", "arbitratClaims", "facts", "requestRule");
|
|
112
|
115
|
public static final SimpleDateFormat yyyymmddFormat = new SimpleDateFormat("yyyy-MM-dd");
|
|
|
@@ -548,6 +551,13 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
548
|
551
|
return AjaxResult.success("调解申请书生成成功");
|
|
549
|
552
|
}
|
|
550
|
553
|
|
|
|
554
|
+ /**
|
|
|
555
|
+ * 根据批次号查询该流程未锁定案件
|
|
|
556
|
+ * @param batchNumber
|
|
|
557
|
+ * @param caseFlowId 案件流程id
|
|
|
558
|
+ * @return
|
|
|
559
|
+ */
|
|
|
560
|
+
|
|
551
|
561
|
public List<MsCaseApplication> listByBatchNumber(String batchNumber,Integer caseFlowId) {
|
|
552
|
562
|
Example example = new Example(MsCaseFlow.class);
|
|
553
|
563
|
example.createCriteria().andEqualTo("batch_number", batchNumber);
|
|
|
@@ -559,6 +569,11 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
559
|
569
|
|
|
560
|
570
|
}
|
|
561
|
571
|
|
|
|
572
|
+ /**
|
|
|
573
|
+ * 批量更新附件
|
|
|
574
|
+ * @param req
|
|
|
575
|
+ * @return
|
|
|
576
|
+ */
|
|
562
|
577
|
@Override
|
|
563
|
578
|
public AjaxResult batchUpdateAttach(MsCaseApplicationVO req) {
|
|
564
|
579
|
for (MsCaseAttach attach : req.getCaseAttachList()) {
|
|
|
@@ -568,6 +583,13 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
568
|
583
|
return null;
|
|
569
|
584
|
}
|
|
570
|
585
|
|
|
|
586
|
+ /**
|
|
|
587
|
+ * 证据上传
|
|
|
588
|
+ * @param files
|
|
|
589
|
+ * @param annexType
|
|
|
590
|
+ * @param id
|
|
|
591
|
+ * @return
|
|
|
592
|
+ */
|
|
571
|
593
|
@Override
|
|
572
|
594
|
public AjaxResult batchUpload(MultipartFile[] files, Integer annexType, Long id) {
|
|
573
|
595
|
List<MsCaseAttach> successList = new ArrayList<>();
|
|
|
@@ -668,9 +690,26 @@ public class MsCaseApplicationServiceImpl implements MsCaseApplicationService {
|
|
668
|
690
|
return AjaxResult.success("提交成功");
|
|
669
|
691
|
}
|
|
670
|
692
|
|
|
|
693
|
+ /**
|
|
|
694
|
+ * 查询调解员
|
|
|
695
|
+ * @return
|
|
|
696
|
+ */
|
|
671
|
697
|
@Override
|
|
672
|
698
|
public AjaxResult listMediator() {
|
|
673
|
699
|
List<MediatorVO> mediatorVOS = new ArrayList<MediatorVO>();
|
|
|
700
|
+ // 查出所有调解员
|
|
|
701
|
+ List<SysUser> users = userMapper.selectUserByRole("调解员");
|
|
|
702
|
+ if(CollectionUtil.isEmpty(users)){
|
|
|
703
|
+ return AjaxResult.error("暂无调解员");
|
|
|
704
|
+ }
|
|
|
705
|
+ // 查询调解员已办数量
|
|
|
706
|
+ List<MsCaseLogRecord> recordList=caseLogRecordMapper.selectCompleteByCreateBy(users.stream().map(SysUser::getUserId).collect(Collectors.toList()));
|
|
|
707
|
+ if(CollectionUtil.isNotEmpty(recordList)){
|
|
|
708
|
+ // 组装成id对应的list
|
|
|
709
|
+ recordList.stream().collect(Collectors.groupingBy(MsCaseLogRecord::getCaseAppliId, Collectors.toList()));
|
|
|
710
|
+ }
|
|
|
711
|
+ // 查询待办数量
|
|
|
712
|
+
|
|
674
|
713
|
mediatorVOS= msCaseApplicationMapper.listMediator();
|
|
675
|
714
|
|
|
676
|
715
|
return null;
|