|
@@ -2,6 +2,7 @@ package cn.cslg.report.service.business;
|
|
|
|
|
|
import cn.cslg.report.entity.AssoComapareFiel;
|
|
|
import cn.cslg.report.entity.Features;
|
|
|
+import cn.cslg.report.entity.Report;
|
|
|
import cn.cslg.report.entity.asso.AssoTaskPatentSplit;
|
|
|
import cn.cslg.report.entity.asso.AssoTaskPersonel;
|
|
|
import cn.cslg.report.mapper.AssoComapareFielMapper;
|
|
@@ -26,6 +27,7 @@ import java.util.Map;
|
|
|
public class AssoTaskPatentSplitService extends ServiceImpl<AssoTaskPatentSplitMapper, AssoTaskPatentSplit> {
|
|
|
private final AssoTaskPersonelService assoTaskPersonelService;
|
|
|
private final FeatureService featureService;
|
|
|
+ private final ReportService reportService;
|
|
|
|
|
|
/**
|
|
|
*
|
|
@@ -50,12 +52,13 @@ public class AssoTaskPatentSplitService extends ServiceImpl<AssoTaskPatentSplitM
|
|
|
return map;
|
|
|
}else {
|
|
|
Map<String, Object> map = new HashMap<>();
|
|
|
- LambdaQueryWrapper<Features> queryWrapper=new LambdaQueryWrapper<>();
|
|
|
- queryWrapper.eq(Features::getReportId,reportId).eq(Features::getSignPatentNo,patentNo);
|
|
|
- Features features = featureService.list(queryWrapper).get(0);
|
|
|
- if (features != null) {
|
|
|
- map.put("splitBy", features.getSplitBy());
|
|
|
- map.put("splitType", features.getSplitType());
|
|
|
+ LambdaQueryWrapper<Report> queryWrapper=new LambdaQueryWrapper<>();
|
|
|
+ queryWrapper.eq(Report::getId,reportId).eq(Report::getSignPatentNo,patentNo);
|
|
|
+ Report report = reportService.list(queryWrapper).get(0);
|
|
|
+ if (report != null) {
|
|
|
+ map.put("splitBy", report.getSplitBy());
|
|
|
+ map.put("splitType", report.getSplitType());
|
|
|
+
|
|
|
} else {
|
|
|
map.put("splitBy", null);
|
|
|
map.put("splitType", null);
|