change - vscode运行@Data无作用处理

master
wenjy 3 years ago
parent 2e0f6fb639
commit 708d3c8bed

@ -63,8 +63,8 @@ public class AluminumLinerkController {
if(lossStatisticsList.size() > 0){
lossStatisticsList.forEach(x->{
JSONObject jsonObject = new JSONObject();
jsonObject.put("name",x.getXValue());
jsonObject.put("value",x.getYValue());
jsonObject.put("name",x.getxValue());
jsonObject.put("value",x.getyValue());
jsonObjectList.add(jsonObject);
});
}

@ -14,7 +14,6 @@ import java.util.Date;
* @author WenJY
* @date 20220606 16:06
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCADA_LCB_DEVICEINFO_1")
@ -51,4 +50,68 @@ public class AluminumDeviceDataInformation implements Serializable {
/** 采集时间 */
@TableField("COLLECTTIME")
private Date collectTime;
public String getDeviceId() {
return deviceId;
}
public void setDeviceId(String deviceId) {
this.deviceId = deviceId;
}
public String getDeviceStatus() {
return deviceStatus;
}
public void setDeviceStatus(String deviceStatus) {
this.deviceStatus = deviceStatus;
}
public String getDeviceTakt() {
return deviceTakt;
}
public void setDeviceTakt(String deviceTakt) {
this.deviceTakt = deviceTakt;
}
public String getOpenTime() {
return openTime;
}
public void setOpenTime(String openTime) {
this.openTime = openTime;
}
public String getRunTime() {
return runTime;
}
public void setRunTime(String runTime) {
this.runTime = runTime;
}
public String getDevicePower() {
return devicePower;
}
public void setDevicePower(String devicePower) {
this.devicePower = devicePower;
}
public String getDeviceEnergy() {
return deviceEnergy;
}
public void setDeviceEnergy(String deviceEnergy) {
this.deviceEnergy = deviceEnergy;
}
public Date getCollectTime() {
return collectTime;
}
public void setCollectTime(Date collectTime) {
this.collectTime = collectTime;
}
}

@ -13,7 +13,6 @@ import java.io.Serializable;
* @author WenJY
* @date 20220607 10:55
*/
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SCADA_LCB_DEVICEINFO_3")
@ -24,4 +23,20 @@ public class AluminumLossStatistics implements Serializable {
@TableField("VALUE")
public String yValue;
public String getxValue() {
return xValue;
}
public void setxValue(String xValue) {
this.xValue = xValue;
}
public String getyValue() {
return yValue;
}
public void setyValue(String yValue) {
this.yValue = yValue;
}
}

Loading…
Cancel
Save