|
@@ -63,14 +63,16 @@ public class BottleStorageServiceImpl extends ServiceImpl<BottleStorageMapper, B
|
|
|
bsVo.setElectronicTag(bottleStorage.getElectronicTag());
|
|
bsVo.setElectronicTag(bottleStorage.getElectronicTag());
|
|
|
List<BottleStorageVo> list = bottleStorageMapper.getListVo(bsVo);
|
|
List<BottleStorageVo> list = bottleStorageMapper.getListVo(bsVo);
|
|
|
if(list.size()>0){
|
|
if(list.size()>0){
|
|
|
- throw new ServiceException("该标签码已存在!");
|
|
|
|
|
|
|
+ throw new ServiceException("该识别码已存在!");
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
//查询标签码
|
|
//查询标签码
|
|
|
RfidTag rfidTag = rfidTagService.getRfidByTagCode(bottleStorage.getElectronicTag());
|
|
RfidTag rfidTag = rfidTagService.getRfidByTagCode(bottleStorage.getElectronicTag());
|
|
|
if(rfidTag==null){
|
|
if(rfidTag==null){
|
|
|
- throw new ServiceException("未查询到相关标签码!");
|
|
|
|
|
|
|
+ throw new ServiceException("未查询到相关识别码!");
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+ //刷新识别码状态
|
|
|
RfidTag rfid = new RfidTag();
|
|
RfidTag rfid = new RfidTag();
|
|
|
rfid.setIsBind((short) 1);
|
|
rfid.setIsBind((short) 1);
|
|
|
rfid.setId(rfidTag.getId());
|
|
rfid.setId(rfidTag.getId());
|