|
|
@@ -8,7 +8,6 @@ import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
-import java.util.Objects;
|
|
|
|
|
|
@Getter
|
|
|
@Component
|
|
|
@@ -32,10 +31,10 @@ public class MedicalMallConfig {
|
|
|
public void init() {
|
|
|
JSONObject jsonObject = configUtil.generateConfigByKey("medicalMall.func.switch");
|
|
|
if (jsonObject != null) {
|
|
|
- this.isMedicalMall = Objects.equals(jsonObject.getString("isMedicalMall"), "1");
|
|
|
- this.isStatics = Objects.equals(jsonObject.getString("statics"), "1");
|
|
|
- this.isAudit = Objects.equals(jsonObject.getString("isAudit"), "1");
|
|
|
- this.isResource = Objects.equals(jsonObject.getString("isResource"), "1");
|
|
|
+ this.isMedicalMall = jsonObject.getBoolean("isMedicalMall");
|
|
|
+ this.isStatics = jsonObject.getBoolean("statics");
|
|
|
+ this.isAudit = jsonObject.getBoolean("isAudit");
|
|
|
+ this.isResource = jsonObject.getBoolean("isResource");
|
|
|
}
|
|
|
}
|
|
|
|