记得上下班打卡 | git大法好,push需谨慎

Commit c4fac190 authored by 胡佳晨's avatar 胡佳晨

提交 资金接口

parent 9961ef97
......@@ -18,7 +18,7 @@ public class GoblinOrderLogVo implements Cloneable {
private String orderCode;
@ApiModelProperty(value = "支付单号")
private String payCode;
@ApiModelProperty(value = "订单类型")
@ApiModelProperty(value = "订单类型[order-普通订单|zhengzai-正在下单]")
private String orderType;
@ApiModelProperty(value = " 商铺id")
private String storeId;
......
......@@ -30,18 +30,18 @@ public class GoblinStoreMoneyServiceImpl implements IGoblinStoreMoneyService {
if (vo == null) {
return ResponseDto.failure("店铺不存在");
}
BigDecimal price = mongoUtils.storeMoney("1");
BigDecimal price = mongoUtils.storeMoney(vo.getStoreId());
return ResponseDto.success(price);
}
@Override
public ResponseDto<PageInfo<GoblinOrderLogVo>> getSpuList(String spuName, String st, String et, int page) {
String uid = CurrentUtil.getCurrentUid();
// GoblinStoreInfoVo vo = redisUtils.getStoreInfoVoByUid(uid);
// if (vo == null) {
// return ResponseDto.failure("店铺不存在");
// }
HashMap<String, Object> map = mongoUtils.moneyGetSpuList(spuName, st, et, "2", page);
GoblinStoreInfoVo vo = redisUtils.getStoreInfoVoByUid(uid);
if (vo == null) {
return ResponseDto.failure("店铺不存在");
}
HashMap<String, Object> map = mongoUtils.moneyGetSpuList(spuName, st, et, vo.getStoreId(), page);
PageInfo<GoblinOrderLogVo> info = new PageInfo((List<GoblinOrderLogVo>) map.get("data"));
info.setTotal((Long) map.get("total"));
return ResponseDto.success(info);
......
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