提交 51e506b3 authored 作者: 杨凯's avatar 杨凯

feat:家庭医生初始化

上级 2bc7459e
...@@ -88,11 +88,9 @@ public class PatientServiceImpl implements PatientService { ...@@ -88,11 +88,9 @@ public class PatientServiceImpl implements PatientService {
Date signEndTime = DateUtils.getAfterDay(curDate, CommonConstants.DAY); Date signEndTime = DateUtils.getAfterDay(curDate, CommonConstants.DAY);
Date signStartTime = new Date(); Date signStartTime = new Date();
try { try {
log.info("权益信息benefitsEndTime={}", entity.getBenefitsEndTime());
if (!StringUtils.isEmpty(entity.getBenefitsEndTime())) { if (!StringUtils.isEmpty(entity.getBenefitsEndTime())) {
signEndTime = DateUtils.parseDate(entity.getBenefitsEndTime(), DateUtils.FULL_FORMAT); signEndTime = DateUtils.parseDate(entity.getBenefitsEndTime(), DateUtils.FULL_FORMAT);
signStartTime = DateUtils.parseDate(entity.getBenefitsStartTime(), DateUtils.FULL_FORMAT); signStartTime = DateUtils.parseDate(entity.getBenefitsStartTime(), DateUtils.FULL_FORMAT);
log.info("权益信息signEndTime={},signStartTime={}", signEndTime, signStartTime);
} }
} catch (Exception e) { } catch (Exception e) {
return BaseResponse.error("没有查询到有关权益"); return BaseResponse.error("没有查询到有关权益");
......
...@@ -55,9 +55,11 @@ public class SignedTask { ...@@ -55,9 +55,11 @@ public class SignedTask {
@Scheduled(cron = "0 0 10 * * ?") @Scheduled(cron = "0 0 10 * * ?")
public void healthRecordWhetherUpdate() { public void healthRecordWhetherUpdate() {
log.info("开始进行健康查询处理...");
PatientSignEntity patientSignEntity = new PatientSignEntity(); PatientSignEntity patientSignEntity = new PatientSignEntity();
patientSignEntity.setStatus(StatusEnum.IN_CONSULTATION.getValue()); patientSignEntity.setStatus(StatusEnum.IN_CONSULTATION.getValue());
List<PatientSignEntity> patientSignEntities = patientSignSevice.selectList(patientSignEntity); List<PatientSignEntity> patientSignEntities = patientSignSevice.selectList(patientSignEntity);
log.info("查询健康patientSignEntities={}", patientSignEntities);
if (!patientSignEntities.isEmpty()) { if (!patientSignEntities.isEmpty()) {
for (PatientSignEntity ps : patientSignEntities) { for (PatientSignEntity ps : patientSignEntities) {
HealthInfoDTO healthInfoDTO = new HealthInfoDTO(); HealthInfoDTO healthInfoDTO = new HealthInfoDTO();
...@@ -135,7 +137,9 @@ public class SignedTask { ...@@ -135,7 +137,9 @@ public class SignedTask {
@Scheduled(cron = "0 0 20 * * ?") @Scheduled(cron = "0 0 20 * * ?")
public void holidayPush() { public void holidayPush() {
log.info("开始进行节假日消息处理...");
List<PatientSignEntity> patientSignEntities = patientSignSevice.selectList(new PatientSignEntity()); List<PatientSignEntity> patientSignEntities = patientSignSevice.selectList(new PatientSignEntity());
log.info("查询节假日消息patientSignEntities={}", patientSignEntities);
try { try {
if (!patientSignEntities.isEmpty()) { if (!patientSignEntities.isEmpty()) {
for (PatientSignEntity ps : patientSignEntities) { for (PatientSignEntity ps : patientSignEntities) {
...@@ -184,7 +188,9 @@ public class SignedTask { ...@@ -184,7 +188,9 @@ public class SignedTask {
@Scheduled(cron = "0 0 1 * * ?") @Scheduled(cron = "0 0 1 * * ?")
public void orderInvalidation() { public void orderInvalidation() {
log.info("开始进行权益信息处理...");
List<MobileBenefitPackageEntity> mobileBenefitPackageEntities = mobileBenefitPackageMapper.queryMaxOneList(); List<MobileBenefitPackageEntity> mobileBenefitPackageEntities = mobileBenefitPackageMapper.queryMaxOneList();
log.info("查询需要处理的权限mobileBenefitPackageEntities={}", mobileBenefitPackageEntities);
try { try {
if (!mobileBenefitPackageEntities.isEmpty()) { if (!mobileBenefitPackageEntities.isEmpty()) {
for (MobileBenefitPackageEntity mbp : mobileBenefitPackageEntities) { for (MobileBenefitPackageEntity mbp : mobileBenefitPackageEntities) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论