fix:splitType 传入
This commit is contained in:
@@ -40,4 +40,6 @@ public class GenerateSplitOrderRequest implements Serializable {
|
||||
@ApiModelProperty("备注")
|
||||
@Length(max = 255, message = "备注长度不能超过255")
|
||||
private String remark;
|
||||
|
||||
private Integer splitType;
|
||||
}
|
||||
|
||||
@@ -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())
|
||||
|
||||
Reference in New Issue
Block a user