parent
61fffc9134
commit
6f052ca210
19 changed files with 495 additions and 41 deletions
@ -0,0 +1,195 @@ |
||||
package org.springblade.lims.entry; |
||||
|
||||
import com.baomidou.mybatisplus.annotation.TableName; |
||||
import lombok.Data; |
||||
import org.springblade.core.mp.base.BaseEntity; |
||||
import org.springframework.data.annotation.Id; |
||||
|
||||
import java.io.Serializable; |
||||
|
||||
/** |
||||
* @author sjx |
||||
* @date 2023年11月27日15:34:17 |
||||
*/ |
||||
@Data |
||||
@TableName("t_instrument_data") |
||||
public class InstrumentData extends BaseEntity implements Serializable { |
||||
|
||||
/** |
||||
* 业务主键 |
||||
*/ |
||||
@Id |
||||
private Long id; |
||||
|
||||
/** |
||||
* 网关编号 |
||||
*/ |
||||
private String imei; |
||||
|
||||
/** |
||||
* 总有功功率 |
||||
*/ |
||||
private Double totalActivePower; |
||||
|
||||
/** |
||||
* 总无功功率 |
||||
*/ |
||||
private Double totalReactivePower; |
||||
|
||||
/** |
||||
* 总视在功率 |
||||
*/ |
||||
private Double totalApparentPower; |
||||
|
||||
/** |
||||
* 当前正向有功 |
||||
*/ |
||||
private Double currentPositiveActivePower; |
||||
|
||||
/** |
||||
* 当前正向无功 |
||||
*/ |
||||
private Double currentPositiveReactivePower; |
||||
|
||||
/** |
||||
* 当前反向有功 |
||||
*/ |
||||
private Double currentReverseActivePower; |
||||
|
||||
/** |
||||
* 当前反向无功 |
||||
*/ |
||||
private Double currentReverseReactivePower; |
||||
|
||||
/** |
||||
* 电流不平衡度 |
||||
*/ |
||||
private Double currentImbalance; |
||||
|
||||
/** |
||||
* 电压不平衡度 |
||||
*/ |
||||
private Double voltageImbalance; |
||||
|
||||
/** |
||||
* 总功率因数 |
||||
*/ |
||||
private Double totalPowerFactor; |
||||
|
||||
/** |
||||
* 零序电流 |
||||
*/ |
||||
private Double zeroSequenceCurrent; |
||||
|
||||
/** |
||||
* 频率 |
||||
*/ |
||||
private Double frequency; |
||||
|
||||
/** |
||||
* A线电压 |
||||
*/ |
||||
private Double aLineVoltage; |
||||
|
||||
/** |
||||
* B线电压 |
||||
*/ |
||||
private Double bLineVoltage; |
||||
|
||||
/** |
||||
* C线电压 |
||||
*/ |
||||
private Double cLineVoltage; |
||||
|
||||
/** |
||||
* A相电流 |
||||
*/ |
||||
private Double aPhaseCurrent; |
||||
|
||||
/** |
||||
* B相电流 |
||||
*/ |
||||
private Double bPhaseCurrent; |
||||
|
||||
/** |
||||
* C相电流 |
||||
*/ |
||||
private Double cPhaseCurrent; |
||||
|
||||
/** |
||||
* A相电压 |
||||
*/ |
||||
private Double aPhaseVoltage; |
||||
|
||||
/** |
||||
* B相电压 |
||||
*/ |
||||
private Double bPhaseVoltage; |
||||
|
||||
/** |
||||
* C相电压 |
||||
*/ |
||||
private Double cPhaseVoltage; |
||||
|
||||
/** |
||||
* A相有功功率 |
||||
*/ |
||||
private Double aPhaseActivePower; |
||||
|
||||
/** |
||||
* B相有功功率 |
||||
*/ |
||||
private Double bPhaseActivePower; |
||||
|
||||
/** |
||||
* C相有功功率 |
||||
*/ |
||||
private Double cPhaseActivePower; |
||||
|
||||
/** |
||||
* A相功率因数 |
||||
*/ |
||||
private Double aPhasePowerFactor; |
||||
|
||||
/** |
||||
* B相功率因数 |
||||
*/ |
||||
private Double bPhasePowerFactor; |
||||
|
||||
/** |
||||
* C相功率因数 |
||||
*/ |
||||
private Double cPhasePowerFactor; |
||||
|
||||
/** |
||||
* A相无功功率 |
||||
*/ |
||||
private Double aPhaseReactivePower; |
||||
|
||||
/** |
||||
* B相无功功率 |
||||
*/ |
||||
private Double bPhaseReactivePower; |
||||
|
||||
/** |
||||
* C相无功功率 |
||||
*/ |
||||
private Double cPhaseReactivePower; |
||||
|
||||
/** |
||||
* A相视在功率 |
||||
*/ |
||||
private Double aPhaseApparentPower; |
||||
|
||||
/** |
||||
* B相视在功率 |
||||
*/ |
||||
private Double bPhaseApparentPower; |
||||
|
||||
/** |
||||
* C相视在功率 |
||||
*/ |
||||
private Double cPhaseApparentPower; |
||||
|
||||
|
||||
} |
||||
@ -0,0 +1,15 @@ |
||||
|
||||
package org.springblade.lims.mapper; |
||||
|
||||
import com.baomidou.mybatisplus.core.mapper.BaseMapper; |
||||
import org.springblade.lims.entry.InstrumentData; |
||||
|
||||
/** |
||||
* |
||||
* |
||||
* @author sjx |
||||
* @since 2023年11月27日15:47:39 |
||||
*/ |
||||
public interface InstrumentDataMapper extends BaseMapper<InstrumentData> { |
||||
|
||||
} |
||||
@ -0,0 +1,14 @@ |
||||
|
||||
package org.springblade.lims.service; |
||||
|
||||
|
||||
import org.springblade.core.mp.base.BaseService; |
||||
import org.springblade.lims.entry.InstrumentData; |
||||
|
||||
/** |
||||
* @author sjx |
||||
* @date 2023年11月27日15:34:17 |
||||
*/ |
||||
public interface IInstrumentDataService extends BaseService<InstrumentData> { |
||||
boolean saveData(); |
||||
} |
||||
@ -0,0 +1,27 @@ |
||||
|
||||
package org.springblade.lims.service.impl; |
||||
|
||||
|
||||
import lombok.AllArgsConstructor; |
||||
import org.springblade.core.mp.base.BaseServiceImpl; |
||||
import org.springblade.lims.entry.InstrumentData; |
||||
import org.springblade.lims.mapper.InstrumentDataMapper; |
||||
import org.springblade.lims.service.IInstrumentDataService; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
|
||||
/** |
||||
* |
||||
* @author swj |
||||
* @since 2022年6月2日15:53:01 |
||||
*/ |
||||
@Service |
||||
@AllArgsConstructor |
||||
public class InstrumentDataServiceImpl extends BaseServiceImpl<InstrumentDataMapper, InstrumentData> implements IInstrumentDataService { |
||||
|
||||
|
||||
@Override |
||||
public boolean saveData() { |
||||
return false; |
||||
} |
||||
} |
||||
Loading…
Reference in new issue