|
@@ -213,7 +213,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
* TODO 测试使用,待流向查询接口完成后,根据实际情况调整结构
|
|
|
*/
|
|
|
@Override
|
|
|
- public GetFlowInfoRes queryFlow(GetBoxCodeReq req) {
|
|
|
+ public GetFlowInfoRes queryFlow(GetFlowInfoReq req) {
|
|
|
Integer queryType = req.getQueryType();
|
|
|
GetFlowInfoRes res = null;
|
|
|
//查询内容
|
|
@@ -413,18 +413,16 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
* @param res 查询结果
|
|
|
* @param req 查询请求
|
|
|
*/
|
|
|
- private void saveQueryRecord(GetFlowInfoRes res, GetBoxCodeReq req) {
|
|
|
+ private void saveQueryRecord(GetFlowInfoRes res, GetFlowInfoReq req) {
|
|
|
try {
|
|
|
//查询类型
|
|
|
Integer queryType = req.getQueryType();
|
|
|
//判断流向状态
|
|
|
Map<Integer, GetFlowInfoRes.FlowBean> abnormalNodeMap = new HashMap<>();
|
|
|
- if (!FlowQueryTypeEnum.TRAY_CODE.is(req.getQueryType())) {
|
|
|
- abnormalNodeMap = res.getFlowList()
|
|
|
- .stream()
|
|
|
- .filter(s -> !(s.getNodeStatus().equals(1)))
|
|
|
- .collect(Collectors.toMap(GetFlowInfoRes.FlowBean::getAbnormalType, flowBean -> flowBean));
|
|
|
- }
|
|
|
+ abnormalNodeMap = res.getFlowList()
|
|
|
+ .stream()
|
|
|
+ .filter(s -> !(Objects.equals(s.getNodeStatus(), 1)))
|
|
|
+ .collect(Collectors.toMap(GetFlowInfoRes.FlowBean::getAbnormalType, flowBean -> flowBean));
|
|
|
|
|
|
FlowStatusEnum flowStatus = MapUtil.isEmpty(abnormalNodeMap) ? FlowStatusEnum.NORMAL : FlowStatusEnum.ABNORMAL;
|
|
|
|