package com.highdatas.mdm.service;
|
|
import com.highdatas.mdm.pojo.Result;
|
|
import java.util.List;
|
|
/**
|
* @author kimi
|
* @description
|
* @date 2019-12-17 12:02
|
*/
|
|
|
public interface BaseDataService {
|
|
Result selectById(String tableName, String id);
|
|
Result selectList(String tableName);
|
|
Result selectList(String tableName, String whereSegment);
|
|
Result selectList(String tableName, List<String> fieldList, String whereSegment);
|
|
Result selectList(String tableName, List<String> fields);
|
|
String getFields(String tableName);
|
|
Result selectListByPage(String tableName, Integer pageNo, Integer pageSize);
|
|
Result selectListByPage(String tableName, String whereSegment, Integer pageNo);
|
|
Result selectListByPage(String tableName, Integer pageNo);
|
|
Result selectListByPage(String tableName, String whereSegment, Integer pageno, Integer pageSize);
|
|
Result selectListByPage(String tableName, List<String> fieldList, String whereSegment, Integer pageNo);
|
|
Result selectListByPage(String tableName, List<String> fieldList, Integer pageNo);
|
|
Result selectListByPage(String tableName, List<String> fieldList, String whereSegment, Integer pageNo, Integer pageSize);
|
|
Result insert(String tableName, String fields, String jsonValues);
|
|
Result insert(String tableName, String json);
|
|
Result updateById(String tableName, String fieldsSegment, String id, boolean total);
|
|
Result update(String tableName, String fieldsSegment, boolean total);
|
|
Result update(String tableName, String fieldsSegment, String whereSegment);
|
|
Result update(String tableName, String updateSegment, String whereDefault, boolean total);
|
|
Result delete(String tableName);
|
|
Result deleteById(String tableName, String id);
|
|
Result delete(String tableName, String whereSegment);
|
|
}
|