小程序消息列表修改
This commit is contained in:
parent
f21a34522f
commit
117d7e3eb3
@ -22,6 +22,7 @@ import org.springframework.stereotype.Service;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDate;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@ -89,8 +90,8 @@ public class SendTextMessageServiceImpl implements SendTextMessageService {
|
||||
boolean before = localDate.isBefore(LocalDate.now()) || localDate.isEqual(LocalDate.now());
|
||||
if (before) {
|
||||
//超出7天,更改状态
|
||||
int i = LocalDate.now().compareTo(localDate);
|
||||
if (i >= pushMessageRestrictions.getTime()) {
|
||||
long until = LocalDate.now().until(localDate, ChronoUnit.DAYS);
|
||||
if (until >= pushMessageRestrictions.getTime()) {
|
||||
expiredManageRouteNodeIds.add(textMessage.getSignPatientManageRouteNodeId());
|
||||
continue;
|
||||
}
|
||||
|
||||
@ -21,6 +21,7 @@ import org.springframework.stereotype.Service;
|
||||
import javax.annotation.Resource;
|
||||
import java.time.LocalDate;
|
||||
import java.time.LocalDateTime;
|
||||
import java.time.temporal.ChronoUnit;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Objects;
|
||||
@ -86,8 +87,8 @@ public class subscribeTaskServiceImpl implements SubscribeTaskService {
|
||||
}
|
||||
boolean before = localDate.isBefore(LocalDate.now()) || localDate.isEqual(LocalDate.now());
|
||||
if (before) {
|
||||
int i = LocalDate.now().compareTo(localDate);
|
||||
if (i >= pushMessageRestrictions.getTime()) {
|
||||
long until = LocalDate.now().until(localDate, ChronoUnit.DAYS);
|
||||
if (until >= pushMessageRestrictions.getTime()) {
|
||||
expiredManageRouteNodeIds.add(patientVO.getSignPatientManageRouteNodeId());
|
||||
continue;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user