LastAccountMapper.java 1.08 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
package cn.wisenergy.mapper;

import cn.wisenergy.model.app.LastMonthAccount;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

public interface LastAccountMapper extends BaseMapper<LastMonthAccount> {

    /**
     * 通过userId 和 yearMonth获取账户信息
     *
     * @param userId    用户id
     * @param yearMonth 年月
     * @return 账户信息
     */
    LastMonthAccount getByUserIdAndTime(@Param("userId") String userId, @Param("yearMonth") String yearMonth);
licc's avatar
licc committed
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39

    /**
     * 把 A 表的结构数据 复制给 B表
     *
     * @param oldTable A
     * @param newTable B
     */
    void copyTable(@Param("oldTable") String oldTable, @Param("newTable") String newTable);

    /**
     * 删除表
     *
     * @param tableName 表名
     */
    void deleteTable(@Param("tableName") String tableName);

    /**
     * 更新表名
     *
     * @param oldTableName 旧表名
     * @param newTableName 新表名
     */
    void updateTableName(@Param("oldTableName") String oldTableName, @Param("newTableName") String newTableName);
40
}