Commit c8b9d390 authored by hezhen's avatar hezhen

123

parent 64714e73
...@@ -18,4 +18,25 @@ public class VehiclePublishVo extends VehiclePublish { ...@@ -18,4 +18,25 @@ public class VehiclePublishVo extends VehiclePublish {
@ApiModelProperty("需求商品") @ApiModelProperty("需求商品")
List<VehiclePublishGoodsVo> publishGoodsVos; List<VehiclePublishGoodsVo> publishGoodsVos;
@ApiModelProperty("状态描述")
String statusStr;
public String getStatusStr(){
Integer status = getStatus() == null ? 0 : getStatus();
if (status.equals(1) || status.equals(3)){
statusStr = "已结束";
}else if (status.equals(2)){
statusStr = "待收藏";
}else if (status.equals(0)){
if (getConfirmNumber() != null && getConfirmNumber() > 0){
statusStr = "已接"+getConfirmNumber()+"辆";
}else {
statusStr = "接单中";
}
}
return statusStr;
}
} }
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