|
@@ -181,6 +181,8 @@ public class YhShopUserController {
|
|
|
@GetMapping("/get/distribute/orders/statisticsData")
|
|
@GetMapping("/get/distribute/orders/statisticsData")
|
|
|
public Result<SearchResult<YhShopUserDistributeOrdersStatisticsView>> getUserDistributeOrdersStatisticsView(Long firstDate, Long lastDate) {
|
|
public Result<SearchResult<YhShopUserDistributeOrdersStatisticsView>> getUserDistributeOrdersStatisticsView(Long firstDate, Long lastDate) {
|
|
|
long yhShopUserId = StpYhShopManageUser.getLoginIdAsLong();
|
|
long yhShopUserId = StpYhShopManageUser.getLoginIdAsLong();
|
|
|
|
|
+ YhShop yhShop = yhShopMapper.selectOne(Wrappers.lambdaQuery(YhShop.class)
|
|
|
|
|
+ .eq(YhShop::getUserId, yhShopUserId).last("limit 1"));
|
|
|
String first = null;
|
|
String first = null;
|
|
|
String end = null;
|
|
String end = null;
|
|
|
String timeSql = StrUtil.EMPTY;
|
|
String timeSql = StrUtil.EMPTY;
|
|
@@ -193,7 +195,7 @@ public class YhShopUserController {
|
|
|
timeSql += String.format(" and o.created_time < '%s'", end);
|
|
timeSql += String.format(" and o.created_time < '%s'", end);
|
|
|
}
|
|
}
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
- builder.put("shopUserId", String.format("shop_user_id = %s", yhShopUserId));
|
|
|
|
|
|
|
+ builder.put("yhs_id", String.format("yhs_id = %s", yhShop.getId()));
|
|
|
if (StrUtil.isNotEmpty(timeSql)) {
|
|
if (StrUtil.isNotEmpty(timeSql)) {
|
|
|
builder.put("time", timeSql);
|
|
builder.put("time", timeSql);
|
|
|
}
|
|
}
|
|
@@ -207,6 +209,8 @@ public class YhShopUserController {
|
|
|
@GetMapping("/get/distribute/orders/detail/data")
|
|
@GetMapping("/get/distribute/orders/detail/data")
|
|
|
public Result<SearchResult<YhShopUserDistributeOrdersDetailView>> getUserDistributeOrdersDetailView(Long firstDate, Long lastDate) {
|
|
public Result<SearchResult<YhShopUserDistributeOrdersDetailView>> getUserDistributeOrdersDetailView(Long firstDate, Long lastDate) {
|
|
|
long yhShopUserId = StpYhShopManageUser.getLoginIdAsLong();
|
|
long yhShopUserId = StpYhShopManageUser.getLoginIdAsLong();
|
|
|
|
|
+ YhShop yhShop = yhShopMapper.selectOne(Wrappers.lambdaQuery(YhShop.class)
|
|
|
|
|
+ .eq(YhShop::getUserId, yhShopUserId).last("limit 1"));
|
|
|
String first = null;
|
|
String first = null;
|
|
|
String end = null;
|
|
String end = null;
|
|
|
String timeSql = StrUtil.EMPTY;
|
|
String timeSql = StrUtil.EMPTY;
|
|
@@ -219,7 +223,7 @@ public class YhShopUserController {
|
|
|
timeSql += String.format(" and o.created_time < '%s'", end);
|
|
timeSql += String.format(" and o.created_time < '%s'", end);
|
|
|
}
|
|
}
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
- builder.put("shopUserId", String.format("shop_user_id = %s", yhShopUserId));
|
|
|
|
|
|
|
+ builder.put("yhs_id", String.format("yhs_id = %s", yhShop.getId()));
|
|
|
if (StrUtil.isNotEmpty(timeSql)) {
|
|
if (StrUtil.isNotEmpty(timeSql)) {
|
|
|
builder.put("time", timeSql);
|
|
builder.put("time", timeSql);
|
|
|
}
|
|
}
|