Browse Source

parkId 1是晋恒通 2是现海园区

logistics
ma 4 years ago
parent
commit
68bf9e74ef
  1. 4
      logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java
  2. 4
      logistics/src/main/java/com/ccsens/logistics/service/CarRecordService.java

4
logistics/src/main/java/com/ccsens/logistics/bean/dto/MbpsDto.java

@ -21,7 +21,7 @@ public class MbpsDto {
@ApiModelProperty("仓库id") @ApiModelProperty("仓库id")
private Long warehouseId; private Long warehouseId;
@NotNull(message = "请选择园区") @NotNull(message = "请选择园区")
@ApiModelProperty("园区id(0现海园区,1晋恒通园区)") @ApiModelProperty("园区id(1晋恒通园区,2现海园区)")
private Long parkId; private Long parkId;
} }
@ -36,7 +36,7 @@ public class MbpsDto {
@ApiModelProperty("查询的天数") @ApiModelProperty("查询的天数")
private Integer queryOfDay = 10; private Integer queryOfDay = 10;
@NotNull(message = "请选择园区") @NotNull(message = "请选择园区")
@ApiModelProperty("园区id(0现海园区,1晋恒通园区)") @ApiModelProperty("园区id(1晋恒通园区,2现海园区)")
private Long parkId; private Long parkId;
} }

4
logistics/src/main/java/com/ccsens/logistics/service/CarRecordService.java

@ -71,14 +71,14 @@ public class CarRecordService implements ICarRecordService {
} else { } else {
inCar.setRecordTime(currentTime + new Random().nextInt(3600000)); inCar.setRecordTime(currentTime + new Random().nextInt(3600000));
} }
inCar.setParkId(0L); inCar.setParkId(2L);
carRecords.add(inCar); carRecords.add(inCar);
//添加出的车 //添加出的车
outCar.setRecordId(snowflake.nextId()); outCar.setRecordId(snowflake.nextId());
outCar.setInOut((byte)1); outCar.setInOut((byte)1);
outCar.setCarWeight((long)(Math.random()*20)); outCar.setCarWeight((long)(Math.random()*20));
outCar.setParkId(0L); outCar.setParkId(2L);
if ((int) (Math.random() * 10) > 5) { if ((int) (Math.random() * 10) > 5) {
outCar.setRecordTime(currentTime - new Random().nextInt(3600000)); outCar.setRecordTime(currentTime - new Random().nextInt(3600000));
} else { } else {

Loading…
Cancel
Save