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()));