其他分享
首页 > 其他分享> > 单表存开始结束,单表存从开始到结束

单表存开始结束,单表存从开始到结束

作者:互联网

for (int i = codeBegin; i <= codeEnd; i++) {
            ContractCodeUsage contractCodeUsage = new ContractCodeUsage();
            BeanUtils.copyProperties(ruleUpdateDto, contractCodeUsage);
            contractCodeUsage.setContractCodeRuleId(ruleUpdateDto.getContractCodeRuleId());
            contractCodeUsage.setCodeUsageNum(i);
            contractCodeUsage.setContractCodeUsageId(Snowflake.stringId());
            contractCodeUsage.setContractCode(
                    contractCodePrefix.getContractCodePrefixTitle() + "-" +
                            ruleUpdateDto.getContractCodeYear() + "-" + i
            );
            list.add(contractCodeUsage);
            contractCodeList.add(contractCodeUsage.getContractCode());
        }

  

标签:int,开始,codeBegin,结束,单表存
来源: https://www.cnblogs.com/dsds/p/16384371.html