|
@@ -29,6 +29,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
import io.netty.util.concurrent.DefaultEventExecutor;
|
|
import io.netty.util.concurrent.DefaultEventExecutor;
|
|
|
import io.netty.util.concurrent.SingleThreadEventExecutor;
|
|
import io.netty.util.concurrent.SingleThreadEventExecutor;
|
|
|
import lombok.Data;
|
|
import lombok.Data;
|
|
|
|
|
+import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.data.domain.PageRequest;
|
|
import org.springframework.data.domain.PageRequest;
|
|
|
|
|
|
|
|
import java.util.*;
|
|
import java.util.*;
|
|
@@ -46,6 +47,7 @@ import java.util.stream.Collectors;
|
|
|
* @createTime 2022年05月20日 08:33:00
|
|
* @createTime 2022年05月20日 08:33:00
|
|
|
*/
|
|
*/
|
|
|
@Data
|
|
@Data
|
|
|
|
|
+@Slf4j
|
|
|
public class HospitalManager {
|
|
public class HospitalManager {
|
|
|
private String hospitalId;
|
|
private String hospitalId;
|
|
|
|
|
|
|
@@ -112,6 +114,7 @@ public class HospitalManager {
|
|
|
*/
|
|
*/
|
|
|
public void refreshInfo(){
|
|
public void refreshInfo(){
|
|
|
BusHospitalEntity hospital = hospitalService.getById(hospitalId);
|
|
BusHospitalEntity hospital = hospitalService.getById(hospitalId);
|
|
|
|
|
+ log.info("医院【{}】,刷新信息,info【{}】,strategy【{}】",hospitalId,hospital,hospital.getStrategy());
|
|
|
storage.setConfig("info",hospital);
|
|
storage.setConfig("info",hospital);
|
|
|
storage.setConfig("strategy",hospital.getStrategy());
|
|
storage.setConfig("strategy",hospital.getStrategy());
|
|
|
|
|
|