fix:splitType 传入
This commit is contained in:
@@ -40,4 +40,6 @@ public class GenerateSplitOrderRequest implements Serializable {
|
|||||||
@ApiModelProperty("备注")
|
@ApiModelProperty("备注")
|
||||||
@Length(max = 255, message = "备注长度不能超过255")
|
@Length(max = 255, message = "备注长度不能超过255")
|
||||||
private String remark;
|
private String remark;
|
||||||
|
|
||||||
|
private Integer splitType;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -289,10 +289,14 @@ public class AdjustmentOrderServiceImpl implements AdjustmentOrderService {
|
|||||||
|
|
||||||
AccountInfoDTO accountInfoDTO = accountInfoList.get(0);
|
AccountInfoDTO accountInfoDTO = accountInfoList.get(0);
|
||||||
|
|
||||||
|
Integer splitType = request.getSplitType();
|
||||||
|
if (splitType==null){
|
||||||
|
splitType = SplitTypeEnum.ADD_BY_HAND.getStatus();
|
||||||
|
}
|
||||||
// 生成分账单
|
// 生成分账单
|
||||||
SplitOrderDO splitOrder = SplitOrderDO.builder()
|
SplitOrderDO splitOrder = SplitOrderDO.builder()
|
||||||
.splitNo(splitNo)
|
.splitNo(splitNo)
|
||||||
.splitType(SplitTypeEnum.ADD_BY_HAND.getStatus())
|
.splitType(splitType)
|
||||||
.relatedStoreId(adjustmentOrder.getStoreId())
|
.relatedStoreId(adjustmentOrder.getStoreId())
|
||||||
.payerAccountName(accountInfoDTO.getAccountName())
|
.payerAccountName(accountInfoDTO.getAccountName())
|
||||||
.payerAccountNo(accountInfoDTO.getAccountNo())
|
.payerAccountNo(accountInfoDTO.getAccountNo())
|
||||||
|
|||||||
Reference in New Issue
Block a user