|  | @ -7,10 +7,7 @@ import com.yihu.ehr.datacollect.model.RsJobLog;
 | 
	
		
			
				|  |  | import com.yihu.ehr.datacollect.service.intf.IDatacollectManager;
 | 
	
		
			
				|  |  | import com.yihu.ehr.datacollect.service.intf.IDatacollectService;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.constrant.DateConvert;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.model.ActionResult;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.model.DictItem;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.model.DictionaryResult;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.model.Result;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.model.*;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.util.controller.BaseController;
 | 
	
		
			
				|  |  | import com.yihu.ehr.framework.util.operator.CollectionUtil;
 | 
	
		
			
				|  |  | import com.yihu.ehr.resource.service.IStdService;
 | 
	
	
		
			
				|  | @ -457,39 +454,33 @@ public class DataCollectController extends BaseController {
 | 
	
		
			
				|  |  |         return "partView";
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     @RequestMapping("getJobLayout")
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取任务编排列表
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping("getLayout")
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public List<SchemeResultDetailModel> getJobLayout() {
 | 
	
		
			
				|  |  |     public DetailModelResult getLayout() {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             List<SchemeResultDetailModel> schemeResultDetailModels = adapterSchemeService.getSchemeList2();
 | 
	
		
			
				|  |  |             DetailModelResult schemeResultDetailModels = adapterSchemeService.getSchemeList();
 | 
	
		
			
				|  |  |             ObjectMapper mapper = new ObjectMapper();
 | 
	
		
			
				|  |  |             String result = mapper.writeValueAsString(schemeResultDetailModels);
 | 
	
		
			
				|  |  |             return schemeResultDetailModels;
 | 
	
		
			
				|  |  | //            DictionaryResult dictionaryResult = new DictionaryResult();
 | 
	
		
			
				|  |  | //            List<DictItem> detailModelList = new ArrayList<DictItem>();
 | 
	
		
			
				|  |  | //            for(SchemeResultDetailModel schemeResultDetailModel : schemeResultDetailModels){
 | 
	
		
			
				|  |  | //                DictItem items = new DictItem();
 | 
	
		
			
				|  |  | //                String id = schemeResultDetailModel.getId();
 | 
	
		
			
				|  |  | //                items.setCode(id);
 | 
	
		
			
				|  |  | //                items.setValue(schemeResultDetailModel.getName());
 | 
	
		
			
				|  |  | //                detailModelList.add(items);
 | 
	
		
			
				|  |  | //            }
 | 
	
		
			
				|  |  | //            dictionaryResult.setDetailModelList(detailModelList);
 | 
	
		
			
				|  |  | //            return dictionaryResult;
 | 
	
		
			
				|  |  |         } catch (Exception ex) {
 | 
	
		
			
				|  |  | //            return Result.error(ex.getMessage());
 | 
	
		
			
				|  |  |             ex.printStackTrace();
 | 
	
		
			
				|  |  |             return null;
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 保存或更新 任务编排信息
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param list 适配方案 数据集关系
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping("updateSchemeList")
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public Result saveOrUpdateSchemes( String list) {
 | 
	
		
			
				|  |  |     public Result saveOrUpdateSchemes(String list) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return adapterSchemeService.saveOrUpdateSchemeList(list);
 | 
	
		
			
				|  |  |         } catch (Exception ex) {
 | 
	
	
		
			
				|  | @ -500,45 +491,49 @@ public class DataCollectController extends BaseController {
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 获取适配方案 数据集关系
 | 
	
		
			
				|  |  |      * @param schemeId 适配方案ID
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param versionId 适配方案版本ID
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping("getSchemeDataSets")
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public List getSchemeDataSets(
 | 
	
		
			
				|  |  |             @RequestParam(value = "schemeId", required = true) Integer schemeId,
 | 
	
		
			
				|  |  |             @RequestParam(value = "version", required = true) String version
 | 
	
		
			
				|  |  |             ) {
 | 
	
		
			
				|  |  |     public DetailModelResult getSchemeDataSets(
 | 
	
		
			
				|  |  |             @RequestParam(value = "versionId", required = true) Integer versionId
 | 
	
		
			
				|  |  |     ) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return adapterSchemeService.getAdapterDataSets(schemeId,version);
 | 
	
		
			
				|  |  |         } catch (Exception ex) {
 | 
	
		
			
				|  |  |             return new ArrayList<>();
 | 
	
		
			
				|  |  |             return adapterSchemeService.getSchemeDataset(versionId);
 | 
	
		
			
				|  |  |         } catch (Exception e) {
 | 
	
		
			
				|  |  |             e.printStackTrace();
 | 
	
		
			
				|  |  |             return new DetailModelResult();
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 保存适配方案数据集关系 (暂定)
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param schemeId
 | 
	
		
			
				|  |  |      * @param version
 | 
	
		
			
				|  |  |      * @param dataSetList
 | 
	
		
			
				|  |  |      * @param data     映射关系
 | 
	
		
			
				|  |  |      * @return
 | 
	
		
			
				|  |  |      */
 | 
	
		
			
				|  |  |     @RequestMapping("addSchemeRelation")
 | 
	
		
			
				|  |  |     @ResponseBody
 | 
	
		
			
				|  |  |     public List addSchemeRelation(
 | 
	
		
			
				|  |  |     public ActionResult addSchemeRelation(
 | 
	
		
			
				|  |  |             @RequestParam(value = "schemeId", required = true) Integer schemeId,
 | 
	
		
			
				|  |  |             @RequestParam(value = "version", required = true) String version,
 | 
	
		
			
				|  |  |             @RequestParam(value = "dataSetList", required = true) String dataSetList
 | 
	
		
			
				|  |  |             @RequestParam(value = "data", required = true) String data
 | 
	
		
			
				|  |  |     ) {
 | 
	
		
			
				|  |  |         try {
 | 
	
		
			
				|  |  |             return adapterSchemeService.getAdapterDataSets(schemeId,version);
 | 
	
		
			
				|  |  |             return adapterSchemeService.saveDataSetRelation(schemeId, version, data);
 | 
	
		
			
				|  |  |         } catch (Exception ex) {
 | 
	
		
			
				|  |  |             return new ArrayList<>();
 | 
	
		
			
				|  |  |             ex.printStackTrace();
 | 
	
		
			
				|  |  |             return new ActionResult();
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  |     }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |     /**
 | 
	
		
			
				|  |  |      * 保存适配方案 数据映射关系
 | 
	
		
			
				|  |  |      *
 | 
	
		
			
				|  |  |      * @param schemeId
 | 
	
		
			
				|  |  |      * @param version
 | 
	
		
			
				|  |  |      * @param data
 |