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 MasterDataService { Result selectById(String tableName, String id); Result selectList(String tableName); Result selectList(String tableName, String whereSegment); Result selectList(String tableName, String whereSegment, String version); Result selectList(String tableName, List fieldList, String whereSegment); Result selectList(String tableName, List fieldList, String whereSegment,String version); Result selectList(String tableName, List fields); String getFields(String tableName); String getFields(String tableName, String alias); String getTempFields(String tableName); String getTempFields(String tableName, String alias); Result selectListByPageByVersion(String tableName, Integer pageNo, Integer pageSize, boolean findMax); Result selectListByPageByVersion(String tableName, String whereSegment, Integer pageNo, boolean findMax); Result selectListByPageByVersion(String tableName, Integer pageNo, String version, boolean findMax); Result selectListByPageByVersion(String tableName, Integer pageNo, boolean findMax); Result selectListByPageByVersion(String tableName, String whereSegment, Integer pageno, Integer pageSize, boolean findMax); Result selectListByPageByVersion(String tableName, List fieldList, String whereSegment, Integer pageNo, boolean findMax); Result selectListByPageByVersion(String tableName, List fieldList, Integer pageNo, boolean findMax); Result selectListByPageByVersion(String tableName, List fieldList, String whereSegment, Integer pageNo, Integer pageSize, boolean findMax); 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 updateByStdId(String tableName, String fieldsSegment, String id, boolean total); Result update(String tableName, String fieldsSegment, boolean total); Result update(String tableName, String fieldsSegment, String whereSegment); String getUpdateSegment(String tableName, String fieldsSegment); String getUpdateSegment(String tableName, String alias, String fieldsSegment); Result update(String tableName, String updateSegment, String whereDefault, boolean total); Result delete(String tableName); Result deleteById(String tableName, String id); Result deleteByStdId(String tableName, String id); Result delete(String tableName, String whereSegment); Result selectListByPageByVersion(String tableName, String whereSegment, Integer pageNo, String version, boolean findMax); Result selectListByPageByVersion(String tableName, List fieldList, String whereSegment, Integer pageNo, Integer pageSize, String version, boolean findMax); }