Commit a452aab3 authored by ZWT's avatar ZWT

得到的

parent 5fc6b1a1
......@@ -21,8 +21,8 @@ import java.util.Date;
@TableName("THIRD_CURRENT_WELL_CONDITION")
public class ThirdCurrentWellConditionEnt 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 ThirdCurrentWellConditionView implements Serializable {
@XText("ID")
@TableField
private Long id;
private String id;
@XText("井号")
@TableField
......
......@@ -306,6 +306,7 @@ public class ThirdDataAccessCloudServiceImpl implements IThirdDataAccessCloudSer
cumulativeProduction = cumulativeProduction.compareTo(BigDecimal.ZERO) < 0 ? BigDecimal.ZERO : cumulativeProduction;
dtoList.add(
ThirdCurrentWellConditionView.builder()
.id(BaseUtils.randomUUIDString())
.systemSource(oilFieldCode)
.wellNumber(o.getWellNumber())
.nextTime(o.getNextTime())
......
......@@ -52,11 +52,12 @@
</delete>
<insert id="batchInsertList" parameterType="list">
INSERT INTO THIRD_CURRENT_WELL_CONDITION (WELL_NUMBER, NEXT_TIME, WELL_STATUS, CUMULATIVE_PRODUCTION,
INSERT INTO THIRD_CURRENT_WELL_CONDITION (ID, WELL_NUMBER, NEXT_TIME, WELL_STATUS, CUMULATIVE_PRODUCTION,
RUNNING_TIME, SYSTEM_SOURCE, UPDATE_TIME)
VALUES
<foreach collection="list" item="item" separator=",">
(
#{item.id},
#{item.wellNumber},
#{item.nextTime},
#{item.wellStatus},
......
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