实体类数据库关键字注释
This commit is contained in:
+3
-3
@@ -139,11 +139,11 @@ public class AsyncImportService {
|
||||
exportVO.setCenterName(Optional.ofNullable(groupedMap.get(tblQimoNotice.getExten())).map(EmergencyGrouped::getCenterName).orElse(""));
|
||||
exportVO.setSeatId(tblQimoNotice.getExten());
|
||||
exportVO.setPhone(tblQimoNotice.getCallNo());
|
||||
Optional.ofNullable(tblQimoNotice.getBeginTime())
|
||||
.ifPresent(begin -> Optional.ofNullable(tblQimoNotice.getEndTime()).ifPresent(end -> {
|
||||
Optional.ofNullable(tblQimoNotice.getBegin())
|
||||
.ifPresent(begin -> Optional.ofNullable(tblQimoNotice.getEnd()).ifPresent(end -> {
|
||||
exportVO.setCallDuration(String.valueOf(end.getTime() - begin.getTime()));
|
||||
}));
|
||||
exportVO.setCallTime(Optional.ofNullable(tblQimoNotice.getBeginTime())
|
||||
exportVO.setCallTime(Optional.ofNullable(tblQimoNotice.getBegin())
|
||||
.map(new SimpleDateFormat("yyyy-MM-dd HH:mm:ss", Locale.ENGLISH)::format).orElse(""));
|
||||
exports.add(exportVO);
|
||||
}
|
||||
|
||||
+2
-2
@@ -60,8 +60,8 @@ public class PhoneDataInfo {
|
||||
this.seatNo = tblQimoNotice.getExten();
|
||||
this.phone = tblQimoNotice.getCallNo();
|
||||
this.callTime = tblQimoNotice.getRing();
|
||||
if (ObjUtil.isNotEmpty(tblQimoNotice.getBeginTime()) && ObjUtil.isNotEmpty(tblQimoNotice.getEndTime())) {
|
||||
this.callDuration = String.valueOf((tblQimoNotice.getEndTime().getTime() - tblQimoNotice.getBeginTime().getTime()) / 1000);
|
||||
if (ObjUtil.isNotEmpty(tblQimoNotice.getBegin()) && ObjUtil.isNotEmpty(tblQimoNotice.getEnd())) {
|
||||
this.callDuration = String.valueOf((tblQimoNotice.getEnd().getTime() - tblQimoNotice.getBegin().getTime()) / 1000);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+2
-2
@@ -251,8 +251,8 @@ public class EmergencyGroupedServiceImpl extends MPJBaseServiceImpl<EmergencyGro
|
||||
vo.setDeptName(Optional.ofNullable(thirdDepart).map(SysDepart::getDepartName).orElse(""));
|
||||
Optional.ofNullable(item.getExten()).ifPresent(vo::setSeatId);
|
||||
Optional.ofNullable(item.getCallNo()).ifPresent(vo::setPhone);
|
||||
if (ObjectUtil.isNotEmpty(item.getEndTime()) && ObjectUtil.isNotEmpty(item.getBeginTime())){
|
||||
vo.setCallDuration(item.getEndTime().getTime() - item.getBeginTime().getTime());
|
||||
if (ObjectUtil.isNotEmpty(item.getEnd()) && ObjectUtil.isNotEmpty(item.getBegin())){
|
||||
vo.setCallDuration(item.getEnd().getTime() - item.getBegin().getTime());
|
||||
}
|
||||
Optional.ofNullable(item.getCreateDate()).ifPresent(vo::setCallTime);
|
||||
voList.add(vo);
|
||||
|
||||
Reference in New Issue
Block a user