Przeglądaj źródła

气瓶问题修改

liujh 3 lat temu
rodzic
commit
55a807d3df

+ 4 - 2
zd-modules/zd-bottle-parent/zd-bottle/src/main/java/com/zd/bottle/service/impl/BottleStorageServiceImpl.java

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