

package com.jeelowcode.module.biz.demo.test;


import com.jeelowcode.core.framework.config.aspect.enhance.model.EnhanceContext;
import com.jeelowcode.core.framework.config.aspect.enhance.plugin.AfterAdvicePlugin;
import com.jeelowcode.core.framework.utils.Func;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * @author JX
 * @create 2024-09-09 14:51
 * @dedescription:
 */

@Component("testListAndPageEnhance")
public class TestListAndPageEnhance implements AfterAdvicePlugin {
    @Override
    public void execute(EnhanceContext enhanceContext) {
        List<Map<String, Object>> list = enhanceContext.getParam().getList();
        list.forEach(map -> {
            map.replace("name", Func.getMap2Str(map,"name")+"_list");
        });
    }
}