package weaver.formmode.recruit.modeexpand.browser;

import weaver.formmode.customjavacode.AbstractCustomSqlConditionJavaCode;

import java.util.HashMap;
import java.util.Map;

/**
 * @author:dxfeng
 * @createTime: 2023/11/15
 * @version: 1.0
 */
public class ApplicantBrowser extends AbstractCustomSqlConditionJavaCode {
    @Override
    public String generateSqlCondition(Map<String, Object> param) throws Exception {
        Object extensionParam = param.get("extensionParam");
        HashMap<String, Object> extensionMap = (HashMap<String, Object>) extensionParam;

        String sqlCondition = "";
        String fromModule = (String) extensionMap.get("fromModule");
        if ("workflow".equals(fromModule)) {
            sqlCondition += " t1.zt = 1 ";
        }
        return sqlCondition;
    }
}
