浏览代码

去除状态校验

yjwang 1 月之前
父节点
当前提交
7224b4b540
共有 1 个文件被更改,包括 1 次插入8 次删除
  1. 1 8
      fs-service/src/main/java/com/fs/hisStore/service/impl/FsStoreScrmServiceImpl.java

+ 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);
                         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);
         fsStoreMapper.updateFsStore(updateStore);
         //更新日志
         //更新日志
         storeAuditLogUtil.addAudit(fsStore.getStoreId(), fsStore.getReason(), fsStore.getAttachImage());
         storeAuditLogUtil.addAudit(fsStore.getStoreId(), fsStore.getReason(), fsStore.getAttachImage());