From 35f3067343f191ec4f0977f4aeb78b84e54d57c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E5=90=8D=E5=96=9C?= Date: Mon, 9 Dec 2024 11:23:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E7=89=A9=E6=96=99=E7=BB=91?= =?UTF-8?q?=E5=AE=9A=E5=89=8D=E6=A0=A1=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java index 1acb4e5..5facd80 100644 --- a/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java +++ b/ktg-mes/src/main/java/com/ktg/mes/wm/service/impl/UcmCtBaseServiceImpl.java @@ -1,7 +1,6 @@ package com.ktg.mes.wm.service.impl; import com.alibaba.fastjson.JSON; -import com.ktg.common.core.redis.RedisCache; import com.ktg.common.utils.DateUtils; import com.ktg.mes.md.domain.BaseKnife; import com.ktg.mes.md.mapper.BaseKnifeMapper; @@ -14,12 +13,10 @@ import com.ktg.mes.wm.domain.box.RfidCard; import com.ktg.mes.wm.mapper.UcmCtBaseMapper; import com.ktg.mes.wm.service.IUcmCtBaseService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.redis.core.RedisTemplate; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import java.util.Date; -import java.util.HashMap; import java.util.List; import static org.apache.commons.lang3.SystemUtils.getUserName; @@ -208,11 +205,10 @@ public class UcmCtBaseServiceImpl implements IUcmCtBaseService { throw new RuntimeException(String.format("绑定失败,物料“%s”不存在", boxItem.getBoxItemRfid().trim())); UcmCtMaterial ucmCtMaterialQuery = new UcmCtMaterial(); - ucmCtMaterialQuery.setCtBaseId(Long.parseLong(ucmCtBaseList.get(0).getCtBaseId())); ucmCtMaterialQuery.setBaseKnifeId(baseKnifeList.get(0).getBaseKnifeId()); List ucmCtMaterialList = ucmCtMaterialMapper2.selectUcmCtMaterialList(ucmCtMaterialQuery); if (!ucmCtMaterialList.isEmpty()) - throw new RuntimeException(String.format("绑定失败,物料“%s”已经绑定料箱“%s”", boxItem.getBoxItemRfid().trim(), box.getBoxRfid().trim())); + throw new RuntimeException(String.format("绑定失败,物料“%s”已经被其它料箱绑定", boxItem.getBoxItemRfid().trim())); UcmCtMaterial ucmCtMaterial = new UcmCtMaterial(); ucmCtMaterial.setCtBaseId(Long.parseLong(ucmCtBaseList.get(0).getCtBaseId()));