|
|
@ -951,17 +951,17 @@ public class IoCodeTempController extends BaseController {
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
InvPreInProductDetailEntity invPreinDetailEntity = invPreinProductDetailService.findUseOneByCode(codeTempEntity.getCode());
|
|
|
|
// InvPreInProductDetailEntity invPreinDetailEntity = invPreinProductDetailService.findUseOneByCode(codeTempEntity.getCode());
|
|
|
|
if (count <= 0) {
|
|
|
|
if (count <= 0) {
|
|
|
|
if (count == -1) {
|
|
|
|
if (count == -1) {
|
|
|
|
return ResultVOUtils.error(500, "该产品未入库");
|
|
|
|
return ResultVOUtils.error(500, "该产品未入库");
|
|
|
|
} else
|
|
|
|
} else
|
|
|
|
return ResultVOUtils.error(500, "预验收库存数量不足!");
|
|
|
|
return ResultVOUtils.error(500, "预验收库存数量不足!");
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
if (StrUtil.isNotEmpty(invPreinDetailEntity.getBatchNo()) && StrUtil.isNotEmpty(codeTempEntity.getBatchNo())
|
|
|
|
// if (StrUtil.isNotEmpty(invPreinDetailEntity.getBatchNo()) && StrUtil.isNotEmpty(codeTempEntity.getBatchNo())
|
|
|
|
&& !invPreinDetailEntity.getBatchNo().equals(codeTempEntity.getBatchNo())) {
|
|
|
|
// && !invPreinDetailEntity.getBatchNo().equals(codeTempEntity.getBatchNo())) {
|
|
|
|
return ResultVOUtils.error(500, "当前批次号与预验收录入批次号不匹配!");
|
|
|
|
// return ResultVOUtils.error(500, "当前批次号与预验收录入批次号不匹配!");
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
if (StrUtil.isNotEmpty(codeTempEntity.getOrderId())) {//非首次添加
|
|
|
|
if (StrUtil.isNotEmpty(codeTempEntity.getOrderId())) {//非首次添加
|
|
|
|
if (StrUtil.isEmpty(codeTempEntity.getSerialNo())) {//该单据已有该产品
|
|
|
|
if (StrUtil.isEmpty(codeTempEntity.getSerialNo())) {//该单据已有该产品
|
|
|
|
//无序列号,则可能存在多个预验收入库单
|
|
|
|
//无序列号,则可能存在多个预验收入库单
|
|
|
|