铭牌如果时间为空,处理为null
This commit is contained in:
@@ -214,7 +214,7 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
log.warn("获取许可超时,跳过执行任务");
|
||||
return;
|
||||
}
|
||||
log.info("itemvalue 画像业务场景",item);
|
||||
log.info("itemvalue 画像业务场景{}",item);
|
||||
CompletableFuture.runAsync(() -> {
|
||||
//"analysisScene": "分析类型", // 1、企微会话 2、AI通话录音 3、AI铭牌(客流) 4、AI铭牌(试驾)
|
||||
DiFyReq diFyImageReq2 = new DiFyReq();
|
||||
@@ -223,10 +223,15 @@ public class TmNameplateCorpusServiceImpl extends ServiceImpl<TmNameplateCorpusM
|
||||
log.info("getNameplateEndTime is null");
|
||||
inputMap2.put("communicateDate", "null");
|
||||
}else {
|
||||
ZonedDateTime zonedDateTime = ZonedDateTime.parse(item.getNameplateEndTime().toString());
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
String formattedDateStartTime = zonedDateTime.format(formatter);
|
||||
inputMap2.put("communicateDate", formattedDateStartTime);
|
||||
try {
|
||||
log.info("getNameplateEndTime is not null");
|
||||
ZonedDateTime zonedDateTime = ZonedDateTime.parse(item.getNameplateEndTime().toString());
|
||||
DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss");
|
||||
String formattedDateStartTime = zonedDateTime.format(formatter);
|
||||
inputMap2.put("communicateDate", formattedDateStartTime);
|
||||
}catch (Exception e){
|
||||
log.info("getNameplateEndTime {}", e.getMessage());
|
||||
}
|
||||
}
|
||||
|
||||
log.info("getNameplateEndTime");
|
||||
|
||||
Reference in New Issue
Block a user