public static ModuleDTO getFromRequest(ModuleRequest request, String extParams, Integer packageId) {
        if (!StringUtils.isNotBlank(extParams)) {
            return CommonBeanUtils.copyProperties(request, ModuleDTO::new, true);
        }
        ModuleDTO dto = ModuleDTO.getFromJson(extParams);
        if (!Objects.equals(request.getPackageId(), packageId)) {
            List<PackageHistory> packageHistoryList = dto.getPackageHistoryList();
            if (packageHistoryList.size() > 10) {
                packageHistoryList.remove(packageHistoryList.size() - 1);
            }
            PackageHistory packageHistory = PackageHistory.builder()
                    .packageId(packageId)
                    .modifier(request.getCurrentUser())
                    .modifyTime(new Date())
                    .build();
            packageHistoryList.add(0, packageHistory);
            dto.setPackageHistoryList(packageHistoryList);
        }
        return CommonBeanUtils.copyProperties(request, dto, true);
    }
Get the dto instance from the request
inlong-manager/manager-pojo/src/main/java/org/apache/inlong/manager/pojo/module/ModuleDTO.java