LocationMapper.java 1.1 KB
package com.sunyo.energy.location.dao;

import com.sunyo.energy.location.model.Location;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Param;

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

public interface LocationMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Location record);

    int insertSelective(Location record);

    List<Location> selectByPrimaryKey();

    List<Location> selectAll(Integer id);

    List<Location> selectAllAdrName(String adrName);

    Location waterId_eleId(String adrName);

    int updateByPrimaryKeySelective(Location record);

    int updateByPrimaryKey(Location record);

    Map<String, Object> userPayList(String roomNumber);

    String selectRoomNumber(String roomNumber);

    String selectRoomNumberElectricity(String roomNumber);

    int countAdrName(Map<String, Object> map);

    int countParent(Integer id);

    String findWmId(String roomNumber);

    String eeId(String roomNumber);

    int editEeId(@Param(value = "name") String name,
                 @Param(value = "deviceId") String deviceId);

}