Commit 89f4297f authored by kongfm's avatar kongfm

警情状态展示字段

parent db24cc45
...@@ -26,6 +26,9 @@ public class AlertCalledDto extends BaseDto { ...@@ -26,6 +26,9 @@ public class AlertCalledDto extends BaseDto {
@ApiModelProperty(value = "警情状态 (0 未结案 1 结案)") @ApiModelProperty(value = "警情状态 (0 未结案 1 结案)")
private Boolean alertStatus; private Boolean alertStatus;
@ApiModelProperty(value = "警情状态 结案/ 未结案")
private String alertStatusStr;
@ApiModelProperty(value = "警情来源类型") @ApiModelProperty(value = "警情来源类型")
private String alertSource; private String alertSource;
...@@ -158,4 +161,6 @@ public class AlertCalledDto extends BaseDto { ...@@ -158,4 +161,6 @@ public class AlertCalledDto extends BaseDto {
@ApiModelProperty(value = "现场照片") @ApiModelProperty(value = "现场照片")
private List<AttachmentDto> images; private List<AttachmentDto> images;
} }
...@@ -30,6 +30,11 @@ public class AlertBeanDtoVoUtils { ...@@ -30,6 +30,11 @@ public class AlertBeanDtoVoUtils {
AlertCalledDto target = new AlertCalledDto(); AlertCalledDto target = new AlertCalledDto();
// 把原对象数据拷贝到新对象 // 把原对象数据拷贝到新对象
BeanUtils.copyProperties(source, target); BeanUtils.copyProperties(source, target);
if(source.getAlertStatus()) {
target.setAlertStatusStr("已结案");
} else {
target.setAlertStatusStr("未结案");
}
// 返回新对象 // 返回新对象
return target; return target;
} catch (Exception e) { } catch (Exception e) {
......
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