package yem.wmzh.csm.customeraccess.opplugin.op;

import kd.bos.entity.plugin.AbstractOperationServicePlugIn;
import kd.bos.entity.plugin.AddValidatorsEventArgs;
import yem.wmzh.csm.customeraccess.opplugin.validator.CustomeraccessSubmitValidator;

/**
 * @Description 客商准入单提交校验及操作功能
 * @Author: LiuHB
 * @CreateTime: 2025-02-07  17:23
 */
public class CustomeraccessSubmitOpPlugin extends AbstractOperationServicePlugIn {

    /**
     * @Description: 自定义操作校验器
     * @function 1.【内部业务单元】=true,且字段【境内/境外】=境内时，统一社会信用代码必填
     * @purposes 构建好操作校验器之后，操作校验之前，触发校验
     */

    @Override
    public void onAddValidators(AddValidatorsEventArgs e) {
        super.onAddValidators(e);
        e.addValidator(new CustomeraccessSubmitValidator());
    }
}
