diff --git a/hai-bweb/src/main/java/com/bweb/controller/HighGasController.java b/hai-bweb/src/main/java/com/bweb/controller/HighGasController.java
index a3e0dc5f..dc4e0c4f 100644
--- a/hai-bweb/src/main/java/com/bweb/controller/HighGasController.java
+++ b/hai-bweb/src/main/java/com/bweb/controller/HighGasController.java
@@ -74,6 +74,9 @@ public class HighGasController {
@Resource
private ShellGroupService shellGroupService;
+ @Resource
+ private HighGasOrderService gasOrderService;
+
@RequestMapping(value="/getMerGasStatistical",method = RequestMethod.POST)
@ResponseBody
@ApiOperation(value = "查询商户油站统计")
@@ -271,8 +274,7 @@ public class HighGasController {
}
PageHelper.startPage(pageNum, pageSize);
- // return ResponseMsgUtil.success(new PageInfo<>(highOrderService.getGasOrderList(param)));
- return ResponseMsgUtil.success(null);
+ return ResponseMsgUtil.success(new PageInfo<>(gasOrderService.getGasOrderList(param)));
} catch (Exception e) {
log.error("HighGasController -> getGasOrderList() error!",e);
@@ -418,7 +420,7 @@ public class HighGasController {
param.put("createTimeE", createTimeE);
if (status == null) {
- param.put("status", "2,3,4,6,7");
+ param.put("status", "2,4,5,6");
} else {
param.put("status", status);
}
@@ -590,7 +592,7 @@ public class HighGasController {
public ResponseData getGasOrderDetail(@RequestParam(name = "orderNo", required = true) String orderNo) {
try {
- return ResponseMsgUtil.success(highOrderService.getGasOrderDetail(orderNo));
+ return ResponseMsgUtil.success(gasOrderService.getDetailByOrderNo(orderNo));
} catch (Exception e) {
log.error("HighGasController -> getGasOrderDetail() error!",e);
diff --git a/hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java b/hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
index b9f1e5b6..9d39def0 100644
--- a/hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
+++ b/hai-service/src/main/java/com/hai/dao/HighOrderMapperExt.java
@@ -1094,20 +1094,20 @@ public interface HighOrderMapperExt {
@Select({
""
})
diff --git a/hai-service/src/main/java/com/hai/service/impl/HighGasOrderServiceImpl.java b/hai-service/src/main/java/com/hai/service/impl/HighGasOrderServiceImpl.java
index 8c36c769..8f400a24 100644
--- a/hai-service/src/main/java/com/hai/service/impl/HighGasOrderServiceImpl.java
+++ b/hai-service/src/main/java/com/hai/service/impl/HighGasOrderServiceImpl.java
@@ -9,9 +9,9 @@ import org.apache.commons.lang3.StringUtils;
import org.springframework.stereotype.Service;
import javax.annotation.Resource;
-import java.util.Date;
-import java.util.List;
-import java.util.Map;
+import java.util.*;
+import java.util.stream.Collectors;
+import java.util.stream.IntStream;
/**
* @className: HighGasOrderServiceImpl
@@ -126,8 +126,11 @@ public class HighGasOrderServiceImpl implements HighGasOrderService {
criteria.andPayTypeEqualTo(MapUtils.getInteger(param, "payType"));
}
- if (MapUtils.getInteger(param, "status") != null) {
- criteria.andStatusEqualTo(MapUtils.getInteger(param, "status"));
+ if (StringUtils.isNotBlank(MapUtils.getString(param, "status"))) {
+ List status = Arrays.stream(MapUtils.getString(param, "status").split(","))
+ .flatMapToInt(num -> IntStream.of(Integer.parseInt(num))).boxed()
+ .collect(Collectors.toList());
+ criteria.andStatusIn(status);
}
if (MapUtils.getLong(param, "createTimeS") != null) {