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

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

提交 资金接口

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