|
@@ -129,7 +129,7 @@ public class CmsUserMirrorShopDataController {
|
|
|
* 店铺分销订单收入详细
|
|
* 店铺分销订单收入详细
|
|
|
*/
|
|
*/
|
|
|
@GetMapping("/get/distribute/orders/detail/data")
|
|
@GetMapping("/get/distribute/orders/detail/data")
|
|
|
- public Result<SearchResult<UserMirrorShopDsOrderDetailView>> getUserDistributeOrdersDetailView(@RequestParam(defaultValue = "1") Integer type, Long firstDate, Long lastDate) {
|
|
|
|
|
|
|
+ public Result<SearchResult> getUserDistributeOrdersDetailView(@RequestParam(defaultValue = "1") Integer type, Long firstDate, Long lastDate) {
|
|
|
long yhShopUserId = StpUserMirrorShopManageUser.getLoginIdAsLong();
|
|
long yhShopUserId = StpUserMirrorShopManageUser.getLoginIdAsLong();
|
|
|
UserMirrorShop yhShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class)
|
|
UserMirrorShop yhShop = userMirrorShopMapper.selectOne(Wrappers.lambdaQuery(UserMirrorShop.class)
|
|
|
.eq(UserMirrorShop::getUserId, yhShopUserId).last("limit 1"));
|
|
.eq(UserMirrorShop::getUserId, yhShopUserId).last("limit 1"));
|
|
@@ -149,13 +149,14 @@ public class CmsUserMirrorShopDataController {
|
|
|
if (StrUtil.isNotEmpty(timeSql)) {
|
|
if (StrUtil.isNotEmpty(timeSql)) {
|
|
|
builder.put("time", timeSql);
|
|
builder.put("time", timeSql);
|
|
|
}
|
|
}
|
|
|
|
|
+ SearchResult search;
|
|
|
if (type == 1) {
|
|
if (type == 1) {
|
|
|
- builder.put("ty", " dp.type = 1");
|
|
|
|
|
|
|
+ search = beanSearcher.search(UserMirrorShopDsOrderDetailView.class, builder.build());
|
|
|
|
|
+ return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
} else {
|
|
} else {
|
|
|
//加盟订单提成
|
|
//加盟订单提成
|
|
|
- builder.put("ty", " dp.type = 2");
|
|
|
|
|
|
|
+ search = beanSearcher.search(UserMirrorShopDsOrderDetailView.class, builder.build());
|
|
|
}
|
|
}
|
|
|
- SearchResult<UserMirrorShopDsOrderDetailView> search = beanSearcher.search(UserMirrorShopDsOrderDetailView.class, builder.build());
|
|
|
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
return GatewayResponse.SUCCESS.newBuilder().toResult(search);
|
|
|
}
|
|
}
|
|
|
|
|
|