/// *
// * Ant Group
// * Copyright (c) 2004-2024 All Rights Reserved.
// */
//package org.jeecg.modules.database.enhance;
//
//import org.jeecg.modules.database.entity.Experiment;
//import org.jeecg.modules.database.service.IExperimentService;
//import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaListInter;
//import org.jeecg.modules.online.config.exception.BusinessException;
//import org.springframework.beans.factory.annotation.Autowired;
//import org.springframework.stereotype.Component;
//
//import java.util.List;
//import java.util.Map;
//
///**
// * @author lise
// * @version RateEnhance.java, v 0.1 2024年11月16日 12:42 lise
// */
//@Component("rateEnhance")
//public class RateEnhance implements CgformEnhanceJavaListInter {
//    @Autowired
//    private IExperimentService experimentService;
//
//    @Override
//    public void execute(String s, List<Map<String, Object>> data) throws BusinessException {
//        System.out.println("=====rateEnhance=====");
//        for (Map<String, Object> map : data) {
//            Object db = map.get("experimentId");
//            if (db == null) {
//                continue;
//            }
//            Experiment experiment = experimentService.getById(db.toString());
//            if (experiment == null) {
//                continue;
//            }
//            map.put("experimentName", experiment.getName());
//            map.put("experimentNo", experiment.getExperimentNo());
//        }
//    }
//}