|
@@ -100,9 +100,6 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
@Autowired
|
|
|
private FsStoreScrmServiceImpl fsStoreScrmService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private MedicalMallConfig medicalMallConfig;
|
|
|
-
|
|
|
@Autowired
|
|
|
private CloudHostProper cloudHostProper;
|
|
|
|
|
@@ -758,7 +755,9 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
|
|
|
@Override
|
|
|
public List<FsStoreProductListQueryVO> selectFsStoreProductListQuery(FsStoreProductQueryParam param) {
|
|
|
- boolean stores = medicalMallConfig.isStores();
|
|
|
+ SysConfig config = configService.selectConfigByConfigKey("medicalMall.func.switch");
|
|
|
+ MedicalMallConfig medicalMallConfig = JSON.parseObject(config.getConfigValue(), MedicalMallConfig.class);
|
|
|
+ boolean stores = medicalMallConfig != null && medicalMallConfig.isStores();
|
|
|
param.setIsStores(stores?1:0);
|
|
|
return fsStoreProductMapper.selectFsStoreProductListQuery(param);
|
|
|
}
|
|
@@ -791,6 +790,8 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
|
|
|
@Override
|
|
|
public List<FsStoreProductListQueryVO> selectFsStoreProductNewQuery(int count) {
|
|
|
+ SysConfig config = configService.selectConfigByConfigKey("medicalMall.func.switch");
|
|
|
+ MedicalMallConfig medicalMallConfig = JSON.parseObject(config.getConfigValue(), MedicalMallConfig.class);
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
map.put("count", count);
|
|
|
map.put("config", medicalMallConfig);
|
|
@@ -799,6 +800,8 @@ public class FsStoreProductScrmServiceImpl implements IFsStoreProductScrmService
|
|
|
|
|
|
@Override
|
|
|
public List<FsStoreProductListQueryVO> selectFsStoreProductHotQuery(int count) {
|
|
|
+ SysConfig config = configService.selectConfigByConfigKey("medicalMall.func.switch");
|
|
|
+ MedicalMallConfig medicalMallConfig = JSON.parseObject(config.getConfigValue(), MedicalMallConfig.class);
|
|
|
HashMap<String, Object> map = new HashMap<>();
|
|
|
map.put("count", count);
|
|
|
map.put("config", medicalMallConfig);
|