fix:splitType 传入

This commit is contained in:
suzhuhong
2026-04-22 17:27:15 +08:00
parent fca198a835
commit f06519532e
2 changed files with 7 additions and 1 deletions

View File

@@ -40,4 +40,6 @@ public class GenerateSplitOrderRequest implements Serializable {
@ApiModelProperty("备注")
@Length(max = 255, message = "备注长度不能超过255")
private String remark;
private Integer splitType;
}

View File

@@ -289,10 +289,14 @@ public class AdjustmentOrderServiceImpl implements AdjustmentOrderService {
AccountInfoDTO accountInfoDTO = accountInfoList.get(0);
Integer splitType = request.getSplitType();
if (splitType==null){
splitType = SplitTypeEnum.ADD_BY_HAND.getStatus();
}
// 生成分账单
SplitOrderDO splitOrder = SplitOrderDO.builder()
.splitNo(splitNo)
.splitType(SplitTypeEnum.ADD_BY_HAND.getStatus())
.splitType(splitType)
.relatedStoreId(adjustmentOrder.getStoreId())
.payerAccountName(accountInfoDTO.getAccountName())
.payerAccountNo(accountInfoDTO.getAccountNo())