You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
package com.psdc.mapper;
|
|
|
|
|
|
|
|
import com.psdc.entity.PsdcDevicePowerHdata96;
|
|
|
|
import org.apache.ibatis.annotations.Mapper;
|
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
import org.springframework.stereotype.Repository;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @Author:戴仕崑
|
|
|
|
* @Project:psdc
|
|
|
|
* @Filename:PsdcDevicePowerHdata96Mapper
|
|
|
|
* @Date:2023/5/9 16:27
|
|
|
|
* @Version 1.0
|
|
|
|
*/
|
|
|
|
@Mapper
|
|
|
|
@Repository
|
|
|
|
public interface PsdcDevicePowerHdata96Mapper {
|
|
|
|
|
|
|
|
PsdcDevicePowerHdata96 queryById(@Param(value = "userId") Long userId,
|
|
|
|
@Param(value = "deviceId") Integer deviceId,
|
|
|
|
@Param(value = "samDate") String samDate);
|
|
|
|
|
|
|
|
Integer todayPowerCount(@Param(value = "devId") Integer devId,
|
|
|
|
@Param(value = "samDate") String samDate);
|
|
|
|
|
|
|
|
Integer insertTodayDevPower(PsdcDevicePowerHdata96 powerHt96Data);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* 更新设备功率历史数据
|
|
|
|
* @param valNo
|
|
|
|
* @param powerValue
|
|
|
|
* @param devId
|
|
|
|
* @param samDate
|
|
|
|
* @return
|
|
|
|
*/
|
|
|
|
Integer updateTodayDevPower(@Param(value = "valNo") String valNo,
|
|
|
|
@Param(value = "powerValue") Double powerValue,
|
|
|
|
@Param(value = "devId") Integer devId,
|
|
|
|
@Param(value = "samDate") String samDate);
|
|
|
|
|
|
|
|
}
|