|
|
@ -25,6 +25,8 @@ import org.springblade.core.mp.base.BaseEntity; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.api.R; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springblade.core.tool.utils.*; |
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
import org.springblade.flow.core.feign.IFlowClient; |
|
|
|
|
|
|
|
import org.springblade.system.user.cache.UserCache; |
|
|
|
|
|
|
|
import org.springblade.system.user.entity.User; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.transaction.annotation.Transactional; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
import org.springframework.web.bind.annotation.*; |
|
|
|
|
|
|
|
|
|
|
@ -37,6 +39,7 @@ import java.time.format.DateTimeFormatter; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.Date; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
import java.util.Map; |
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
import java.util.Optional; |
|
|
|
import java.util.concurrent.ExecutionException; |
|
|
|
import java.util.concurrent.ExecutionException; |
|
|
|
import java.util.concurrent.FutureTask; |
|
|
|
import java.util.concurrent.FutureTask; |
|
|
|
import java.util.stream.Collectors; |
|
|
|
import java.util.stream.Collectors; |
|
|
@ -303,7 +306,8 @@ public class TicketInfoClient implements ITicketInfoClient { |
|
|
|
if(Func.isNotEmpty(workTicketList)) { |
|
|
|
if(Func.isNotEmpty(workTicketList)) { |
|
|
|
List<String> overviewList = workTicketList.stream().map(workTicketInfo -> { |
|
|
|
List<String> overviewList = workTicketList.stream().map(workTicketInfo -> { |
|
|
|
String startTime = workTicketInfo.getPlanStartTime().format(DateUtil.DATETIME_FORMATTER); |
|
|
|
String startTime = workTicketInfo.getPlanStartTime().format(DateUtil.DATETIME_FORMATTER); |
|
|
|
return String.format(overviewTemplate, workTicketInfo.getCreateUserName(), startTime, workTicketInfo.getEmName(), workTicketInfo.getWorkContent()); |
|
|
|
String createUserName = Optional.ofNullable(workTicketInfo.getCreateUser()).map(UserCache::getUser).map(User::getName).orElse(""); |
|
|
|
|
|
|
|
return String.format(overviewTemplate, createUserName, startTime, workTicketInfo.getEmName(), workTicketInfo.getWorkContent()); |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
}).collect(Collectors.toList()); |
|
|
|
return R.data(overviewList); |
|
|
|
return R.data(overviewList); |
|
|
|
} |
|
|
|
} |
|
|
|