liusheng
2024-07-30 ae3200fadc28f925e516d85da7fcb78d402960f7
代码提交
已修改1个文件
7 ■■■■■ 文件已修改
smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java 7 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
smartor/src/main/java/com/smartor/service/impl/HeLibraryServiceImpl.java
@@ -103,14 +103,13 @@
     */
    @Override
    public Integer saveOrUpdateScript(HeLibraryVO heLibraryVO) {
        Integer i = null;
        HeLibrary heLibrary = DtoConversionUtils.sourceToTarget(heLibraryVO, HeLibrary.class);
        if (heLibraryVO.getIsoperation() != null && heLibraryVO.getIsoperation() == 1) {
            //新增
            i = heLibraryMapper.insertHeLibrary(heLibrary);
            heLibraryMapper.insertHeLibrary(heLibrary);
        } else if (heLibraryVO.getIsoperation() != null && heLibraryVO.getIsoperation() == 2) {
            //修改
            i = heLibraryMapper.updateHeLibrary(heLibrary);
            heLibraryMapper.updateHeLibrary(heLibrary);
        }
        log.info("新增或修改宣教详情的id为:{}", heLibrary.getId());
//
@@ -146,7 +145,7 @@
//            }
//        }
        return i;
        return heLibrary.getId().intValue();
    }
    @Override