Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
6e5da0821b
@ -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<UcmCtMaterial> 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()));
|
||||
|
Loading…
Reference in New Issue
Block a user