Commit 8a7836ef authored by shangtx's avatar shangtx

fix: 个人信息接口修改

parent 81299a98
......@@ -14,4 +14,8 @@ public class UserOrderInfoVO {
@ApiModelProperty("数量")
private Long num;
@ApiModelProperty("对应状态值")
private Integer statusCode;
}
......@@ -126,10 +126,10 @@ public class UserService extends AbstractMapper<User> {
// 获取订单状况
var numMap = serviceOrderBizMapper.getMyOrderNum(userId);
vo.setOrderInfo(List.of(
new UserOrderInfoVO("待支付", numMap.get("pay")),
new UserOrderInfoVO("待受理", numMap.get("handle")),
new UserOrderInfoVO("待派单", numMap.get("dispatch")),
new UserOrderInfoVO("已完成", numMap.get("finished"))
new UserOrderInfoVO("待支付", numMap.get("pay"), 1),
new UserOrderInfoVO("待受理", numMap.get("handle"), 3),
new UserOrderInfoVO("待派单", numMap.get("dispatch"), 4),
new UserOrderInfoVO("已完成", numMap.get("finished"), 6)
));
return vo;
}
......
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