mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-23 12:35:07 +08:00
add 新增首页查询抽成金额接口
This commit is contained in:
@@ -8,6 +8,7 @@ import com.jsowell.pile.service.OrderBasicInfoService;
|
||||
import com.jsowell.pile.service.PileBasicInfoService;
|
||||
import com.jsowell.pile.vo.web.IndexGeneralSituationVO;
|
||||
import com.jsowell.pile.vo.web.IndexOrderInfoVO;
|
||||
import com.jsowell.pile.vo.web.IndexPlatformProfitVO;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -67,5 +68,22 @@ public class indexController extends BaseController {
|
||||
return response;
|
||||
}
|
||||
|
||||
/**
|
||||
* 查询每天的平台抽成金额
|
||||
*/
|
||||
@PostMapping("/getPlatformProfit")
|
||||
public RestApiResponse<?> getPlatformProfit(@RequestBody IndexQueryDTO dto) {
|
||||
logger.info("查询每天平台抽成金额");
|
||||
RestApiResponse<?> response;
|
||||
try {
|
||||
List<IndexPlatformProfitVO> indexOrderInfo = orderBasicInfoService.getPlatformProfit(dto);
|
||||
response = new RestApiResponse<>(indexOrderInfo);
|
||||
} catch (Exception e) {
|
||||
logger.error("查询每天平台抽成金额 error!{}", e.getMessage());
|
||||
response = new RestApiResponse<>("00200003", "查询每天平台抽成金额错误");
|
||||
}
|
||||
logger.info("查询每天平台抽成金额 result:{}", JSON.toJSONString(response));
|
||||
return response;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user