|
|
@ -133,13 +133,13 @@ public class TaskController {
|
|
|
|
String url = e.getUrl();
|
|
|
|
String url = e.getUrl();
|
|
|
|
if (url != null && e.getUrl().lastIndexOf(".") != -1) {
|
|
|
|
if (url != null && e.getUrl().lastIndexOf(".") != -1) {
|
|
|
|
l.add(new Reference().setTitle(task.getTitle()).setCoverUrl(task.getCoverUrl()).setDuration(e.getDuration()).setCreatAt(LocalDateTime.now()).setUpdateAt(LocalDateTime.now())
|
|
|
|
l.add(new Reference().setTitle(task.getTitle()).setCoverUrl(task.getCoverUrl()).setDuration(e.getDuration()).setCreatAt(LocalDateTime.now()).setUpdateAt(LocalDateTime.now())
|
|
|
|
.setFileUrl(url).setType(FileTypeUtil.getcontentTypeNum(url.substring(url.lastIndexOf(".")))));
|
|
|
|
.setFileUrl(url).setType(FileTypeUtil.getcontentTypeNum(url.substring(url.lastIndexOf(".")))).setIsDeleted(1));
|
|
|
|
// ta.add(new TopicActivity().setTitle(task.getTitle()).setCover(task.getCoverUrl()).setCreatAt(LocalDateTime.now())
|
|
|
|
// ta.add(new TopicActivity().setTitle(task.getTitle()).setCover(task.getCoverUrl()).setCreatAt(LocalDateTime.now())
|
|
|
|
// .setContent(e).setType(FileTypeUtil.getcontentTypeNum(e.substring(e.lastIndexOf(".")))));
|
|
|
|
// .setContent(e).setType(FileTypeUtil.getcontentTypeNum(e.substring(e.lastIndexOf(".")))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (l.size() > 0) {
|
|
|
|
if (l.size() > 0) {
|
|
|
|
// referenceService.saveBatch(l);
|
|
|
|
referenceService.saveBatch(l);
|
|
|
|
// topicActivityService.saveBatch(ta);
|
|
|
|
// topicActivityService.saveBatch(ta);
|
|
|
|
List<Integer> reference = new ArrayList<>();
|
|
|
|
List<Integer> reference = new ArrayList<>();
|
|
|
|
for (Reference r : l) {
|
|
|
|
for (Reference r : l) {
|
|
|
@ -616,6 +616,12 @@ public class TaskController {
|
|
|
|
private String userName;
|
|
|
|
private String userName;
|
|
|
|
@Schema(title = "部门名称")
|
|
|
|
@Schema(title = "部门名称")
|
|
|
|
private String departmentName;
|
|
|
|
private String departmentName;
|
|
|
|
|
|
|
|
@Schema(title = "开始时间(yyyy-MM-dd HH:mm:ss)")
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
|
|
|
private LocalDateTime beginTime;
|
|
|
|
|
|
|
|
@Schema(title = "结束时间(yyyy-MM-dd HH:mm:ss)")
|
|
|
|
|
|
|
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
|
|
|
|
|
|
|
|
private LocalDateTime endTime;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@Operation(summary = "任务传播数据")
|
|
|
|
@Operation(summary = "任务传播数据")
|
|
|
@ -626,6 +632,12 @@ public class TaskController {
|
|
|
|
qw.eq("t2.id", param.getId()).groupBy("t1.userId");
|
|
|
|
qw.eq("t2.id", param.getId()).groupBy("t1.userId");
|
|
|
|
qw.like(param.getUserName() != null, "t3.name", param.getUserName());
|
|
|
|
qw.like(param.getUserName() != null, "t3.name", param.getUserName());
|
|
|
|
qw.like(param.getDepartmentName() != null, "t4.name", param.getDepartmentName());
|
|
|
|
qw.like(param.getDepartmentName() != null, "t4.name", param.getDepartmentName());
|
|
|
|
|
|
|
|
if(null !=param.getBeginTime()){
|
|
|
|
|
|
|
|
qw.ge( "date_format(t1.creatAt, '%Y-%m-%d')", param.getBeginTime());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
if(null !=param.getEndTime()){
|
|
|
|
|
|
|
|
qw.le( "date_format(t1.creatAt, '%Y-%m-%d')", param.getEndTime());
|
|
|
|
|
|
|
|
}
|
|
|
|
qw.orderByDesc("effectResultSum");
|
|
|
|
qw.orderByDesc("effectResultSum");
|
|
|
|
return Result.success( taskService.taskEffectDataPage(MybatisPlusUtil.SetNumPage(param.getPageNum(), param.getPageSize()),qw));
|
|
|
|
return Result.success( taskService.taskEffectDataPage(MybatisPlusUtil.SetNumPage(param.getPageNum(), param.getPageSize()),qw));
|
|
|
|
}
|
|
|
|
}
|
|
|
|