|
|
|
@ -7,8 +7,6 @@ import com.glxp.api.constant.ConstantType;
|
|
|
|
|
import com.glxp.api.entity.basic.BasicBussinessTypeEntity;
|
|
|
|
|
import com.glxp.api.entity.inout.*;
|
|
|
|
|
import com.glxp.api.entity.inv.InvPreinDetailEntity;
|
|
|
|
|
import com.glxp.api.entity.inv.InvProductDetailEntity;
|
|
|
|
|
import com.glxp.api.res.basic.UdiRelevanceResponse;
|
|
|
|
|
import com.glxp.api.service.basic.IBasicBussinessTypeService;
|
|
|
|
|
import com.glxp.api.service.inv.InvPreinDetailService;
|
|
|
|
|
import com.glxp.api.service.inv.InvPreinOrderService;
|
|
|
|
@ -110,7 +108,7 @@ public class IoCheckInoutService {
|
|
|
|
|
List<IoOrderDetailCodeEntity> orderDetailCodeEntities = orderDetailCodeService.findByOrderId(orderEntity.getBillNo());
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isEmpty(orderDetailCodeEntities)) {
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_FAIL);
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_FAIL);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderEntity.setErrMsg("校验失败,扫码详情为空!");
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
@ -140,7 +138,7 @@ public class IoCheckInoutService {
|
|
|
|
|
}
|
|
|
|
|
codeTempService.deleteByBillNo(orderEntity.getBillNo());
|
|
|
|
|
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_SUCCESS);
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_SUCCESS);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
|
checkSecond(orderEntity);
|
|
|
|
@ -152,7 +150,7 @@ public class IoCheckInoutService {
|
|
|
|
|
List<IoOrderDetailBizEntity> orderDetailBizEntities = orderDetailBizService.findByOrderId(orderEntity.getBillNo());
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isEmpty(orderDetailCodeEntities)) {
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_FAIL);
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_FAIL);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderEntity.setErrMsg("校验失败,扫码详情为空!");
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
@ -160,7 +158,7 @@ public class IoCheckInoutService {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (CollUtil.isEmpty(orderDetailBizEntities)) {
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_FAIL);
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_FAIL);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderEntity.setErrMsg("校验失败,业务详情为空!");
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
@ -217,7 +215,7 @@ public class IoCheckInoutService {
|
|
|
|
|
|
|
|
|
|
if (StrUtil.isNotEmpty(errMsg)) {
|
|
|
|
|
orderEntity.setErrMsg(errMsg + "校验失败");
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_FAIL);
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_FAIL);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
|
} else {
|
|
|
|
@ -237,7 +235,7 @@ public class IoCheckInoutService {
|
|
|
|
|
}
|
|
|
|
|
codeTempService.deleteByBillNo(orderEntity.getBillNo());
|
|
|
|
|
orderEntity.setErrMsg("校验成功!");
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_SUCCESS);
|
|
|
|
|
orderEntity.setStatus(ConstantStatus.ORDER_STATUS_CHECK_SUCCESS);
|
|
|
|
|
orderEntity.setUpdateTime(new Date());
|
|
|
|
|
orderService.update(orderEntity);
|
|
|
|
|
checkSecond(orderEntity);
|
|
|
|
|