|
@@ -14,7 +14,7 @@ import com.abi.qms.platform.infrastructure.util.AssertUtil;
|
|
|
import com.abi.qms.platform.infrastructure.util.UserUtil;
|
|
|
import com.abi.qms.platform.service.FlowQueryService;
|
|
|
import com.abi.qms.platform.service.IFlowQueryRecordService;
|
|
|
-import com.abi.qms.platform.service.IInspectionCaseService;
|
|
|
+import com.abi.qms.platform.service.InspectionCaseService;
|
|
|
import com.abi.task.common.utils.PojoConverterUtils;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -39,7 +39,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
private IFlowQueryRecordService flowQueryRecordService;
|
|
|
|
|
|
@Autowired
|
|
|
- private IInspectionCaseService caseService;
|
|
|
+ private InspectionCaseService caseService;
|
|
|
|
|
|
@Autowired
|
|
|
private UserUtil userUtil;
|
|
@@ -225,7 +225,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
} else if (FlowQueryTypeEnum.INVISIBLE_CODE.is(queryType)) {
|
|
|
// 箱码(隐形码)查询
|
|
|
res = this.getFlowInfoByInvisibleCode(inquireCode);
|
|
|
- } else if (FlowQueryTypeEnum.TRAY_CODE.is(queryType)) {
|
|
|
+ } else if (FlowQueryTypeEnum.STACK_CODE.is(queryType)) {
|
|
|
// 剁码查询
|
|
|
res = this.getFlowInfoByStackCode(inquireCode);
|
|
|
}
|
|
@@ -414,7 +414,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
// TODO 处理逻辑同console端,待流向查询接口完成后修改
|
|
|
GetFlowInfoRes res = this.getFlowInfoByStackCode(req.getStackCode());
|
|
|
SaveFlowQueryRecordReq saveFlowQueryRecordReq = new SaveFlowQueryRecordReq()
|
|
|
- .setQueryType(FlowQueryTypeEnum.TRAY_CODE.getCode())
|
|
|
+ .setQueryType(FlowQueryTypeEnum.STACK_CODE.getCode())
|
|
|
.setQueryPlatform(ReqChannelTypeEnum.WECHAT.getCode())
|
|
|
.setQueryAddress("");
|
|
|
this.saveQueryRecord(res, saveFlowQueryRecordReq);
|
|
@@ -434,7 +434,7 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
Integer queryType = req.getQueryType();
|
|
|
//判断流向状态
|
|
|
Map<Integer, GetFlowInfoRes.FlowBean> abnormalNodeMap = new HashMap<>();
|
|
|
- if (!FlowQueryTypeEnum.TRAY_CODE.is(queryType)) {
|
|
|
+ if (!FlowQueryTypeEnum.STACK_CODE.is(queryType)) {
|
|
|
abnormalNodeMap = res.getFlowList()
|
|
|
.stream()
|
|
|
.filter(s -> !(s.getNodeStatus().equals(1)))
|
|
@@ -449,8 +449,8 @@ public class FlowQueryServiceImpl implements FlowQueryService {
|
|
|
|
|
|
|
|
|
// 箱码 查询类型为箱码时必传
|
|
|
- if (FlowQueryTypeEnum.TRAY_CODE.is(queryType)) {
|
|
|
- addReq.setTrayCode(res.getStack().getStackCode());
|
|
|
+ if (FlowQueryTypeEnum.STACK_CODE.is(queryType)) {
|
|
|
+ addReq.setStackCode(res.getStack().getStackCode());
|
|
|
} else {
|
|
|
addReq.setBoxCode(res.getBoxStack().getBoxCode());
|
|
|
}
|