|
|
@@ -366,20 +366,6 @@ public class PtlAgreementCostServiceImpl extends ServiceImpl<PtlAgreementCostMap
|
|
|
String.valueOf(costManagementVoPage.getRecords().get(0).getCostId()) : "";
|
|
|
}
|
|
|
|
|
|
-
|
|
|
- public static boolean isValid(String effectiveTime, String failureTime) {
|
|
|
- if (StrUtil.isBlank(effectiveTime) || StrUtil.isBlank(failureTime)){
|
|
|
- return false;
|
|
|
- }
|
|
|
- LocalDateTime now = LocalDateTime.now();
|
|
|
- LocalDateTime start = LocalDateTime.parse(effectiveTime,
|
|
|
- DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
- LocalDateTime end = LocalDateTime.parse(failureTime,
|
|
|
- DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm:ss"));
|
|
|
-
|
|
|
- return !now.isBefore(start) && !now.isAfter(end);
|
|
|
- }
|
|
|
-
|
|
|
/**
|
|
|
* 查询协议费用
|
|
|
*
|
|
|
@@ -397,13 +383,6 @@ public class PtlAgreementCostServiceImpl extends ServiceImpl<PtlAgreementCostMap
|
|
|
if(item.getRuleDescription() != null && !item.getRuleDescription().isEmpty()){
|
|
|
item.setRuleDescription(item.getRuleDescription().substring(0,item.getRuleDescription().length()-1));
|
|
|
}
|
|
|
- // 刷新有效状态
|
|
|
- boolean valid = isValid(item.getEffectiveTime(), item.getFailureTime());
|
|
|
- if(valid){
|
|
|
- item.setIsValid("0");
|
|
|
- }else{
|
|
|
- item.setIsValid("1");
|
|
|
- }
|
|
|
});
|
|
|
return HttpResult.ok(costManagementVoPage);
|
|
|
}
|