

package com.jeelowcode.core.framework.enhance.example.dbform.student;

import com.jeelowcode.core.framework.config.aspect.enhance.model.EnhanceContext;
import com.jeelowcode.core.framework.config.aspect.enhance.plugin.BeforeAdvicePlugin;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 学生-分页-前置增强
 */
@Slf4j
@Component(value="studentBeforeEnhancePage")
public class ExampleStudentBeforeEnhancePage implements BeforeAdvicePlugin {

    @Override
    public void execute(EnhanceContext enhanceContext) {
        log.info("进入=======>studentBeforeEnhancePage=======>execute");
        Map<String, Object> params = enhanceContext.getParam().getParams();
        // 注：如果要在这里添加过滤条件需先在 [表单开发-查询属性-接口查询] 的对应字段处打勾
        params.put("flag", "0");
    }
}
