|
@@ -8,13 +8,8 @@ import com.abi.qms.platform.dao.entity.UserInfo;
|
|
import com.abi.qms.platform.dao.enums.FlowQueryTypeEnum;
|
|
import com.abi.qms.platform.dao.enums.FlowQueryTypeEnum;
|
|
import com.abi.qms.platform.dao.enums.FlowStatusEnum;
|
|
import com.abi.qms.platform.dao.enums.FlowStatusEnum;
|
|
import com.abi.qms.platform.dao.enums.ReqChannelTypeEnum;
|
|
import com.abi.qms.platform.dao.enums.ReqChannelTypeEnum;
|
|
-import com.abi.qms.platform.dto.req.AddFlowQueryRecordReq;
|
|
|
|
-import com.abi.qms.platform.dto.req.GetBoxCodeReq;
|
|
|
|
-import com.abi.qms.platform.dto.req.GetInvisibleCodeReq;
|
|
|
|
-import com.abi.qms.platform.dto.req.GetStackCodeReq;
|
|
|
|
-import com.abi.qms.platform.dto.res.GetBoxCodeRes;
|
|
|
|
-import com.abi.qms.platform.dto.res.GetInvisibleCodeRes;
|
|
|
|
-import com.abi.qms.platform.dto.res.GetStackCodeRes;
|
|
|
|
|
|
+import com.abi.qms.platform.dto.req.*;
|
|
|
|
+import com.abi.qms.platform.dto.res.*;
|
|
import com.abi.qms.platform.infrastructure.util.AssertUtil;
|
|
import com.abi.qms.platform.infrastructure.util.AssertUtil;
|
|
import com.abi.qms.platform.infrastructure.util.UserUtil;
|
|
import com.abi.qms.platform.infrastructure.util.UserUtil;
|
|
import com.abi.qms.platform.service.FlowQueryService;
|
|
import com.abi.qms.platform.service.FlowQueryService;
|
|
@@ -296,9 +291,39 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
return res;
|
|
return res;
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 微信箱码查询
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public WxGetBoxCodeRes wxBoxCode(WxGetBoxCodeReq req) {
|
|
|
|
+ // TODO 处理逻辑同console端,待流向查询接口完成后修改
|
|
|
|
+ GetBoxCodeReq boxCodeReq = PojoConverterUtils.copy(req, GetBoxCodeReq.class);
|
|
|
|
+ GetBoxCodeRes boxCodeRes = this.boxCode(boxCodeReq);
|
|
|
|
+ return PojoConverterUtils.copy(boxCodeRes, WxGetBoxCodeRes.class);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 微信隐形码查询
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public WxGetInvisibleCodeRes WxInvisibleCode(WxGetInvisibleCodeReq req) {
|
|
|
|
+ // TODO 处理逻辑同console端,待流向查询接口完成后修改
|
|
|
|
+ GetInvisibleCodeReq invisibleCodeReq = PojoConverterUtils.copy(req, GetInvisibleCodeReq.class);
|
|
|
|
+ GetInvisibleCodeRes invisibleCodeRes = this.invisibleCode(invisibleCodeReq);
|
|
|
|
+ return PojoConverterUtils.copy(invisibleCodeRes, WxGetInvisibleCodeRes.class);
|
|
|
|
+ }
|
|
|
|
|
|
|
|
+ /**
|
|
|
|
+ * 微信垛码查询
|
|
|
|
+ */
|
|
|
|
+ @Override
|
|
|
|
+ public WxGetStackCodeRes wxStackCode(WxGetStackCodeReq req) {
|
|
|
|
+ // TODO 处理逻辑同console端,待流向查询接口完成后修改
|
|
|
|
+ GetStackCodeReq stackCodeReq = PojoConverterUtils.copy(req, GetStackCodeReq.class);
|
|
|
|
+ GetStackCodeRes stackCodeRes = this.stackCode(stackCodeReq);
|
|
|
|
+ return PojoConverterUtils.copy(stackCodeRes, WxGetStackCodeRes.class);
|
|
|
|
+ }
|
|
|
|
|
|
/**
|
|
/**
|
|
* 保存查询记录
|
|
* 保存查询记录
|
|
@@ -315,6 +340,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
.filter(s -> !(s.getNodeStatus().equals(1)))
|
|
.filter(s -> !(s.getNodeStatus().equals(1)))
|
|
.collect(Collectors.toMap(GetBoxCodeRes.FlowBean::getAbnormalType, flowBean -> flowBean));
|
|
.collect(Collectors.toMap(GetBoxCodeRes.FlowBean::getAbnormalType, flowBean -> flowBean));
|
|
|
|
|
|
|
|
+
|
|
FlowStatusEnum flowStatus = MapUtil.isEmpty(abnormalNodeMap) ? FlowStatusEnum.ABNORMAL : FlowStatusEnum.NORMAL;
|
|
FlowStatusEnum flowStatus = MapUtil.isEmpty(abnormalNodeMap) ? FlowStatusEnum.ABNORMAL : FlowStatusEnum.NORMAL;
|
|
|
|
|
|
//查询类型
|
|
//查询类型
|