| | |
| | | package com.zy.asrs.service.impl; |
| | | |
| | | import com.baomidou.mybatisplus.service.impl.ServiceImpl; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.core.common.Cools; |
| | | import com.core.exception.CoolException; |
| | | import com.zy.asrs.entity.MatCode; |
| | |
| | | return; |
| | | } |
| | | for (WaitPakin waitPakin : waitPakins) { |
| | | MatCode matCode = matCodeService.selectById(waitPakin.getMatnr()); |
| | | MatCode matCode = matCodeService.getById(waitPakin.getMatnr()); |
| | | if (Cools.isEmpty(matCode)){ |
| | | throw new CoolException("物料条码数据为空"); |
| | | } |
| | |
| | | wrkDetl.setZpallet(barcode); // 托盘条码 |
| | | wrkDetl.setAppeTime(new Date()); |
| | | wrkDetl.setModiTime(new Date()); |
| | | if (!this.insert(wrkDetl)) { |
| | | if (!this.save(wrkDetl)) { |
| | | throw new CoolException("保存工作明细失败"); |
| | | } |
| | | } |