Commit a49b8b66 by fudahua

待办-今日待办

parent 005c000a
......@@ -64,6 +64,15 @@ public class PendingTaskApiServiceImpl implements PendingTaskApiService {
String endDate = yyyyMMdd + " 23:59:59";
List<PendingTaskBO> todayPending = pendingTaskService.listPendingTaskByCreateTime(enterpriseId, storeId, clerkId, startDate, endDate);
List<PendingTaskDetailDTO> retList = EntityUtil.changeEntityListByJSON(PendingTaskDetailDTO.class, todayPending);
if (CollectionUtils.isEmpty(retList)) {
return ServiceResponse.success(retList);
}
retList.forEach(dto -> {
String title = dto.getTitle();
PendingTaskTypeEnum taskTypeEnum = PendingTaskTypeEnum.getByType(dto.getTaskType());
dto.setDescription(taskTypeEnum.getDescription().replace("{}", title));
dto.setTitle(taskTypeEnum.getName());
});
return ServiceResponse.success(retList);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment