
package com.jeelowcode.core.framework.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.jeelowcode.core.framework.entity.EnhanceJsEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jeelowcode.framework.global.JeeLowCodeBaseConstant;

/**
 * Js增强相关
 */
@DS(JeeLowCodeBaseConstant.DS_JEELOWCODE)
public interface EnhanceJsMapper extends BaseMapper<EnhanceJsEntity> {


    default void delByDbFormId(Long dbFormId){
        QueryWrapper<EnhanceJsEntity> wrapper = new QueryWrapper();
        wrapper.eq("dbform_id", dbFormId);
        this.delete(wrapper);
    }
}
