|
@@ -8,10 +8,7 @@ import com.diagbot.service.impl.IndexConfigServiceImpl;
|
|
import com.diagbot.util.BeanUtil;
|
|
import com.diagbot.util.BeanUtil;
|
|
import org.springframework.stereotype.Component;
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
|
-import java.util.ArrayList;
|
|
|
|
-import java.util.HashMap;
|
|
|
|
import java.util.List;
|
|
import java.util.List;
|
|
-import java.util.Map;
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
* @author wangfeng
|
|
* @author wangfeng
|
|
@@ -29,18 +26,15 @@ public class IndexConfigFacade extends IndexConfigServiceImpl {
|
|
*/
|
|
*/
|
|
public List<IndexConfigDTO> getindexConfig(Long diseaseId) {
|
|
public List<IndexConfigDTO> getindexConfig(Long diseaseId) {
|
|
QueryWrapper<IndexConfig> IndexConfigQuery = new QueryWrapper<>();
|
|
QueryWrapper<IndexConfig> IndexConfigQuery = new QueryWrapper<>();
|
|
- Map<String, Object> mapAll = new HashMap<>();
|
|
|
|
if (null != diseaseId) {
|
|
if (null != diseaseId) {
|
|
- mapAll.put("disease_id", diseaseId);
|
|
|
|
|
|
+ IndexConfigQuery.eq("disease_id", diseaseId);
|
|
}
|
|
}
|
|
|
|
|
|
- mapAll.put("is_deleted", IsDeleteEnum.N.getKey());
|
|
|
|
- IndexConfigQuery.allEq(mapAll);
|
|
|
|
- List<IndexConfigDTO> data = new ArrayList<>();
|
|
|
|
|
|
+ IndexConfigQuery.eq("is_deleted", IsDeleteEnum.N.getKey());
|
|
List<IndexConfig> datas = list(IndexConfigQuery);
|
|
List<IndexConfig> datas = list(IndexConfigQuery);
|
|
|
|
|
|
//过滤
|
|
//过滤
|
|
- data = BeanUtil.listCopyTo(datas, IndexConfigDTO.class);
|
|
|
|
|
|
+ List<IndexConfigDTO> data = BeanUtil.listCopyTo(datas, IndexConfigDTO.class);
|
|
return data;
|
|
return data;
|
|
}
|
|
}
|
|
|
|
|