Commit 8d5ec321 authored by 韩桐桐's avatar 韩桐桐

fix(jg):三环设备认领

parent 7f4824fd
...@@ -33,7 +33,7 @@ public class ShCarEquDto { ...@@ -33,7 +33,7 @@ public class ShCarEquDto {
@TableField("CAR_ID") @TableField("CAR_ID")
private String carId; private String carId;
@ApiModelProperty(value = "设备号") @ApiModelProperty(value = "设备号")
@TableField("SEQUENCE_CODE") @TableField("SEQUENCE_CODE")
private String sequenceCode; private String sequenceCode;
......
...@@ -41,7 +41,7 @@ public class ShCarEqu { ...@@ -41,7 +41,7 @@ public class ShCarEqu {
private String carId; private String carId;
/** /**
* 设备 * 设备
*/ */
@TableField(value = "\"SEQUENCE_CODE\"") @TableField(value = "\"SEQUENCE_CODE\"")
private String sequenceCode; private String sequenceCode;
......
...@@ -32,6 +32,11 @@ public class ShCarEquVo { ...@@ -32,6 +32,11 @@ public class ShCarEquVo {
private String equCode; private String equCode;
/** /**
* 设备型号
*/
private String equType;
/**
* 制造日期 * 制造日期
*/ */
private Date produceDate; private Date produceDate;
......
...@@ -77,7 +77,14 @@ public class ShCarEquServiceImpl extends BaseService<ShCarEqu, ShCarEqu, ShCarEq ...@@ -77,7 +77,14 @@ public class ShCarEquServiceImpl extends BaseService<ShCarEqu, ShCarEqu, ShCarEq
queryWrapper.eq(ShCarEqu::getCarId, carId); queryWrapper.eq(ShCarEqu::getCarId, carId);
List<ShCarEqu> list = this.list(queryWrapper); List<ShCarEqu> list = this.list(queryWrapper);
// 将设备列表转换为前端可识别bean // 将设备列表转换为前端可识别bean
List<ShCarEquVo> collect = list.stream().map(shCarEqu -> new ShCarEquVo(shCarEqu)).collect(Collectors.toList()); List<ShCarEquVo> collect = list.stream()
.map(shCarEqu -> {
ShCarEquVo shCarEquVo = new ShCarEquVo(shCarEqu);
shCarEquVo.setUseInnerCode(shCarDto.getCarNumber());
shCarEquVo.setEquType(shCarEqu.getSequenceCode());
return shCarEquVo;
})
.collect(Collectors.toList());
// 封装返回VO // 封装返回VO
return new CarAndEquVo(shCarDto, collect); return new CarAndEquVo(shCarDto, collect);
} }
......
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