Explorar o código

去除状态校验

yjwang hai 1 mes
pai
achega
7224b4b540

+ 1 - 8
fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreScrmServiceImpl.java

@@ -316,14 +316,7 @@ public class FsStoreScrmServiceImpl implements IFsStoreScrmService {
                         fsStore.getStoreId(), fsStoreScrm.getBusinessScope(), selectableProductTypes);
             }
         }
-        
-        if (fsStoreScrm.getStatus() == 0) {
-            LocalDate today = LocalDate.now(ZoneId.of("Asia/Shanghai"));
-            if (fsStoreScrm.getBusinessLicenseExpireEnd().isAfter(today) && fsStoreScrm.getDrugLicenseExpiryEnd().isAfter(today)
-                    && fsStoreScrm.getMedicalDevice2ExpiryEnd().isAfter(today) && fsStoreScrm.getMedicalLicenseExpiryEnd().isAfter(today)) {
-                updateStore.setStatus(1);
-            }
-        }
+
         fsStoreMapper.updateFsStore(updateStore);
         //更新日志
         storeAuditLogUtil.addAudit(fsStore.getStoreId(), fsStore.getReason(), fsStore.getAttachImage());