|
|
|
|
@ -92,18 +92,36 @@ public class HighDangerController { |
|
|
|
|
Date pcEndTime = base.getPcEndTime(); |
|
|
|
|
if(pcEndTime != null){ |
|
|
|
|
long diff = nowDate.getTime() - pcEndTime.getTime(); |
|
|
|
|
// 时间差
|
|
|
|
|
// 时间差,天数
|
|
|
|
|
long diffDays = diff / (24 * 60 * 60 * 1000); |
|
|
|
|
diffDays = Math.abs(diffDays); |
|
|
|
|
|
|
|
|
|
// 小时
|
|
|
|
|
long remainingHours = (diff % (24 * 60 * 60 * 1000)) / (60 * 60 * 1000); |
|
|
|
|
remainingHours = Math.abs(remainingHours); |
|
|
|
|
|
|
|
|
|
// 判断不足一小时
|
|
|
|
|
long diffHours = diff / (60 * 60 * 1000); |
|
|
|
|
diffHours = Math.abs(diffHours); |
|
|
|
|
|
|
|
|
|
int comparison = nowDate.compareTo(pcEndTime); |
|
|
|
|
if(comparison < 0) { // 超期
|
|
|
|
|
if(diffHours < 1){ |
|
|
|
|
base.setDeadlineStatus("超期不足一小时"); |
|
|
|
|
base.setDeadlineType("1"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
base.setDeadline(diffDays); |
|
|
|
|
base.setDeadlineStatus("超期" + diffDays + "天"); |
|
|
|
|
base.setDeadlineStatus("超期" + diffDays + "天" + remainingHours + "小时"); |
|
|
|
|
base.setDeadlineType("1"); |
|
|
|
|
} else if(comparison > 0 && diffDays <= 3) { // 临期
|
|
|
|
|
if(diffHours < 1){ |
|
|
|
|
base.setDeadlineStatus("临期不足一小时"); |
|
|
|
|
base.setDeadlineType("2"); |
|
|
|
|
continue; |
|
|
|
|
} |
|
|
|
|
base.setDeadline(diffDays); |
|
|
|
|
base.setDeadlineStatus("临期" + diffDays + "天"); |
|
|
|
|
base.setDeadlineStatus("临期" + diffDays + "天" + remainingHours + "小时"); |
|
|
|
|
base.setDeadlineType("2"); |
|
|
|
|
} else { // 正常
|
|
|
|
|
base.setDeadline(diffDays); |
|
|
|
|
@ -421,6 +439,10 @@ public class HighDangerController { |
|
|
|
|
|
|
|
|
|
log.info("/getImportDangers(查询重点排查选项)接口被调用,调用ip: {}, 入参:{}", request.getRemoteAddr(),"无"); |
|
|
|
|
List<ImportDangerDTO> importDanger = highDangerMapper.getImportDanger(); |
|
|
|
|
for (ImportDangerDTO importDangerDTO : importDanger){ |
|
|
|
|
List<ThtDangerItems> importDangerItems = highDangerMapper.getImportDangerItems(importDangerDTO.getNid()); |
|
|
|
|
importDangerDTO.setDangerItems(importDangerItems); |
|
|
|
|
} |
|
|
|
|
log.info("/getImportDangers(查询重点排查选项)接口返回, 客户端ip: {}, 返回数据:{}", request.getRemoteAddr(), importDanger); |
|
|
|
|
if(importDanger != null){ |
|
|
|
|
return ServerResponse.ok(importDanger); |
|
|
|
|
@ -593,9 +615,11 @@ public class HighDangerController { |
|
|
|
|
排查第三页--重点排查新增标签详情数据 |
|
|
|
|
*/ |
|
|
|
|
@GetMapping("/getImportDangerDisplayDetail") |
|
|
|
|
public ServerResponse<?> getImportDangerDisplayDetail(@RequestParam String businessId, HttpServletRequest request){ |
|
|
|
|
public ServerResponse<?> getImportDangerDisplayDetail(@RequestParam String businessId, |
|
|
|
|
@RequestParam String dangerId, |
|
|
|
|
HttpServletRequest request){ |
|
|
|
|
log.info("/getImportDangerDisplayDetail(排查第三页--重点排查新增标签详情数据)接口被调用,调用ip: {}, 入参:{}", request.getRemoteAddr(),businessId); |
|
|
|
|
List<ThtHiddenDataCollectConfigExtra> importDangerList = highDangerMapper.getImportDangerDisplay(businessId); |
|
|
|
|
List<ThtHiddenDataCollectConfigExtra> importDangerList = highDangerMapper.getImportDangerDisplay(businessId,dangerId); |
|
|
|
|
log.info("/getImportDangerDisplayDetail(排查第三页--重点排查新增标签详情数据)接口返回, 客户端ip: {}, 返回数据:{}", request.getRemoteAddr(), importDangerList); |
|
|
|
|
if(importDangerList != null){ |
|
|
|
|
return ServerResponse.ok(importDangerList); |
|
|
|
|
|