|
|
@ -180,11 +180,22 @@ public class BasicdataPriceServiceImpl extends BaseServiceImpl<BasicdataPriceMap |
|
|
|
if (CollUtil.isNotEmpty(basicdataPriceVOS)) { |
|
|
|
if (CollUtil.isNotEmpty(basicdataPriceVOS)) { |
|
|
|
for (BasicdataPricePageVO basicdataPriceVO : basicdataPriceVOS) { |
|
|
|
for (BasicdataPricePageVO basicdataPriceVO : basicdataPriceVOS) { |
|
|
|
// 维护状态
|
|
|
|
// 维护状态
|
|
|
|
|
|
|
|
DateTime now = DateUtil.date(); |
|
|
|
if (ObjectUtil.isNotEmpty(basicdataPriceVO.getExpiryTime())) { |
|
|
|
if (ObjectUtil.isNotEmpty(basicdataPriceVO.getExpiryTime())) { |
|
|
|
DateTime now = DateUtil.date(); |
|
|
|
|
|
|
|
if (now.isAfter(basicdataPriceVO.getExpiryTime())) { |
|
|
|
if (now.isAfter(basicdataPriceVO.getExpiryTime())) { |
|
|
|
// 已到期
|
|
|
|
// 已到期
|
|
|
|
basicdataPriceVO.setMaintenanceStatus("已过期"); |
|
|
|
basicdataPriceVO.setMaintenanceStatus("已过期"); |
|
|
|
|
|
|
|
basicdataPriceVO.setEffectiveStatus("已失效"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ObjectUtil.isNotEmpty(basicdataPriceVO.getEffectiveTime())) { |
|
|
|
|
|
|
|
if (now.isBefore(basicdataPriceVO.getEffectiveTime())) { |
|
|
|
|
|
|
|
basicdataPriceVO.setEffectiveStatus("待生效"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (ObjectUtil.isAllNotEmpty(basicdataPriceVO.getEffectiveTime(), basicdataPriceVO.getExpiryTime())) { |
|
|
|
|
|
|
|
if (now.isIn(basicdataPriceVO.getEffectiveTime(), basicdataPriceVO.getExpiryTime())) { |
|
|
|
|
|
|
|
basicdataPriceVO.setEffectiveStatus("生效中"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
// 服务类型
|
|
|
|
// 服务类型
|
|
|
|