jinlin
2024-03-12 c400e8082b202fbf20ea0e740a306aa3c62e8fb5
modules/mainPart/src/main/java/com/zt/life/modules/taskReliability/service/ModelLineService.java
@@ -68,8 +68,8 @@
    @Transactional(rollbackFor = Exception.class)
    public void insert(ModelRbd modelRbd) {
        if (modelRbd==null) return;
        if (modelRbd.getModelId()==null) return;
        Long modelId = modelRbd.getModelId();
        if (modelRbd.getId()==null) return;
        Long modelId = modelRbd.getId();
        // 删除既有数据
        modelRbdDao.deleteByModelId(modelId);
@@ -82,8 +82,8 @@
    @Transactional(rollbackFor = Exception.class)
    public void update(ModelRbd modelRbd) {
        if (modelRbd==null) return;
        if (modelRbd.getModelId()==null) return;
        Long modelId = modelRbd.getModelId();
        if (modelRbd.getId()==null) return;
        Long modelId = modelRbd.getId();
        // 删除既有数据
        modelRbdDao.deleteByModelId(modelId);