jiangping
2025-06-09 5ecb8706b917aa86f43e44a412e86e3e50b636c0
server/service/src/main/java/com/doumee/service/business/impl/SolutionsServiceImpl.java
@@ -142,6 +142,7 @@
    private void dealWorkType(Solutions solutions, Solutions newModel, List<SolutionWorktype> worktypes) {
        int num =0;
        List<SolutionWorktype> typeList = new ArrayList<>();
        for(SolutionWorktype type : worktypes) {
            //基础版本
            SolutionWorktype w = new SolutionWorktype();
@@ -158,8 +159,12 @@
            //历史版本的工种信息
            SolutionWorktype newType = new SolutionWorktype();
            BeanUtils.copyProperties(w, newType);
            newType.setId(null);
            newType.setSolutionId(newModel.getId());
            solutionWorktypeJoinMapper.insert(newType);
            typeList.add(newType);
        }
        if(typeList.size()>0){
            solutionWorktypeJoinMapper.insert(typeList);
        }
    }