自动化立体仓库 - WMS系统
#1
dubin
2 天以前 020eb6dc7ebe1f5f4518c76af19520f9d1d4e9f6
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]);
        }
@@ -166,7 +167,7 @@
        mb.setMatnr(mat.getMatnr());
        mb.setMaktx(mat.getMaktx());
        mb.setSpecs(mat.getSpecs());
        mb.setModel(mat.getModel());
        mb.setModel(mat.getName());
        if (!matBarcodeService.insert(mb)){
            throw new CoolException("物料托盘绑定失败");
        }