package com.changhong.autoform.service.data;
|
|
import java.util.List;
|
import java.util.Map;
|
|
import com.changhong.autoform.entity.FormData;
|
import com.changhong.autoform.entity.SelectForm;
|
import com.changhong.autoform.entity.page.PageResult;
|
|
public interface DataService {
|
|
|
String getUserName(SelectForm selectForm);
|
/**
|
* 添加数据
|
* @param map
|
* @return
|
*/
|
int insertData(FormData formData);
|
|
/**
|
* 多条添加数据
|
*/
|
Integer impInstertDatas(List<FormData> formDataList);
|
|
/**
|
* 删除数据
|
* @param map
|
* @return
|
*/
|
|
int deleteData(FormData formData);
|
|
/**
|
* 修改数据
|
* @param map
|
* @return
|
*/
|
int updateData(FormData formData);
|
|
/**
|
* 查询所有
|
*/
|
List<Map<String, Object>> selectAll(SelectForm selectForm);
|
|
/**
|
* 查询分页数据
|
*/
|
PageResult<Map<String, Object>> selectPage(SelectForm selectForm);
|
|
/**
|
* 查询一条数据
|
*/
|
Map<String, Object> selectOne(SelectForm selectForm);
|
|
|
|
}
|