liusheng
2024-11-29 8d913e5594f45ca2a4ce656ea9feb99ffe715913
smartor/src/main/java/com/smartor/service/impl/IvrLibaScriptServiceImpl.java
@@ -156,13 +156,24 @@
                    //修改
                    ivrLibaScriptTargetoption.setScriptid(ivrLibaScript.getId());
                    ivrLibaScriptTargetoptionMapper.updateIvrLibaScriptTargetoption(ivrLibaScriptTargetoption);
                    //如果要给正则置空,则需要单独调修改方法
                    if (CollectionUtils.isEmpty(ivrLibaScriptTargetoption.getNodynamiccruxs())) {
                        ivrLibaScriptTargetoption.setNodynamiccruxsJson(null);
                        ivrLibaScriptTargetoptionMapper.updateDynam(ivrLibaScriptTargetoption);
                    }
                    if (CollectionUtils.isEmpty(ivrLibaScriptTargetoption.getDynamiccruxs())) {
                        ivrLibaScriptTargetoption.setDynamiccruxsJson(null);
                        ivrLibaScriptTargetoptionMapper.updateDynam(ivrLibaScriptTargetoption);
                    }
                }
                if (ivrLibaScriptTargetoption.getIsoperation() != null && ivrLibaScriptTargetoption.getIsoperation() == 3) {
                    //删除
                    if (ivrLibaScriptTargetoption.getId() == null) {
                        log.info("删除失败,问题指标选项id为空");
                    } else {
                        ivrLibaScriptTargetoptionMapper.deleteIvrLibaScriptTargetoptionByTargetoptionid(ivrLibaScriptTargetoption.getId());
                        Boolean aBoolean = ivrLibaScriptTargetoptionMapper.deleteIvrLibaScriptTargetoptionByTargetoptionid(ivrLibaScriptTargetoption.getId());
                        log.info("aBoolean的值为:{}", aBoolean);
                    }
                }
            }
@@ -191,8 +202,6 @@
                }
            }
        }
        return i;
    }