提交 cf807db2 authored 作者: 艾庆国's avatar 艾庆国

线路预警

上级 52cb2ed3
......@@ -17,9 +17,9 @@ public class VehicleWarnUserConfigUpdateParam {
@ApiModelProperty(value = "id", example = "1")
@NotNull(message = "id不能为空")
private Integer id;
@ApiModelProperty(value = "选中报警类型列表")
@ApiModelProperty(value = "运单预警类型列表")
private List<VehicleWarnUserVO.WarnTypeItem> warnTypeList;
@ApiModelProperty(value = "选中线路报警类型列表")
@ApiModelProperty(value = "线路预警类型列表")
private List<VehicleWarnUserVO.WarnTypeItem> lineWarnTypeList;
}
......@@ -38,7 +38,7 @@ public class VehicleWarnUserVO {
@ApiModelProperty(value = "修改时间", example = "")
private String modifiedTime;
@ApiModelProperty(value = "通知配置列表")
@ApiModelProperty(value = "运单通知配置列表")
private List<WarnTypeItem> warnTypeItemList;
public List<WarnTypeItem> getWarnTypeItemList() {
List<Integer> warnTypeList = JSON.parseArray(warnTypeJson, Integer.class);
......@@ -57,7 +57,7 @@ public class VehicleWarnUserVO {
@ApiModelProperty(value = "通知配置列表")
@ApiModelProperty(value = "线路通知配置列表")
private List<WarnTypeItem> lineWarnTypeItemList;
@JsonIgnore
......
......@@ -51,7 +51,6 @@ public class VehicleWarnUserServiceImpl implements VehicleWarnUserService {
List<Integer> lineWarnTypeList = Arrays.stream(LineWarnConfigEnum.WarnType.values())
.map(item -> item.getCode()).collect(Collectors.toList());
VehicleWarnUser vehicleWarnUser = new VehicleWarnUser();
vehicleWarnUser.setName(param.getName());
vehicleWarnUser.setMobile(param.getMobile());
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论