%!s(int64=5) %!d(string=hai) anos
pai
achega
ca00dfb2b6

+ 3 - 0
cloud-model/src/main/java/com/hssx/cloudmodel/service/impl/MouldEquipmentServiceImpl.java

@@ -105,6 +105,9 @@ public class MouldEquipmentServiceImpl extends ServiceImpl<MouldEquipmentMapper,
         HttpRespMsg msg = new HttpRespMsg();
         List<Integer> ides = new ArrayList<>();
         List<Mould> moulds = mouldMapper.selectList(new QueryWrapper<Mould>().eq("company_id", mouldEquipmentVO.getBelongCompanyId()));
+        if(null == mouldEquipmentVO.getMouldId()){
+            mouldEquipmentVO.setMouldId(-1);
+        }
         for (Mould mould : moulds) {
             if(mould.getId() != mouldEquipmentVO.getMouldId()){
                 ides.add(mould.getEquipmentId());