tags/yfai-pcn-ext-v1.0
LML丶 1 year ago
parent b45afa4fa3
commit f205478b88

@ -70,7 +70,10 @@ public class MesSpotCheckOrderController {
if (StringUtils.isEmpty(model.getProduceSn())) { if (StringUtils.isEmpty(model.getProduceSn())) {
throw new ImppBusiException("扫描条码不能为空"); throw new ImppBusiException("扫描条码不能为空");
} }
return ResultBean.success("查询成功").setResultList(spotCheckOrderService.scanProduceSn(model, AuthUtil.getOrganizeCode())); if (CollectionUtils.isEmpty(model.getOrderPartList())) {
throw new ImppBusiException("点检明细零件不能为空");
}
return ResultBean.success("扫描产品条码成功").setResultList(spotCheckOrderService.scanProduceSn(model, AuthUtil.getOrganizeCode()));
} catch (ImppBusiException imppException) { } catch (ImppBusiException imppException) {
return ResultBean.fail(imppException); return ResultBean.fail(imppException);
} catch (Exception e) { } catch (Exception e) {

@ -89,7 +89,7 @@ public class MesSpotCheckOrderService implements IMesSpotCheckOrderService {
} }
} }
if (flg) { if (!flg) {
throw new ImppBusiException(String.format("扫描的条码【%s】对应的物料号【%s】在点检单中不存在", produceSn.getProductSn(), produceSn.getPartNo())); throw new ImppBusiException(String.format("扫描的条码【%s】对应的物料号【%s】在点检单中不存在", produceSn.getProductSn(), produceSn.getPartNo()));
} }

Loading…
Cancel
Save