Commit 274d48b6 authored by ZWT's avatar ZWT

得到的

parent a452aab3
......@@ -21,8 +21,8 @@ import java.util.Date;
@TableName("THIRD_DAILY_ACCUMULATION")
public class ThirdDailyAccumulationEnt implements Serializable {
@XText("ID")
@TableId(type = IdType.AUTO)
private Long id;
@TableId(type = IdType.ASSIGN_UUID)
private String id;
@XText("井组名称(线路/光伏电站)")
@TableField
......
......@@ -24,7 +24,7 @@ import java.util.Date;
public class ThirdDailyAccumulationView implements Serializable {
@XText("ID")
@TableField
private Long id;
private String id;
@XText("井组名称(线路/光伏电站)")
@TableField
......
......@@ -558,6 +558,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
//历史数据
dtoList.add(
ThirdDailyAccumulationView.builder()
.id(BaseUtils.randomUUIDString())
.saveDate(beginOfDay)
.stationId(plantMap.get(o.getStationName()))
.stationName(o.getStationName())
......
......@@ -48,12 +48,13 @@
</select>
<insert id="batchInsertList" parameterType="list">
INSERT INTO THIRD_DAILY_ACCUMULATION ( STATION_NAME, STATION_ID, CREATE_DATE, PHOTOVOLTAIC_POWER,
INSERT INTO THIRD_DAILY_ACCUMULATION (ID, STATION_NAME, STATION_ID, CREATE_DATE, PHOTOVOLTAIC_POWER,
DAILY_ELECTRICITY_CONSUMPTION, DAILY_LIQUID_PRODUCTION, IN_PLACE_CONSUMPTION, ENERGY_STORAGE_DISCHARGE,
SAVE_DATE, SYSTEM_SOURCE )
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.id},
#{item.stationName},
#{item.stationId},
#{item.createDate},
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment