|
@@ -805,6 +805,8 @@ public class TaskService extends ServiceImpl<TaskMapper, Task> {
|
|
else if ((patentVO == null || patentVO.getFiledOptions() == null || patentVO.getFiledOptions().size() == 0) && syneryVO.getIsAll() == 0) {
|
|
else if ((patentVO == null || patentVO.getFiledOptions() == null || patentVO.getFiledOptions().size() == 0) && syneryVO.getIsAll() == 0) {
|
|
List<String> AllpatentNos = compareMessageService.getBaseMapper().getComparedMessageAll(queryCMVO);
|
|
List<String> AllpatentNos = compareMessageService.getBaseMapper().getComparedMessageAll(queryCMVO);
|
|
patentNos = AllpatentNos;
|
|
patentNos = AllpatentNos;
|
|
|
|
+ patentVO.setPatentNos(patentNos);
|
|
|
|
+ patentVO.setPatentName(syneryVO.getPatentVO().getPatentName());
|
|
}
|
|
}
|
|
//无查询条件并且是全部的专利
|
|
//无查询条件并且是全部的专利
|
|
else if ((patentVO == null || patentVO.getFiledOptions() == null || patentVO.getFiledOptions().size() == 0) && syneryVO.getIsAll() == 1) {
|
|
else if ((patentVO == null || patentVO.getFiledOptions() == null || patentVO.getFiledOptions().size() == 0) && syneryVO.getIsAll() == 1) {
|
|
@@ -820,6 +822,7 @@ public class TaskService extends ServiceImpl<TaskMapper, Task> {
|
|
List<String> temPatentNos = reportFieldService.getPatentNo1(patentVO.getFiledOptions(), syneryVO.getReportId(), task.getId(), patentVO.getTaskStatus());
|
|
List<String> temPatentNos = reportFieldService.getPatentNo1(patentVO.getFiledOptions(), syneryVO.getReportId(), task.getId(), patentVO.getTaskStatus());
|
|
List<String> strings1 = new ArrayList<>(CollectionUtils.intersection(temPatentNos, AllpatentNos));
|
|
List<String> strings1 = new ArrayList<>(CollectionUtils.intersection(temPatentNos, AllpatentNos));
|
|
patentVO.setPatentNos(temPatentNos);
|
|
patentVO.setPatentNos(temPatentNos);
|
|
|
|
+ patentVO.setPatentName(syneryVO.getPatentVO().getPatentName());
|
|
}
|
|
}
|
|
//有查询条件并且是全部的专利
|
|
//有查询条件并且是全部的专利
|
|
else if (patentVO != null && patentVO.getFiledOptions() != null && patentVO.getFiledOptions().size() != 0 && syneryVO.getIsAll() == 1) {
|
|
else if (patentVO != null && patentVO.getFiledOptions() != null && patentVO.getFiledOptions().size() != 0 && syneryVO.getIsAll() == 1) {
|
|
@@ -846,10 +849,47 @@ public class TaskService extends ServiceImpl<TaskMapper, Task> {
|
|
});
|
|
});
|
|
// 分配信息入库
|
|
// 分配信息入库
|
|
assoTaskPersonelService.saveBatch(assoTaskPersonels);
|
|
assoTaskPersonelService.saveBatch(assoTaskPersonels);
|
|
|
|
+ Map<String, Object> map = new LinkedHashMap<>();
|
|
|
|
+ map.put("title", "任务通知");
|
|
|
|
+ map.put("template", "mail/Synery.html");
|
|
|
|
|
|
if (synery_ccs != null && synery_ccs.size() != 0) {
|
|
if (synery_ccs != null && synery_ccs.size() != 0) {
|
|
synery_ccs.forEach(item -> {
|
|
synery_ccs.forEach(item -> {
|
|
item.setTaskId(task.getId());
|
|
item.setTaskId(task.getId());
|
|
|
|
+ if (item.getCcId() != null) {
|
|
|
|
+ String resBody = null;
|
|
|
|
+ try {
|
|
|
|
+ resBody = outInterfaceService.getPersonnelByIdsFromPCS(Arrays.asList(item.getCcId()));
|
|
|
|
+ } catch (IOException e) {
|
|
|
|
+ e.printStackTrace();
|
|
|
|
+ }
|
|
|
|
+ JSONObject jsonObject = JSONObject.parseObject(resBody);
|
|
|
|
+ //解析jason获得标的专利的权要
|
|
|
|
+ List<Personnel> personnels = JSON.parseArray(jsonObject.getString("data"), Personnel.class);
|
|
|
|
+ map.put("value1", personnels.get(0).getPersonnelName());
|
|
|
|
+ map.put("email", personnels.get(0).getPersonnelEmail());
|
|
|
|
+ map.put("img", "\\src\\main\\resources\\mail\\logo.png");
|
|
|
|
+ map.put("value2","aaa");
|
|
|
|
+ map.put("value3", "http://localhost:8086/Incomplete?taskId=" + task.getId() + "&reportId=" + task.getReportId() + "&type=1" + "&reportType=" + report.getType());
|
|
|
|
+ mailUtils.sendEmailMessage(map);
|
|
|
|
+ } else {
|
|
|
|
+ String orgin = item.getCcEmail();
|
|
|
|
+ String parStr = "\\<([^}]*)\\>";
|
|
|
|
+ Pattern pattern = Pattern.compile(parStr);
|
|
|
|
+ Matcher matcher = pattern.matcher(orgin);
|
|
|
|
+ if (matcher.find()) {
|
|
|
|
+ String personName = orgin.substring(0, matcher.start());
|
|
|
|
+ String email = matcher.group(0);
|
|
|
|
+ email = email.replace("<", "");
|
|
|
|
+ email = email.replace(">", "");
|
|
|
|
+ map.put("value1", personName);
|
|
|
|
+ map.put("email", email);
|
|
|
|
+ map.put("img", "\\src\\main\\resources\\mail\\logo.png");
|
|
|
|
+ map.put("value2", "aaa");
|
|
|
|
+ map.put("value3", "http://localhost:8086/identificationCode");
|
|
|
|
+ mailUtils.sendEmailMessage(map);
|
|
|
|
+ }
|
|
|
|
+ }
|
|
});
|
|
});
|
|
syneryCCService.saveBatch(synery_ccs);
|
|
syneryCCService.saveBatch(synery_ccs);
|
|
}
|
|
}
|
|
@@ -859,9 +899,6 @@ public class TaskService extends ServiceImpl<TaskMapper, Task> {
|
|
syneryCode.setCode(code);
|
|
syneryCode.setCode(code);
|
|
syneryCode.setTaskId(task.getId());
|
|
syneryCode.setTaskId(task.getId());
|
|
syneryCode.insert();
|
|
syneryCode.insert();
|
|
- Map<String, Object> map = new LinkedHashMap<>();
|
|
|
|
- map.put("title", "任务通知");
|
|
|
|
- map.put("template", "mail/Synery.html");
|
|
|
|
if (syneryVO.getHandlePersonId() != null) {
|
|
if (syneryVO.getHandlePersonId() != null) {
|
|
String resBody = outInterfaceService.getPersonnelByIdsFromPCS(Arrays.asList(task.getHandlePersonId()));
|
|
String resBody = outInterfaceService.getPersonnelByIdsFromPCS(Arrays.asList(task.getHandlePersonId()));
|
|
JSONObject jsonObject = JSONObject.parseObject(resBody);
|
|
JSONObject jsonObject = JSONObject.parseObject(resBody);
|