package cn.autoform.web.mapper.formbase; import java.util.List; import java.util.Map; import org.apache.ibatis.annotations.MapKey; import org.apache.ibatis.annotations.Mapper; import org.apache.ibatis.annotations.Param; import cn.autoform.bean.TemplateManagerOutput; import cn.autoform.db.entity.ColunmsFieldEntity; import cn.autoform.db.entity.FieldPropertyEntity; import cn.autoform.db.entity.FormBaseEntity; import cn.autoform.db.entity.FormEventEntity; import cn.autoform.db.entity.FormFieldEntity; import cn.autoform.db.entity.FormInterfaceEntity; import cn.autoform.db.entity.FormVersionEntity; import cn.autoform.db.entity.FormdataManagerEntity; import cn.autoform.db.entity.FormdatsourceEntity; import cn.autoform.db.entity.FormresourceEntity; import cn.autoform.db.entity.FormsettingEntity; import cn.autoform.db.entity.TabConfigurationEntity; @Mapper public interface FormBaseMapper { //↓↓↓↓↓↓↓↓↓↓↓复制相关↓↓↓↓↓↓↓↓↓↓↓// //复制数据源 void copyDataSorse(@Param("param")List param); //复制接口注册 void copyInterface(@Param("param")List param); //复制页面事件 void copyFormEvent(@Param("param")List param); //复制资源文件 void copyFormResource(@Param("param")List param); //复制工具栏设置 void copyFormsetting(@Param("param")List param); //复制选项卡配置 void copyTabConfiguration(@Param("param")List param); //↑↑↑↑↑↑↑↑↑↑↑↑↑复制相关↑↑↑↑↑↑↑↑↑↑↑↑↑// //查询///// List queryDataSorse(@Param("formID")String formID, @Param("tenantID")String tenantID,@Param("accformID")String accformID); List queryInterface(@Param("formID")String formID, @Param("tenantID")String tenantID,@Param("accformID")String accformID); List queryFormEvent(@Param("formID")String formID, @Param("tenantID")String tenantID,@Param("accformID")String accformID); List queryFormResource(@Param("formID")String formID, @Param("tenantID")String tenantID,@Param("accformID")String accformID); List queryFormsetting(@Param("formID")String formID, @Param("tenantID")String tenantID,@Param("accformID")String accformID); List queryTabConfiguration(@Param("formID")String formID, @Param("tenantID")String tenantID,@Param("accformID")String accformID); //查询///// Integer queryFromBaseNum(@Param("formID") String formID, @Param("tenantID") String tenantID); void deleteFormField(@Param("formID") String formID, @Param("tenantID") String tenantID); void deleteFormFieldProperty(@Param("formID") String formID, @Param("tenantID") String tenantID); int addFormBase(FormBaseEntity formBaseObj); void addFormField(FormFieldEntity formFieldObj); void addFormFieldProperty(List fieldPropertyObj); FormBaseEntity getFormBaseInfo(@Param("tenantID") String tenantID, @Param("formID") String formID); FormBaseEntity getFormModeBaseInfo(@Param("tenantID") String tenantID, @Param("formID") String formID); TemplateManagerOutput getFormModeFomBaseInfo(@Param("tenantID") String tenantID, @Param("formID") String formID); int updateFormBaseInfo(FormBaseEntity entity); int updateFormBaseInfo2(FormBaseEntity entity); int createFormBaseInfo(FormBaseEntity entity); void addFormdataManager(FormdataManagerEntity entity); void excuteFormDataTable(@Param("excuteSql") String excuteSql); FormdataManagerEntity queryFormdataManagerNum(FormdataManagerEntity entity); List showColumns(@Param("showColumnsSql") String showColumnsSql); @MapKey("formdataNum") Map queryFormdataManagerNum2(FormdataManagerEntity entity); void deleteFormdataManager(FormdataManagerEntity entity); int querySubFormName(@Param("formDataTable") String formDataTable); void excuteUpdateSubFormName(@Param("excuteUpdateSql") String excuteUpdateSql); List selectFormField(@Param("selectFormFieldSql") String selectFormFieldSql); void excuteAlterSubField(@Param("excuteAlterSql") String excuteAlterSql); void excuteAlterDataState(@Param("excuteAlterDataStateSql") String excuteAlterDataStateSql); FormdataManagerEntity queryFormdataManager(FormdataManagerEntity entity); List selectFormDataTable(@Param("formID") String formID, @Param("tenantID") String tenantID); List> getFormHaveSub(@Param("formID") String formID, @Param("tenantID") String tenantID); int updateFormInfo(FormVersionEntity form); int deleteformTable(@Param("formID") String formId); }