package com.gaowj.business;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import com.gaowj.business.exception.BusinessException;

@Service
public interface FormfieldBusiness {

	/**
	 * 插入
	 * 
	 * @param entity
	 * @throws BusinessException
	 */
	void insert_form_field(Map<String, Object> entity) throws BusinessException;

	/**
	 * 更新
	 * 
	 * @param entity
	 * @throws BusinessException
	 */
	void update_form_field(List<Map<String, Object>> list, String tableId) throws BusinessException;

	/**
	 * 删除记录
	 * 
	 * @param entity
	 * @throws BusinessException
	 */
	void delete_form_field(List<String> list) throws BusinessException;

	/**
	 * 根据tableid做删除
	 * 
	 * @param list
	 * @throws BusinessException
	 */
	void delete_form_field_byTableid(List<String> list) throws BusinessException;

	List<Map<String, Object>> list_form_field(Map<String, Object> query) throws BusinessException;

	/**
	 * 根据tableid做查询
	 * 
	 * @param tableid
	 * @return
	 * @throws BusinessException
	 */
	List<Map<String, Object>> list_form_field_byTableid(String tableid) throws BusinessException;
}