Commit ee99974a authored by hezhen's avatar hezhen

Merge branch 'master_chw_publish' into dev-chw

parents a2068f84 c8b9d390
......@@ -18,4 +18,25 @@ public class VehiclePublishVo extends VehiclePublish {
@ApiModelProperty("需求商品")
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