...
|
...
|
@@ -3,6 +3,7 @@ package com.yohoufo.order.controller; |
|
|
import com.alibaba.fastjson.JSONObject;
|
|
|
import com.yohobuy.ufo.model.order.bo.DepositDetailBo;
|
|
|
import com.yohobuy.ufo.model.order.bo.DepositProductBo;
|
|
|
import com.yohobuy.ufo.model.order.resp.PageResp;
|
|
|
import com.yohoufo.common.ApiResponse;
|
|
|
import com.yohoufo.order.service.DepositService;
|
|
|
import org.slf4j.Logger;
|
...
|
...
|
@@ -24,30 +25,30 @@ public class DepositController { |
|
|
|
|
|
@RequestMapping(params = "method=ufo.deposit.queryUserDoposit")
|
|
|
public ApiResponse queryUserDoposit(@RequestParam("uid") Integer uid
|
|
|
, @RequestParam(value = "limit", required = false) Integer limit
|
|
|
, @RequestParam(value = "page", required = false) Integer page
|
|
|
, @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
|
|
|
, @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
|
|
|
) {
|
|
|
if (uid == null || uid < 1) {
|
|
|
LOG.warn("queryUserDoposit failed, invalid uid: {}", uid);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message("查询失败").build();
|
|
|
}
|
|
|
|
|
|
List<DepositProductBo> depositProductBoList = depositService.queryUserDoposit(uid, page, limit);
|
|
|
PageResp<List<DepositProductBo>> depositProductBoList = depositService.queryUserDoposit(uid, page, limit);
|
|
|
LOG.info("queryStoreInfoById result: {}", depositProductBoList);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(depositProductBoList).build();
|
|
|
}
|
|
|
|
|
|
@RequestMapping(params = "method=ufo.deposit.queryUserDopositBackDetail")
|
|
|
public ApiResponse queryUserDopositBackDetail(@RequestParam("uid") Integer uid
|
|
|
, @RequestParam(value = "limit", required = false) Integer limit
|
|
|
, @RequestParam(value = "page", required = false) Integer page
|
|
|
, @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
|
|
|
, @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
|
|
|
) {
|
|
|
if (uid == null || uid < 1) {
|
|
|
LOG.warn("queryUserDopositBackDetail failed, invalid uid: {}", uid);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message("查询失败").build();
|
|
|
}
|
|
|
|
|
|
List<DepositDetailBo> depositDetailBoList = depositService.queryUserDopositBackDetail(uid, page, limit);
|
|
|
PageResp<List<DepositDetailBo>> depositDetailBoList = depositService.queryUserDopositBackDetail(uid, page, limit);
|
|
|
LOG.info("queryUserDopositBackDetail result: {}", depositDetailBoList);
|
|
|
return new ApiResponse.ApiResponseBuilder().code(200).data(depositDetailBoList).build();
|
|
|
}
|
...
|
...
|
@@ -55,8 +56,8 @@ public class DepositController { |
|
|
@RequestMapping(params = "method=ufo.deposit.queryUserDopositing")
|
|
|
public ApiResponse queryUserDopositing(@RequestParam("uid") Integer uid
|
|
|
, @RequestParam("productId") Integer productId
|
|
|
, @RequestParam(value = "limit", required = false) Integer limit
|
|
|
, @RequestParam(value = "page", required = false) Integer page
|
|
|
, @RequestParam(value = "limit", required = false, defaultValue = "10") Integer limit
|
|
|
, @RequestParam(value = "page", required = false, defaultValue = "1") Integer page
|
|
|
) {
|
|
|
if (uid == null || uid < 1) {
|
|
|
LOG.warn("queryUserDopositing failed, invalid uid: {}", uid);
|
...
|
...
|
@@ -67,7 +68,7 @@ public class DepositController { |
|
|
return new ApiResponse.ApiResponseBuilder().code(500).message("查询失败").build();
|
|
|
}
|
|
|
|
|
|
List<DepositDetailBo> depositDetailBoList = depositService.queryUserProductDopositingDetail(uid, productId, page, limit);
|
|
|
PageResp<List<DepositDetailBo>> depositDetailBoList = depositService.queryUserProductDopositingDetail(uid, productId, page, limit);
|
|
|
DepositProductBo countBo = depositService.queryUserDepositProductCountInfo(uid, productId);
|
|
|
JSONObject result = new JSONObject();
|
|
|
result.put("product", countBo);
|
...
|
...
|
|