|
|
@@ -185,13 +185,14 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService {
|
|
|
|
|
|
//验证资质日期是否正常
|
|
|
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.getStatus() == 0) {
|
|
|
- fsStore.setStatus(0);
|
|
|
- } else {
|
|
|
- fsStore.setStatus(1);
|
|
|
+ if (Objects.equals(String.valueOf(fsStore.getIsBusinessLicensePermanent()), "0")) {
|
|
|
+ if (fsStore.getBusinessLicenseExpireEnd().isBefore(today) || fsStore.getDrugLicenseExpiryEnd().isBefore(today)
|
|
|
+ || fsStore.getMedicalDevice2ExpiryEnd().isBefore(today) || fsStore.getMedicalLicenseExpiryEnd().isBefore(today) || fsStore.getStatus() == 0) {
|
|
|
+ fsStore.setStatus(0);
|
|
|
+ } else {
|
|
|
+ fsStore.setStatus(1);
|
|
|
+ }
|
|
|
}
|
|
|
-
|
|
|
return fsStoreMapper.updateFsStore(fsStore);
|
|
|
}
|
|
|
|