|
@@ -197,10 +197,12 @@ public class ApsReportRecordsServiceImpl extends ServiceImpl<ApsReportRecordsDao
|
|
//查询订单的详情
|
|
//查询订单的详情
|
|
ApsProductionOrderDo apsProductionOrderDo = apsProductionOrderService.getById(apsBlankOrderDo.getProductionorderid());
|
|
ApsProductionOrderDo apsProductionOrderDo = apsProductionOrderService.getById(apsBlankOrderDo.getProductionorderid());
|
|
|
|
|
|
- //根据设备ID查询对应车间代号和设备代号
|
|
|
|
- OrganizationCodeAndDeviceCodeVo organizationCodeAndDeviceCodeVo = this.baseMapper.selectOrganizationCodeAndDeviceCode(apsProcessOperationProcessEquDo.getProcessdeviceid());
|
|
|
|
- if (ObjectUtil.isEmpty(organizationCodeAndDeviceCodeVo) || ObjectUtil.isEmpty(organizationCodeAndDeviceCodeVo.getDeviceCode()) || ObjectUtil.isEmpty(organizationCodeAndDeviceCodeVo.getOrganizationCode())) {
|
|
|
|
- return R.error("未找到对应的车间代号和设备代号");
|
|
|
|
|
|
+ if (ObjectUtil.isEmpty(req.getInputBatchNumber())) {
|
|
|
|
+ //根据设备ID查询对应车间代号和设备代号
|
|
|
|
+ OrganizationCodeAndDeviceCodeVo organizationCodeAndDeviceCodeVo = this.baseMapper.selectOrganizationCodeAndDeviceCode(apsProcessOperationProcessEquDo.getProcessdeviceid());
|
|
|
|
+ if (ObjectUtil.isEmpty(organizationCodeAndDeviceCodeVo) || ObjectUtil.isEmpty(organizationCodeAndDeviceCodeVo.getDeviceCode()) || ObjectUtil.isEmpty(organizationCodeAndDeviceCodeVo.getOrganizationCode())) {
|
|
|
|
+ return R.error("未找到对应的车间代号和设备代号");
|
|
|
|
+ }
|
|
}
|
|
}
|
|
/**
|
|
/**
|
|
* 如果工序作业明细加工设备已有其他作业明细正在加工(待报工记录ID不为空),
|
|
* 如果工序作业明细加工设备已有其他作业明细正在加工(待报工记录ID不为空),
|