|
|
@@ -134,7 +134,7 @@ public class CmsOrderController {
|
|
|
|
|
|
@GetMapping("/get")
|
|
|
@SaCheckPermission("order:view")
|
|
|
- public Result<SearchResult<OrderDonBackView>> get(Long channelId, String account, String showId, Long acId, String nickname, String register, Boolean isGoogle, Boolean isSubsidy, Boolean isRenewPackage, Integer otherOrderType, Long userMirrorShopId, String operator, Long diffGoodsId) {
|
|
|
+ public Result<SearchResult<OrderDonBackView>> get(Long channelId, String account, String showId, Long acId, String nickname, String register, Boolean isGoogle, Boolean isSubsidy, Boolean isRenewPackage, Integer otherOrderType, Long userMirrorShopId, String operator, Long diffGoodsId, Boolean isTp) {
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
if (channelId != null) {
|
|
|
List<Long> popularizeIds = channelPopularizeMapper.getPopularizeIdByChannelId(channelId);
|
|
|
@@ -210,7 +210,7 @@ public class CmsOrderController {
|
|
|
}
|
|
|
conditionSql += String.format(" exists (select 1 from user_mirror_shop_order_relate umr where mp_id = %s and umr.order_id = o.id limit 1)", userMirrorShopId);
|
|
|
}
|
|
|
- if (diffGoodsId != null || StrUtil.isNotBlank(operator)) {
|
|
|
+ if (diffGoodsId != null || StrUtil.isNotBlank(operator) || isTp != null) {
|
|
|
if (StrUtil.isNotEmpty(conditionSql)) {
|
|
|
conditionSql += " and ";
|
|
|
}
|
|
|
@@ -221,6 +221,9 @@ public class CmsOrderController {
|
|
|
if (StrUtil.isNotBlank(operator)) {
|
|
|
conditionSql += String.format(" and odr.operator = '%s'", operator);
|
|
|
}
|
|
|
+ if (isTp != null && isTp) {
|
|
|
+ conditionSql += String.format(" and odr.is_tp = %s", isTp);
|
|
|
+ }
|
|
|
conditionSql += ")";
|
|
|
}
|
|
|
if (StrUtil.isNotBlank(conditionSql)) {
|
|
|
@@ -310,6 +313,7 @@ public class CmsOrderController {
|
|
|
data.setDiffGoodsId(donDifferRelateView.getGoodsId());
|
|
|
data.setDiffTitle(donDifferRelateView.getTitle());
|
|
|
data.setDiffOperator(donDifferRelateView.getOperator());
|
|
|
+ data.setIsTp(donDifferRelateView.getIsTp());
|
|
|
}
|
|
|
}
|
|
|
});
|
|
|
@@ -361,7 +365,7 @@ public class CmsOrderController {
|
|
|
@GetMapping("/export")
|
|
|
@SaCheckPermission("order:export")
|
|
|
@Log(module = "订单管理/导出订单", businessType = BusinessType.EXPORT, isSaveRequestData = true)
|
|
|
- public void exportOrders(HttpServletResponse response, Long channelId, String account, String showId, Long acId, String nickname, String register, Boolean isGoogle, Boolean isSubsidy, Boolean isRenewPackage, Integer otherOrderType, Long userMirrorShopId, String operator, Long diffGoodsId) throws InterruptedException {
|
|
|
+ public void exportOrders(HttpServletResponse response, Long channelId, String account, String showId, Long acId, String nickname, String register, Boolean isGoogle, Boolean isSubsidy, Boolean isRenewPackage, Integer otherOrderType, Long userMirrorShopId, String operator, Long diffGoodsId, Boolean isTp) throws InterruptedException {
|
|
|
MapBuilder builder = MapUtils.flatBuilder(request.getParameterMap());
|
|
|
if (channelId != null) {
|
|
|
List<Long> popularizeIds = channelPopularizeMapper.getPopularizeIdByChannelId(channelId);
|
|
|
@@ -431,7 +435,7 @@ public class CmsOrderController {
|
|
|
builder.put("tb", String.format(" inner join user_mirror_shop_order_relate umr on umr.order_id = o.id"));
|
|
|
}
|
|
|
}
|
|
|
- if (diffGoodsId != null || StrUtil.isNotBlank(operator)) {
|
|
|
+ if (diffGoodsId != null || StrUtil.isNotBlank(operator) || isTp != null) {
|
|
|
if (StrUtil.isNotEmpty(conditionSql)) {
|
|
|
conditionSql += " and ";
|
|
|
}
|
|
|
@@ -442,6 +446,9 @@ public class CmsOrderController {
|
|
|
if (StrUtil.isNotBlank(operator)) {
|
|
|
conditionSql += String.format(" and odr.operator = '%s'", operator);
|
|
|
}
|
|
|
+ if (isTp != null && isTp) {
|
|
|
+ conditionSql += String.format(" and odr.is_tp = %s", isTp);
|
|
|
+ }
|
|
|
conditionSql += ")";
|
|
|
}
|
|
|
if (userMirrorShopId != null) {
|