|
|
|
@ -220,9 +220,6 @@ public class SaveClusterDomainServiceImpl implements SaveClusterDomainService { |
|
|
|
// 更新剩余数量
|
|
|
|
int remainCount = needCount - generateNum; |
|
|
|
setNeedCount.accept(Math.max(0, remainCount)); // 确保剩余数量≥0
|
|
|
|
|
|
|
|
// 更新已生成总数量
|
|
|
|
dto.setGenerateCount(dto.getGenerateCount() + generateNum); |
|
|
|
} |
|
|
|
|
|
|
|
private ProduceDTO buildDTO(Long sourceId , QuestionSourceTypeEnum sourceType, int needJudgmentCount,int needSingleCount, int needMultipleCount) { |
|
|
|
|