From 071db78d02b68f71f855d54bdac44417147a2787 Mon Sep 17 00:00:00 2001
From: dubin <bindu_bean@163.com>
Date: 星期三, 12 十一月 2025 14:30:31 +0800
Subject: [PATCH] 半托功能调整
---
src/main/java/com/zy/asrs/service/impl/MatBarcodeServiceImpl.java | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diff --git a/src/main/java/com/zy/asrs/service/impl/MatBarcodeServiceImpl.java b/src/main/java/com/zy/asrs/service/impl/MatBarcodeServiceImpl.java
index 3f7f416..0fd9cfa 100644
--- a/src/main/java/com/zy/asrs/service/impl/MatBarcodeServiceImpl.java
+++ b/src/main/java/com/zy/asrs/service/impl/MatBarcodeServiceImpl.java
@@ -1,6 +1,7 @@
package com.zy.asrs.service.impl;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
+import com.core.common.Cools;
import com.core.exception.CoolException;
import com.zy.asrs.entity.HalfBarcode;
import com.zy.asrs.entity.Mat;
@@ -36,7 +37,7 @@
for (MatBarcode matBarcode : list) {
//瀵规ā鍏风殑瑙勬牸鍋氬鐞嗗緱鍒板帤搴�
Integer thickness = 0;
- if (matBarcode.getSpecs() != null){
+ if (!Cools.isEmpty(matBarcode.getSpecs())){
String[] split = matBarcode.getSpecs().split("\\*");
thickness = Integer.parseInt(split[1]);
}
@@ -66,7 +67,7 @@
HalfBarcode halfBarcode = halfBarcodeService.selectByZpallet(waitPakin.getBarcode());
//瀵规ā鍏风殑瑙勬牸鍋氬鐞嗗緱鍒板帤搴�
Integer thickness = 0;
- if (mat.getSpecs() != null){
+ if (!Cools.isEmpty(mat.getSpecs())){
String[] split = mat.getSpecs().split("\\*");
thickness = Integer.parseInt(split[1]);
}
@@ -127,7 +128,7 @@
HalfBarcode halfBarcode = halfBarcodeService.selectByZpallet(mat.getUnit());
//瀵规ā鍏风殑瑙勬牸鍋氬鐞嗗緱鍒板帤搴�
Integer thickness = 0;
- if (mat.getSpecs() != null){
+ if (!Cools.isEmpty(mat.getSpecs())){
String[] split = mat.getSpecs().split("\\*");
thickness = Integer.parseInt(split[1]);
}
--
Gitblit v1.9.1