|
|
@@ -143,6 +143,16 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService
|
|
|
} catch (IllegalAccessException e) {
|
|
|
log.error("获取diff出错", e);
|
|
|
}
|
|
|
+
|
|
|
+ //验证资质日期是否正常
|
|
|
+ LocalDate today = LocalDate.now(ZoneId.of("Asia/Shanghai"));
|
|
|
+ if(fsStore.getBusinessLicenseExpireEnd().isBefore(today) || fsStore.getDrugLicenseExpiryEnd().isBefore(today)
|
|
|
+ || fsStore.getMedicalDevice2ExpiryEnd().isBefore(today) || fsStore.getMedicalLicenseExpiryEnd().isBefore(today)) {
|
|
|
+ fsStore.setStatus(0);
|
|
|
+ }else {
|
|
|
+ fsStore.setStatus(1);
|
|
|
+ }
|
|
|
+
|
|
|
return fsStoreMapper.updateFsStore(fsStore);
|
|
|
}
|
|
|
|
|
|
@@ -353,6 +363,15 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService
|
|
|
FsStoreScrm updateStore = new FsStoreScrm();
|
|
|
BeanUtils.copyProperties(fsStore, updateStore);
|
|
|
updateStore.setUpdateTime(DateUtils.getNowDate());
|
|
|
+ //验证资质日期是否正常
|
|
|
+ LocalDate today = LocalDate.now(ZoneId.of("Asia/Shanghai"));
|
|
|
+ if(fsStore.getBusinessLicenseExpireEnd().isBefore(today) || fsStore.getDrugLicenseExpiryEnd().isBefore(today)
|
|
|
+ || fsStore.getMedicalDevice2ExpiryEnd().isBefore(today) || fsStore.getMedicalLicenseExpiryEnd().isBefore(today)) {
|
|
|
+ updateStore.setStatus(0);
|
|
|
+ }else {
|
|
|
+ updateStore.setStatus(1);
|
|
|
+ }
|
|
|
+
|
|
|
return fsStoreMapper.updateFsStore(updateStore);
|
|
|
}
|
|
|
|